strongdm 3.16.0 → 3.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.git/ORIG_HEAD +1 -1
- data/.git/index +0 -0
- data/.git/logs/HEAD +3 -3
- data/.git/logs/refs/heads/master +2 -2
- data/.git/logs/refs/remotes/origin/HEAD +1 -1
- data/.git/objects/pack/{pack-65e340f050c65a6aaf311892bf375358d0462aa9.idx → pack-f4db79d8b517a6bbe6b8e46ce03146184bf6e554.idx} +0 -0
- data/.git/objects/pack/{pack-65e340f050c65a6aaf311892bf375358d0462aa9.pack → pack-f4db79d8b517a6bbe6b8e46ce03146184bf6e554.pack} +0 -0
- data/.git/packed-refs +4 -2
- data/.git/refs/heads/master +1 -1
- data/lib/constants.rb +13 -0
- data/lib/grpc/activities_pb.rb +1 -0
- data/lib/grpc/drivers_pb.rb +21 -0
- data/lib/grpc/nodes_pb.rb +11 -0
- data/lib/grpc/plumbing.rb +116 -0
- data/lib/models/porcelain.rb +796 -613
- data/lib/strongdm.rb +1 -1
- data/lib/svc.rb +1 -0
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b966417999f917f548d43b50133607ab79cb603f20a2b23fb76c1342b1fbfd7
|
4
|
+
data.tar.gz: 284fb54a2e0afa33ed2138be0fc8a6e794b8b19fa1c3c12812baa51c50b8847c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fe73fce198f106fffee8b15f563af6346fdaaf10cb3ed5a60faa04c720bac54f0e5a322f1c4eeee330cb309be6945bad7941e1205fbcda37738fb79f711b4d3
|
7
|
+
data.tar.gz: adbc374f191a40274c50b4b57dc8fa7f2f9804c33990ad39d3f6fd542898a219e1c7dcba5b14281e9e7de938e465cda898badf6aff39e34ad533edc7019695a3
|
data/.git/ORIG_HEAD
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
7e8c95f92b7ab35d93eec71a3e6b378bbe4e8d36
|
data/.git/index
CHANGED
Binary file
|
data/.git/logs/HEAD
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
2
|
-
|
3
|
-
|
1
|
+
0000000000000000000000000000000000000000 7e8c95f92b7ab35d93eec71a3e6b378bbe4e8d36 root <root@59bedabef593.(none)> 1688742042 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
2
|
+
7e8c95f92b7ab35d93eec71a3e6b378bbe4e8d36 7e8c95f92b7ab35d93eec71a3e6b378bbe4e8d36 root <root@59bedabef593.(none)> 1688742042 +0000 checkout: moving from master to master
|
3
|
+
7e8c95f92b7ab35d93eec71a3e6b378bbe4e8d36 0d2955c2c2f11a0bd128d6b6a45b5d0c741b9789 root <root@59bedabef593.(none)> 1688742042 +0000 merge origin/development: Fast-forward
|
data/.git/logs/refs/heads/master
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
2
|
-
|
1
|
+
0000000000000000000000000000000000000000 7e8c95f92b7ab35d93eec71a3e6b378bbe4e8d36 root <root@59bedabef593.(none)> 1688742042 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
2
|
+
7e8c95f92b7ab35d93eec71a3e6b378bbe4e8d36 0d2955c2c2f11a0bd128d6b6a45b5d0c741b9789 root <root@59bedabef593.(none)> 1688742042 +0000 merge origin/development: Fast-forward
|
@@ -1 +1 @@
|
|
1
|
-
0000000000000000000000000000000000000000
|
1
|
+
0000000000000000000000000000000000000000 7e8c95f92b7ab35d93eec71a3e6b378bbe4e8d36 root <root@59bedabef593.(none)> 1688742042 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
Binary file
|
Binary file
|
data/.git/packed-refs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# pack-refs with: peeled fully-peeled sorted
|
2
|
-
|
3
|
-
|
2
|
+
0d2955c2c2f11a0bd128d6b6a45b5d0c741b9789 refs/remotes/origin/development
|
3
|
+
7e8c95f92b7ab35d93eec71a3e6b378bbe4e8d36 refs/remotes/origin/master
|
4
4
|
2e4fe8087177ddea9b3991ca499f758384839c89 refs/tags/untagged-84fd83a4484c785cce63
|
5
5
|
04f604866214fab4d5663b5171a3e596331577bd refs/tags/v0.9.4
|
6
6
|
6f9a7b75b345c65fb554884907b7060680c807b7 refs/tags/v0.9.5
|
@@ -49,6 +49,8 @@ f880c51210aa33186d71d9b463ddbd587ef3e4fd refs/tags/v3.12.0
|
|
49
49
|
8192d0d63f6b0357b343ee32a9e436bcaad28ebe refs/tags/v3.14.0
|
50
50
|
6cd69f8e98657b0aa1c55786add9519085361ef2 refs/tags/v3.14.2
|
51
51
|
6e8ee132772d2663157a4263aa15ddffeac7486f refs/tags/v3.15.0
|
52
|
+
a469b2d58875fd54ce9a67154bd8feaa73588449 refs/tags/v3.16.0
|
53
|
+
7e8c95f92b7ab35d93eec71a3e6b378bbe4e8d36 refs/tags/v3.17.0
|
52
54
|
40d185ce8d4f4375411706886f6fbbaa5493bef6 refs/tags/v3.2.0
|
53
55
|
dd6a8a74ad5675831f42e3a820208e96f7361f80 refs/tags/v3.2.1
|
54
56
|
09ee1a3be370a7b5e21709a7857d0f189f23da8b refs/tags/v3.2.2
|
data/.git/refs/heads/master
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
0d2955c2c2f11a0bd128d6b6a45b5d0c741b9789
|
data/lib/constants.rb
CHANGED
@@ -255,6 +255,9 @@ module SDM
|
|
255
255
|
WORKFLOW_DESCRIPTION_UPDATED = "workflow description updated"
|
256
256
|
WORKFLOW_AUTO_GRANT_UPDATED = "workflow auto grant updated"
|
257
257
|
WORKFLOW_REQUIRES_REASON_UPDATED = "workflow requires reason updated"
|
258
|
+
WORKFLOW_ACCESS_RULES_UPDATED = "workflow access rules updated"
|
259
|
+
WORKFLOW_ACCESS_RULES_DELETED = "workflow access rules deleted"
|
260
|
+
WORKFLOW_ACCESS_RULES_CREATED = "workflow access rules created"
|
258
261
|
ORG_VNM_SUBNET_UPDATED = "organization VNM subnet updated"
|
259
262
|
ORG_VNM_RESOURCES_ALLOCATED = "organization resources allocated within VNM subnet"
|
260
263
|
DEPRECATED_ORG_ACTIVATE_DEVICE_APPROVAL = "activate device approval"
|
@@ -265,6 +268,9 @@ module SDM
|
|
265
268
|
TOTP_ENROLLMENT_ADDED = "user enrolled a totp device"
|
266
269
|
TOTP_ENROLLMENT_DELETED = "user reset their totp enrollment"
|
267
270
|
SUSPENDED_USER_ENROLL_ATTEMPT_FROM_THE_UI = "attempt to enroll by a suspended user from the Admin UI"
|
271
|
+
RESOURCE_LOCKED = "user locked a resource"
|
272
|
+
RESOURCE_UNLOCKED = "user unlocked a resource"
|
273
|
+
RESOURCE_FORCE_UNLOCKED = "admin force-unlocked a resource"
|
268
274
|
end
|
269
275
|
|
270
276
|
# Permissions, all permissions that may be granted to an account.
|
@@ -423,4 +429,11 @@ module SDM
|
|
423
429
|
K_8_S_APPLY = "k8s-apply"
|
424
430
|
SSH_PORT_FORWARD = "ssh-portForward"
|
425
431
|
end
|
432
|
+
|
433
|
+
# Providers responsible for device posture enforcement
|
434
|
+
module DevicePostureProvider
|
435
|
+
NONE = ""
|
436
|
+
SENTINEL_ONE = "sentinelone"
|
437
|
+
CROWD_STRIKE = "crowdstrike"
|
438
|
+
end
|
426
439
|
end
|
data/lib/grpc/activities_pb.rb
CHANGED
@@ -48,6 +48,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
48
48
|
repeated :entities, :message, 5, "v1.ActivityEntity"
|
49
49
|
optional :ip_address, :string, 6
|
50
50
|
optional :actor, :message, 7, "v1.ActivityActor"
|
51
|
+
optional :user_agent, :string, 8
|
51
52
|
end
|
52
53
|
add_message "v1.ActivityEntity" do
|
53
54
|
optional :id, :string, 1
|
data/lib/grpc/drivers_pb.rb
CHANGED
@@ -44,6 +44,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
44
44
|
optional :azure_certificate, :message, 2801, "v1.AzureCertificate"
|
45
45
|
optional :azure_mysql, :message, 1107, "v1.AzureMysql"
|
46
46
|
optional :azure_postgres, :message, 1307, "v1.AzurePostgres"
|
47
|
+
optional :azure_postgres_managed_identity, :message, 1308, "v1.AzurePostgresManagedIdentity"
|
47
48
|
optional :big_query, :message, 200, "v1.BigQuery"
|
48
49
|
optional :cassandra, :message, 300, "v1.Cassandra"
|
49
50
|
optional :citus, :message, 1305, "v1.Citus"
|
@@ -472,6 +473,24 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
472
473
|
optional :port_override, :int32, 5
|
473
474
|
optional :username, :string, 2
|
474
475
|
end
|
476
|
+
add_message "v1.AzurePostgresManagedIdentity" do
|
477
|
+
optional :id, :string, 32768
|
478
|
+
optional :name, :string, 32769
|
479
|
+
optional :healthy, :bool, 32770
|
480
|
+
optional :tags, :message, 32771, "v1.Tags"
|
481
|
+
optional :secret_store_id, :string, 32772
|
482
|
+
optional :egress_filter, :string, 32773
|
483
|
+
optional :bind_interface, :string, 32774
|
484
|
+
optional :subdomain, :string, 32775
|
485
|
+
optional :database, :string, 4
|
486
|
+
optional :hostname, :string, 1
|
487
|
+
optional :override_database, :bool, 7
|
488
|
+
optional :password, :string, 3
|
489
|
+
optional :port, :int32, 6
|
490
|
+
optional :port_override, :int32, 5
|
491
|
+
optional :use_azure_single_server_usernames, :bool, 10
|
492
|
+
optional :username, :string, 2
|
493
|
+
end
|
475
494
|
add_message "v1.BigQuery" do
|
476
495
|
optional :id, :string, 32768
|
477
496
|
optional :name, :string, 32769
|
@@ -1168,6 +1187,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
1168
1187
|
optional :subdomain, :string, 32775
|
1169
1188
|
optional :downgrade_nla_connections, :bool, 6
|
1170
1189
|
optional :hostname, :string, 1
|
1190
|
+
optional :lock_required, :bool, 10
|
1171
1191
|
optional :password, :string, 3
|
1172
1192
|
optional :port, :int32, 5
|
1173
1193
|
optional :port_override, :int32, 4
|
@@ -1481,6 +1501,7 @@ module V1
|
|
1481
1501
|
AzureCertificate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AzureCertificate").msgclass
|
1482
1502
|
AzureMysql = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AzureMysql").msgclass
|
1483
1503
|
AzurePostgres = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AzurePostgres").msgclass
|
1504
|
+
AzurePostgresManagedIdentity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AzurePostgresManagedIdentity").msgclass
|
1484
1505
|
BigQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.BigQuery").msgclass
|
1485
1506
|
Cassandra = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Cassandra").msgclass
|
1486
1507
|
Citus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Citus").msgclass
|
data/lib/grpc/nodes_pb.rb
CHANGED
@@ -83,6 +83,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
83
83
|
optional :device, :string, 6
|
84
84
|
optional :location, :string, 7
|
85
85
|
optional :version, :string, 8
|
86
|
+
optional :uuid, :string, 9
|
87
|
+
optional :connects_to, :string, 10
|
88
|
+
repeated :maintenance_windows, :message, 11, "v1.NodeMaintenanceWindow"
|
86
89
|
end
|
87
90
|
add_message "v1.Gateway" do
|
88
91
|
optional :id, :string, 1
|
@@ -95,6 +98,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
95
98
|
optional :device, :string, 8
|
96
99
|
optional :location, :string, 9
|
97
100
|
optional :version, :string, 10
|
101
|
+
optional :uuid, :string, 11
|
102
|
+
optional :connects_to, :string, 12
|
103
|
+
repeated :maintenance_windows, :message, 13, "v1.NodeMaintenanceWindow"
|
104
|
+
end
|
105
|
+
add_message "v1.NodeMaintenanceWindow" do
|
106
|
+
optional :cron_schedule, :string, 1
|
107
|
+
optional :require_idleness, :bool, 2
|
98
108
|
end
|
99
109
|
end
|
100
110
|
end
|
@@ -113,4 +123,5 @@ module V1
|
|
113
123
|
Node = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Node").msgclass
|
114
124
|
Relay = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Relay").msgclass
|
115
125
|
Gateway = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Gateway").msgclass
|
126
|
+
NodeMaintenanceWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.NodeMaintenanceWindow").msgclass
|
116
127
|
end
|
data/lib/grpc/plumbing.rb
CHANGED
@@ -1439,6 +1439,7 @@ module SDM
|
|
1439
1439
|
porcelain.entities = convert_repeated_activity_entity_to_porcelain(plumbing.entities)
|
1440
1440
|
porcelain.id = (plumbing.id)
|
1441
1441
|
porcelain.ip_address = (plumbing.ip_address)
|
1442
|
+
porcelain.user_agent = (plumbing.user_agent)
|
1442
1443
|
porcelain.verb = (plumbing.verb)
|
1443
1444
|
porcelain
|
1444
1445
|
end
|
@@ -1454,6 +1455,7 @@ module SDM
|
|
1454
1455
|
plumbing.entities += convert_repeated_activity_entity_to_plumbing(porcelain.entities)
|
1455
1456
|
plumbing.id = (porcelain.id)
|
1456
1457
|
plumbing.ip_address = (porcelain.ip_address)
|
1458
|
+
plumbing.user_agent = (porcelain.user_agent)
|
1457
1459
|
plumbing.verb = (porcelain.verb)
|
1458
1460
|
plumbing
|
1459
1461
|
end
|
@@ -2420,6 +2422,70 @@ module SDM
|
|
2420
2422
|
end
|
2421
2423
|
items
|
2422
2424
|
end
|
2425
|
+
def self.convert_azure_postgres_managed_identity_to_porcelain(plumbing)
|
2426
|
+
if plumbing == nil
|
2427
|
+
return nil
|
2428
|
+
end
|
2429
|
+
porcelain = AzurePostgresManagedIdentity.new()
|
2430
|
+
porcelain.bind_interface = (plumbing.bind_interface)
|
2431
|
+
porcelain.database = (plumbing.database)
|
2432
|
+
porcelain.egress_filter = (plumbing.egress_filter)
|
2433
|
+
porcelain.healthy = (plumbing.healthy)
|
2434
|
+
porcelain.hostname = (plumbing.hostname)
|
2435
|
+
porcelain.id = (plumbing.id)
|
2436
|
+
porcelain.name = (plumbing.name)
|
2437
|
+
porcelain.override_database = (plumbing.override_database)
|
2438
|
+
porcelain.password = (plumbing.password)
|
2439
|
+
porcelain.port = (plumbing.port)
|
2440
|
+
porcelain.port_override = (plumbing.port_override)
|
2441
|
+
porcelain.secret_store_id = (plumbing.secret_store_id)
|
2442
|
+
porcelain.subdomain = (plumbing.subdomain)
|
2443
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
2444
|
+
porcelain.use_azure_single_server_usernames = (plumbing.use_azure_single_server_usernames)
|
2445
|
+
porcelain.username = (plumbing.username)
|
2446
|
+
porcelain
|
2447
|
+
end
|
2448
|
+
|
2449
|
+
def self.convert_azure_postgres_managed_identity_to_plumbing(porcelain)
|
2450
|
+
if porcelain == nil
|
2451
|
+
return nil
|
2452
|
+
end
|
2453
|
+
plumbing = V1::AzurePostgresManagedIdentity.new()
|
2454
|
+
plumbing.bind_interface = (porcelain.bind_interface)
|
2455
|
+
plumbing.database = (porcelain.database)
|
2456
|
+
plumbing.egress_filter = (porcelain.egress_filter)
|
2457
|
+
plumbing.healthy = (porcelain.healthy)
|
2458
|
+
plumbing.hostname = (porcelain.hostname)
|
2459
|
+
plumbing.id = (porcelain.id)
|
2460
|
+
plumbing.name = (porcelain.name)
|
2461
|
+
plumbing.override_database = (porcelain.override_database)
|
2462
|
+
plumbing.password = (porcelain.password)
|
2463
|
+
plumbing.port = (porcelain.port)
|
2464
|
+
plumbing.port_override = (porcelain.port_override)
|
2465
|
+
plumbing.secret_store_id = (porcelain.secret_store_id)
|
2466
|
+
plumbing.subdomain = (porcelain.subdomain)
|
2467
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
|
2468
|
+
plumbing.use_azure_single_server_usernames = (porcelain.use_azure_single_server_usernames)
|
2469
|
+
plumbing.username = (porcelain.username)
|
2470
|
+
plumbing
|
2471
|
+
end
|
2472
|
+
def self.convert_repeated_azure_postgres_managed_identity_to_plumbing(porcelains)
|
2473
|
+
items = Array.new
|
2474
|
+
porcelains.each do |porcelain|
|
2475
|
+
plumbing = convert_azure_postgres_managed_identity_to_plumbing(porcelain)
|
2476
|
+
items.append(plumbing)
|
2477
|
+
end
|
2478
|
+
items
|
2479
|
+
end
|
2480
|
+
|
2481
|
+
def self.convert_repeated_azure_postgres_managed_identity_to_porcelain(plumbings)
|
2482
|
+
items = Array.new
|
2483
|
+
plumbings.each do |plumbing|
|
2484
|
+
porcelain = convert_azure_postgres_managed_identity_to_porcelain(plumbing)
|
2485
|
+
items.append(porcelain)
|
2486
|
+
end
|
2487
|
+
items
|
2488
|
+
end
|
2423
2489
|
def self.convert_azure_store_to_porcelain(plumbing)
|
2424
2490
|
if plumbing == nil
|
2425
2491
|
return nil
|
@@ -3650,11 +3716,13 @@ module SDM
|
|
3650
3716
|
end
|
3651
3717
|
porcelain = Gateway.new()
|
3652
3718
|
porcelain.bind_address = (plumbing.bind_address)
|
3719
|
+
porcelain.connects_to = (plumbing.connects_to)
|
3653
3720
|
porcelain.device = (plumbing.device)
|
3654
3721
|
porcelain.gateway_filter = (plumbing.gateway_filter)
|
3655
3722
|
porcelain.id = (plumbing.id)
|
3656
3723
|
porcelain.listen_address = (plumbing.listen_address)
|
3657
3724
|
porcelain.location = (plumbing.location)
|
3725
|
+
porcelain.maintenance_windows = convert_repeated_node_maintenance_window_to_porcelain(plumbing.maintenance_windows)
|
3658
3726
|
porcelain.name = (plumbing.name)
|
3659
3727
|
porcelain.state = (plumbing.state)
|
3660
3728
|
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
@@ -3668,11 +3736,13 @@ module SDM
|
|
3668
3736
|
end
|
3669
3737
|
plumbing = V1::Gateway.new()
|
3670
3738
|
plumbing.bind_address = (porcelain.bind_address)
|
3739
|
+
plumbing.connects_to = (porcelain.connects_to)
|
3671
3740
|
plumbing.device = (porcelain.device)
|
3672
3741
|
plumbing.gateway_filter = (porcelain.gateway_filter)
|
3673
3742
|
plumbing.id = (porcelain.id)
|
3674
3743
|
plumbing.listen_address = (porcelain.listen_address)
|
3675
3744
|
plumbing.location = (porcelain.location)
|
3745
|
+
plumbing.maintenance_windows += convert_repeated_node_maintenance_window_to_plumbing(porcelain.maintenance_windows)
|
3676
3746
|
plumbing.name = (porcelain.name)
|
3677
3747
|
plumbing.state = (porcelain.state)
|
3678
3748
|
plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
|
@@ -5415,6 +5485,42 @@ module SDM
|
|
5415
5485
|
end
|
5416
5486
|
items
|
5417
5487
|
end
|
5488
|
+
def self.convert_node_maintenance_window_to_porcelain(plumbing)
|
5489
|
+
if plumbing == nil
|
5490
|
+
return nil
|
5491
|
+
end
|
5492
|
+
porcelain = NodeMaintenanceWindow.new()
|
5493
|
+
porcelain.cron_schedule = (plumbing.cron_schedule)
|
5494
|
+
porcelain.require_idleness = (plumbing.require_idleness)
|
5495
|
+
porcelain
|
5496
|
+
end
|
5497
|
+
|
5498
|
+
def self.convert_node_maintenance_window_to_plumbing(porcelain)
|
5499
|
+
if porcelain == nil
|
5500
|
+
return nil
|
5501
|
+
end
|
5502
|
+
plumbing = V1::NodeMaintenanceWindow.new()
|
5503
|
+
plumbing.cron_schedule = (porcelain.cron_schedule)
|
5504
|
+
plumbing.require_idleness = (porcelain.require_idleness)
|
5505
|
+
plumbing
|
5506
|
+
end
|
5507
|
+
def self.convert_repeated_node_maintenance_window_to_plumbing(porcelains)
|
5508
|
+
items = Array.new
|
5509
|
+
porcelains.each do |porcelain|
|
5510
|
+
plumbing = convert_node_maintenance_window_to_plumbing(porcelain)
|
5511
|
+
items.append(plumbing)
|
5512
|
+
end
|
5513
|
+
items
|
5514
|
+
end
|
5515
|
+
|
5516
|
+
def self.convert_repeated_node_maintenance_window_to_porcelain(plumbings)
|
5517
|
+
items = Array.new
|
5518
|
+
plumbings.each do |plumbing|
|
5519
|
+
porcelain = convert_node_maintenance_window_to_porcelain(plumbing)
|
5520
|
+
items.append(porcelain)
|
5521
|
+
end
|
5522
|
+
items
|
5523
|
+
end
|
5418
5524
|
def self.convert_node_update_response_to_porcelain(plumbing)
|
5419
5525
|
if plumbing == nil
|
5420
5526
|
return nil
|
@@ -6234,10 +6340,12 @@ module SDM
|
|
6234
6340
|
return nil
|
6235
6341
|
end
|
6236
6342
|
porcelain = Relay.new()
|
6343
|
+
porcelain.connects_to = (plumbing.connects_to)
|
6237
6344
|
porcelain.device = (plumbing.device)
|
6238
6345
|
porcelain.gateway_filter = (plumbing.gateway_filter)
|
6239
6346
|
porcelain.id = (plumbing.id)
|
6240
6347
|
porcelain.location = (plumbing.location)
|
6348
|
+
porcelain.maintenance_windows = convert_repeated_node_maintenance_window_to_porcelain(plumbing.maintenance_windows)
|
6241
6349
|
porcelain.name = (plumbing.name)
|
6242
6350
|
porcelain.state = (plumbing.state)
|
6243
6351
|
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
@@ -6250,10 +6358,12 @@ module SDM
|
|
6250
6358
|
return nil
|
6251
6359
|
end
|
6252
6360
|
plumbing = V1::Relay.new()
|
6361
|
+
plumbing.connects_to = (porcelain.connects_to)
|
6253
6362
|
plumbing.device = (porcelain.device)
|
6254
6363
|
plumbing.gateway_filter = (porcelain.gateway_filter)
|
6255
6364
|
plumbing.id = (porcelain.id)
|
6256
6365
|
plumbing.location = (porcelain.location)
|
6366
|
+
plumbing.maintenance_windows += convert_repeated_node_maintenance_window_to_plumbing(porcelain.maintenance_windows)
|
6257
6367
|
plumbing.name = (porcelain.name)
|
6258
6368
|
plumbing.state = (porcelain.state)
|
6259
6369
|
plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
|
@@ -6761,6 +6871,9 @@ module SDM
|
|
6761
6871
|
if porcelain.instance_of? AzurePostgres
|
6762
6872
|
plumbing.azure_postgres = convert_azure_postgres_to_plumbing(porcelain)
|
6763
6873
|
end
|
6874
|
+
if porcelain.instance_of? AzurePostgresManagedIdentity
|
6875
|
+
plumbing.azure_postgres_managed_identity = convert_azure_postgres_managed_identity_to_plumbing(porcelain)
|
6876
|
+
end
|
6764
6877
|
if porcelain.instance_of? BigQuery
|
6765
6878
|
plumbing.big_query = convert_big_query_to_plumbing(porcelain)
|
6766
6879
|
end
|
@@ -7008,6 +7121,9 @@ module SDM
|
|
7008
7121
|
if plumbing.azure_postgres != nil
|
7009
7122
|
return convert_azure_postgres_to_porcelain(plumbing.azure_postgres)
|
7010
7123
|
end
|
7124
|
+
if plumbing.azure_postgres_managed_identity != nil
|
7125
|
+
return convert_azure_postgres_managed_identity_to_porcelain(plumbing.azure_postgres_managed_identity)
|
7126
|
+
end
|
7011
7127
|
if plumbing.big_query != nil
|
7012
7128
|
return convert_big_query_to_porcelain(plumbing.big_query)
|
7013
7129
|
end
|