strongdm 15.39.0 → 15.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-a6f1fd71b47c84d8c0841ce964e52d8368dbf3ea.idx → pack-72042e33d36ca85cdfa5c79a6b28c7e6d0bf83d7.idx} +0 -0
- data/.git/objects/pack/{pack-a6f1fd71b47c84d8c0841ce964e52d8368dbf3ea.pack → pack-72042e33d36ca85cdfa5c79a6b28c7e6d0bf83d7.pack} +0 -0
- data/.git/packed-refs +4 -2
- data/.git/refs/heads/master +1 -1
- data/lib/constants.rb +2 -0
- data/lib/grpc/access_requests_pb.rb +5 -0
- data/lib/grpc/discovery_connectors_pb.rb +132 -0
- data/lib/grpc/discovery_connectors_services_pb.rb +46 -0
- data/lib/grpc/drivers_pb.rb +4 -0
- data/lib/grpc/options_pb.rb +1 -0
- data/lib/grpc/plumbing.rb +564 -0
- data/lib/models/porcelain.rb +409 -0
- data/lib/strongdm.rb +14 -1
- data/lib/svc.rb +214 -0
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- metadata +6 -4
data/lib/grpc/plumbing.rb
CHANGED
|
@@ -44,6 +44,7 @@ require_relative "./approval_workflow_steps_history_pb"
|
|
|
44
44
|
require_relative "./approval_workflows_pb"
|
|
45
45
|
require_relative "./approval_workflows_history_pb"
|
|
46
46
|
require_relative "./control_panel_pb"
|
|
47
|
+
require_relative "./discovery_connectors_pb"
|
|
47
48
|
require_relative "./roles_pb"
|
|
48
49
|
require_relative "./groups_pb"
|
|
49
50
|
require_relative "./groups_history_pb"
|
|
@@ -725,6 +726,56 @@ module SDM
|
|
|
725
726
|
end
|
|
726
727
|
items
|
|
727
728
|
end
|
|
729
|
+
def self.convert_aws_connector_to_porcelain(plumbing)
|
|
730
|
+
if plumbing == nil
|
|
731
|
+
return nil
|
|
732
|
+
end
|
|
733
|
+
porcelain = AWSConnector.new()
|
|
734
|
+
porcelain.account_ids = (plumbing.account_ids)
|
|
735
|
+
porcelain.description = (plumbing.description)
|
|
736
|
+
porcelain.exclude_tags = convert_repeated_tag_to_porcelain(plumbing.exclude_tags)
|
|
737
|
+
porcelain.id = (plumbing.id)
|
|
738
|
+
porcelain.include_tags = convert_repeated_tag_to_porcelain(plumbing.include_tags)
|
|
739
|
+
porcelain.name = (plumbing.name)
|
|
740
|
+
porcelain.role_name = (plumbing.role_name)
|
|
741
|
+
porcelain.scan_period = (plumbing.scan_period)
|
|
742
|
+
porcelain.services = (plumbing.services)
|
|
743
|
+
porcelain
|
|
744
|
+
end
|
|
745
|
+
|
|
746
|
+
def self.convert_aws_connector_to_plumbing(porcelain)
|
|
747
|
+
if porcelain == nil
|
|
748
|
+
return nil
|
|
749
|
+
end
|
|
750
|
+
plumbing = V1::AWSConnector.new()
|
|
751
|
+
plumbing.account_ids += (porcelain.account_ids)
|
|
752
|
+
plumbing.description = (porcelain.description)
|
|
753
|
+
plumbing.exclude_tags += convert_repeated_tag_to_plumbing(porcelain.exclude_tags)
|
|
754
|
+
plumbing.id = (porcelain.id)
|
|
755
|
+
plumbing.include_tags += convert_repeated_tag_to_plumbing(porcelain.include_tags)
|
|
756
|
+
plumbing.name = (porcelain.name)
|
|
757
|
+
plumbing.role_name = (porcelain.role_name)
|
|
758
|
+
plumbing.scan_period = (porcelain.scan_period)
|
|
759
|
+
plumbing.services += (porcelain.services)
|
|
760
|
+
plumbing
|
|
761
|
+
end
|
|
762
|
+
def self.convert_repeated_aws_connector_to_plumbing(porcelains)
|
|
763
|
+
items = Array.new
|
|
764
|
+
porcelains.each do |porcelain|
|
|
765
|
+
plumbing = convert_aws_connector_to_plumbing(porcelain)
|
|
766
|
+
items.append(plumbing)
|
|
767
|
+
end
|
|
768
|
+
items
|
|
769
|
+
end
|
|
770
|
+
|
|
771
|
+
def self.convert_repeated_aws_connector_to_porcelain(plumbings)
|
|
772
|
+
items = Array.new
|
|
773
|
+
plumbings.each do |plumbing|
|
|
774
|
+
porcelain = convert_aws_connector_to_porcelain(plumbing)
|
|
775
|
+
items.append(porcelain)
|
|
776
|
+
end
|
|
777
|
+
items
|
|
778
|
+
end
|
|
728
779
|
def self.convert_aws_console_to_porcelain(plumbing)
|
|
729
780
|
if plumbing == nil
|
|
730
781
|
return nil
|
|
@@ -4490,6 +4541,58 @@ module SDM
|
|
|
4490
4541
|
end
|
|
4491
4542
|
items
|
|
4492
4543
|
end
|
|
4544
|
+
def self.convert_azure_connector_to_porcelain(plumbing)
|
|
4545
|
+
if plumbing == nil
|
|
4546
|
+
return nil
|
|
4547
|
+
end
|
|
4548
|
+
porcelain = AzureConnector.new()
|
|
4549
|
+
porcelain.client_id = (plumbing.client_id)
|
|
4550
|
+
porcelain.description = (plumbing.description)
|
|
4551
|
+
porcelain.exclude_tags = convert_repeated_tag_to_porcelain(plumbing.exclude_tags)
|
|
4552
|
+
porcelain.id = (plumbing.id)
|
|
4553
|
+
porcelain.include_tags = convert_repeated_tag_to_porcelain(plumbing.include_tags)
|
|
4554
|
+
porcelain.name = (plumbing.name)
|
|
4555
|
+
porcelain.scan_period = (plumbing.scan_period)
|
|
4556
|
+
porcelain.services = (plumbing.services)
|
|
4557
|
+
porcelain.subscription_ids = (plumbing.subscription_ids)
|
|
4558
|
+
porcelain.tenant_id = (plumbing.tenant_id)
|
|
4559
|
+
porcelain
|
|
4560
|
+
end
|
|
4561
|
+
|
|
4562
|
+
def self.convert_azure_connector_to_plumbing(porcelain)
|
|
4563
|
+
if porcelain == nil
|
|
4564
|
+
return nil
|
|
4565
|
+
end
|
|
4566
|
+
plumbing = V1::AzureConnector.new()
|
|
4567
|
+
plumbing.client_id = (porcelain.client_id)
|
|
4568
|
+
plumbing.description = (porcelain.description)
|
|
4569
|
+
plumbing.exclude_tags += convert_repeated_tag_to_plumbing(porcelain.exclude_tags)
|
|
4570
|
+
plumbing.id = (porcelain.id)
|
|
4571
|
+
plumbing.include_tags += convert_repeated_tag_to_plumbing(porcelain.include_tags)
|
|
4572
|
+
plumbing.name = (porcelain.name)
|
|
4573
|
+
plumbing.scan_period = (porcelain.scan_period)
|
|
4574
|
+
plumbing.services += (porcelain.services)
|
|
4575
|
+
plumbing.subscription_ids += (porcelain.subscription_ids)
|
|
4576
|
+
plumbing.tenant_id = (porcelain.tenant_id)
|
|
4577
|
+
plumbing
|
|
4578
|
+
end
|
|
4579
|
+
def self.convert_repeated_azure_connector_to_plumbing(porcelains)
|
|
4580
|
+
items = Array.new
|
|
4581
|
+
porcelains.each do |porcelain|
|
|
4582
|
+
plumbing = convert_azure_connector_to_plumbing(porcelain)
|
|
4583
|
+
items.append(plumbing)
|
|
4584
|
+
end
|
|
4585
|
+
items
|
|
4586
|
+
end
|
|
4587
|
+
|
|
4588
|
+
def self.convert_repeated_azure_connector_to_porcelain(plumbings)
|
|
4589
|
+
items = Array.new
|
|
4590
|
+
plumbings.each do |plumbing|
|
|
4591
|
+
porcelain = convert_azure_connector_to_porcelain(plumbing)
|
|
4592
|
+
items.append(porcelain)
|
|
4593
|
+
end
|
|
4594
|
+
items
|
|
4595
|
+
end
|
|
4493
4596
|
def self.convert_azure_mysql_to_porcelain(plumbing)
|
|
4494
4597
|
if plumbing == nil
|
|
4495
4598
|
return nil
|
|
@@ -5292,6 +5395,405 @@ module SDM
|
|
|
5292
5395
|
end
|
|
5293
5396
|
items
|
|
5294
5397
|
end
|
|
5398
|
+
def self.convert_connector_to_plumbing(porcelain)
|
|
5399
|
+
if porcelain == nil
|
|
5400
|
+
return nil
|
|
5401
|
+
end
|
|
5402
|
+
plumbing = V1::Connector.new()
|
|
5403
|
+
if porcelain.instance_of? AWSConnector
|
|
5404
|
+
plumbing.aws = convert_aws_connector_to_plumbing(porcelain)
|
|
5405
|
+
end
|
|
5406
|
+
if porcelain.instance_of? AzureConnector
|
|
5407
|
+
plumbing.azure = convert_azure_connector_to_plumbing(porcelain)
|
|
5408
|
+
end
|
|
5409
|
+
if porcelain.instance_of? GCPConnector
|
|
5410
|
+
plumbing.gcp = convert_gcp_connector_to_plumbing(porcelain)
|
|
5411
|
+
end
|
|
5412
|
+
plumbing
|
|
5413
|
+
end
|
|
5414
|
+
|
|
5415
|
+
def self.convert_connector_to_porcelain(plumbing)
|
|
5416
|
+
if plumbing == nil
|
|
5417
|
+
return nil
|
|
5418
|
+
end
|
|
5419
|
+
if plumbing.aws != nil
|
|
5420
|
+
return convert_aws_connector_to_porcelain(plumbing.aws)
|
|
5421
|
+
end
|
|
5422
|
+
if plumbing.azure != nil
|
|
5423
|
+
return convert_azure_connector_to_porcelain(plumbing.azure)
|
|
5424
|
+
end
|
|
5425
|
+
if plumbing.gcp != nil
|
|
5426
|
+
return convert_gcp_connector_to_porcelain(plumbing.gcp)
|
|
5427
|
+
end
|
|
5428
|
+
raise UnknownError.new("unknown polymorphic type, please upgrade your SDK")
|
|
5429
|
+
end
|
|
5430
|
+
def self.convert_repeated_connector_to_plumbing(porcelains)
|
|
5431
|
+
items = Array.new
|
|
5432
|
+
porcelains.each do |porcelain|
|
|
5433
|
+
plumbing = convert_connector_to_plumbing(porcelain)
|
|
5434
|
+
items.append(plumbing)
|
|
5435
|
+
end
|
|
5436
|
+
items
|
|
5437
|
+
end
|
|
5438
|
+
|
|
5439
|
+
def self.convert_repeated_connector_to_porcelain(plumbings)
|
|
5440
|
+
items = Array.new
|
|
5441
|
+
plumbings.each do |plumbing|
|
|
5442
|
+
porcelain = convert_connector_to_porcelain(plumbing)
|
|
5443
|
+
items.append(porcelain)
|
|
5444
|
+
end
|
|
5445
|
+
items
|
|
5446
|
+
end
|
|
5447
|
+
def self.convert_connector_create_request_to_porcelain(plumbing)
|
|
5448
|
+
if plumbing == nil
|
|
5449
|
+
return nil
|
|
5450
|
+
end
|
|
5451
|
+
porcelain = ConnectorCreateRequest.new()
|
|
5452
|
+
porcelain.connector = convert_connector_to_porcelain(plumbing.connector)
|
|
5453
|
+
porcelain
|
|
5454
|
+
end
|
|
5455
|
+
|
|
5456
|
+
def self.convert_connector_create_request_to_plumbing(porcelain)
|
|
5457
|
+
if porcelain == nil
|
|
5458
|
+
return nil
|
|
5459
|
+
end
|
|
5460
|
+
plumbing = V1::ConnectorCreateRequest.new()
|
|
5461
|
+
plumbing.connector = convert_connector_to_plumbing(porcelain.connector)
|
|
5462
|
+
plumbing
|
|
5463
|
+
end
|
|
5464
|
+
def self.convert_repeated_connector_create_request_to_plumbing(porcelains)
|
|
5465
|
+
items = Array.new
|
|
5466
|
+
porcelains.each do |porcelain|
|
|
5467
|
+
plumbing = convert_connector_create_request_to_plumbing(porcelain)
|
|
5468
|
+
items.append(plumbing)
|
|
5469
|
+
end
|
|
5470
|
+
items
|
|
5471
|
+
end
|
|
5472
|
+
|
|
5473
|
+
def self.convert_repeated_connector_create_request_to_porcelain(plumbings)
|
|
5474
|
+
items = Array.new
|
|
5475
|
+
plumbings.each do |plumbing|
|
|
5476
|
+
porcelain = convert_connector_create_request_to_porcelain(plumbing)
|
|
5477
|
+
items.append(porcelain)
|
|
5478
|
+
end
|
|
5479
|
+
items
|
|
5480
|
+
end
|
|
5481
|
+
def self.convert_connector_create_response_to_porcelain(plumbing)
|
|
5482
|
+
if plumbing == nil
|
|
5483
|
+
return nil
|
|
5484
|
+
end
|
|
5485
|
+
porcelain = ConnectorCreateResponse.new()
|
|
5486
|
+
porcelain.connector = convert_connector_to_porcelain(plumbing.connector)
|
|
5487
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
|
5488
|
+
porcelain
|
|
5489
|
+
end
|
|
5490
|
+
|
|
5491
|
+
def self.convert_connector_create_response_to_plumbing(porcelain)
|
|
5492
|
+
if porcelain == nil
|
|
5493
|
+
return nil
|
|
5494
|
+
end
|
|
5495
|
+
plumbing = V1::ConnectorCreateResponse.new()
|
|
5496
|
+
plumbing.connector = convert_connector_to_plumbing(porcelain.connector)
|
|
5497
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
|
5498
|
+
plumbing
|
|
5499
|
+
end
|
|
5500
|
+
def self.convert_repeated_connector_create_response_to_plumbing(porcelains)
|
|
5501
|
+
items = Array.new
|
|
5502
|
+
porcelains.each do |porcelain|
|
|
5503
|
+
plumbing = convert_connector_create_response_to_plumbing(porcelain)
|
|
5504
|
+
items.append(plumbing)
|
|
5505
|
+
end
|
|
5506
|
+
items
|
|
5507
|
+
end
|
|
5508
|
+
|
|
5509
|
+
def self.convert_repeated_connector_create_response_to_porcelain(plumbings)
|
|
5510
|
+
items = Array.new
|
|
5511
|
+
plumbings.each do |plumbing|
|
|
5512
|
+
porcelain = convert_connector_create_response_to_porcelain(plumbing)
|
|
5513
|
+
items.append(porcelain)
|
|
5514
|
+
end
|
|
5515
|
+
items
|
|
5516
|
+
end
|
|
5517
|
+
def self.convert_connector_delete_request_to_porcelain(plumbing)
|
|
5518
|
+
if plumbing == nil
|
|
5519
|
+
return nil
|
|
5520
|
+
end
|
|
5521
|
+
porcelain = ConnectorDeleteRequest.new()
|
|
5522
|
+
porcelain.id = (plumbing.id)
|
|
5523
|
+
porcelain
|
|
5524
|
+
end
|
|
5525
|
+
|
|
5526
|
+
def self.convert_connector_delete_request_to_plumbing(porcelain)
|
|
5527
|
+
if porcelain == nil
|
|
5528
|
+
return nil
|
|
5529
|
+
end
|
|
5530
|
+
plumbing = V1::ConnectorDeleteRequest.new()
|
|
5531
|
+
plumbing.id = (porcelain.id)
|
|
5532
|
+
plumbing
|
|
5533
|
+
end
|
|
5534
|
+
def self.convert_repeated_connector_delete_request_to_plumbing(porcelains)
|
|
5535
|
+
items = Array.new
|
|
5536
|
+
porcelains.each do |porcelain|
|
|
5537
|
+
plumbing = convert_connector_delete_request_to_plumbing(porcelain)
|
|
5538
|
+
items.append(plumbing)
|
|
5539
|
+
end
|
|
5540
|
+
items
|
|
5541
|
+
end
|
|
5542
|
+
|
|
5543
|
+
def self.convert_repeated_connector_delete_request_to_porcelain(plumbings)
|
|
5544
|
+
items = Array.new
|
|
5545
|
+
plumbings.each do |plumbing|
|
|
5546
|
+
porcelain = convert_connector_delete_request_to_porcelain(plumbing)
|
|
5547
|
+
items.append(porcelain)
|
|
5548
|
+
end
|
|
5549
|
+
items
|
|
5550
|
+
end
|
|
5551
|
+
def self.convert_connector_delete_response_to_porcelain(plumbing)
|
|
5552
|
+
if plumbing == nil
|
|
5553
|
+
return nil
|
|
5554
|
+
end
|
|
5555
|
+
porcelain = ConnectorDeleteResponse.new()
|
|
5556
|
+
porcelain.meta = convert_delete_response_metadata_to_porcelain(plumbing.meta)
|
|
5557
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
|
5558
|
+
porcelain
|
|
5559
|
+
end
|
|
5560
|
+
|
|
5561
|
+
def self.convert_connector_delete_response_to_plumbing(porcelain)
|
|
5562
|
+
if porcelain == nil
|
|
5563
|
+
return nil
|
|
5564
|
+
end
|
|
5565
|
+
plumbing = V1::ConnectorDeleteResponse.new()
|
|
5566
|
+
plumbing.meta = convert_delete_response_metadata_to_plumbing(porcelain.meta)
|
|
5567
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
|
5568
|
+
plumbing
|
|
5569
|
+
end
|
|
5570
|
+
def self.convert_repeated_connector_delete_response_to_plumbing(porcelains)
|
|
5571
|
+
items = Array.new
|
|
5572
|
+
porcelains.each do |porcelain|
|
|
5573
|
+
plumbing = convert_connector_delete_response_to_plumbing(porcelain)
|
|
5574
|
+
items.append(plumbing)
|
|
5575
|
+
end
|
|
5576
|
+
items
|
|
5577
|
+
end
|
|
5578
|
+
|
|
5579
|
+
def self.convert_repeated_connector_delete_response_to_porcelain(plumbings)
|
|
5580
|
+
items = Array.new
|
|
5581
|
+
plumbings.each do |plumbing|
|
|
5582
|
+
porcelain = convert_connector_delete_response_to_porcelain(plumbing)
|
|
5583
|
+
items.append(porcelain)
|
|
5584
|
+
end
|
|
5585
|
+
items
|
|
5586
|
+
end
|
|
5587
|
+
def self.convert_connector_get_request_to_porcelain(plumbing)
|
|
5588
|
+
if plumbing == nil
|
|
5589
|
+
return nil
|
|
5590
|
+
end
|
|
5591
|
+
porcelain = ConnectorGetRequest.new()
|
|
5592
|
+
porcelain.id = (plumbing.id)
|
|
5593
|
+
porcelain
|
|
5594
|
+
end
|
|
5595
|
+
|
|
5596
|
+
def self.convert_connector_get_request_to_plumbing(porcelain)
|
|
5597
|
+
if porcelain == nil
|
|
5598
|
+
return nil
|
|
5599
|
+
end
|
|
5600
|
+
plumbing = V1::ConnectorGetRequest.new()
|
|
5601
|
+
plumbing.id = (porcelain.id)
|
|
5602
|
+
plumbing
|
|
5603
|
+
end
|
|
5604
|
+
def self.convert_repeated_connector_get_request_to_plumbing(porcelains)
|
|
5605
|
+
items = Array.new
|
|
5606
|
+
porcelains.each do |porcelain|
|
|
5607
|
+
plumbing = convert_connector_get_request_to_plumbing(porcelain)
|
|
5608
|
+
items.append(plumbing)
|
|
5609
|
+
end
|
|
5610
|
+
items
|
|
5611
|
+
end
|
|
5612
|
+
|
|
5613
|
+
def self.convert_repeated_connector_get_request_to_porcelain(plumbings)
|
|
5614
|
+
items = Array.new
|
|
5615
|
+
plumbings.each do |plumbing|
|
|
5616
|
+
porcelain = convert_connector_get_request_to_porcelain(plumbing)
|
|
5617
|
+
items.append(porcelain)
|
|
5618
|
+
end
|
|
5619
|
+
items
|
|
5620
|
+
end
|
|
5621
|
+
def self.convert_connector_get_response_to_porcelain(plumbing)
|
|
5622
|
+
if plumbing == nil
|
|
5623
|
+
return nil
|
|
5624
|
+
end
|
|
5625
|
+
porcelain = ConnectorGetResponse.new()
|
|
5626
|
+
porcelain.connector = convert_connector_to_porcelain(plumbing.connector)
|
|
5627
|
+
porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
|
|
5628
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
|
5629
|
+
porcelain
|
|
5630
|
+
end
|
|
5631
|
+
|
|
5632
|
+
def self.convert_connector_get_response_to_plumbing(porcelain)
|
|
5633
|
+
if porcelain == nil
|
|
5634
|
+
return nil
|
|
5635
|
+
end
|
|
5636
|
+
plumbing = V1::ConnectorGetResponse.new()
|
|
5637
|
+
plumbing.connector = convert_connector_to_plumbing(porcelain.connector)
|
|
5638
|
+
plumbing.meta = convert_get_response_metadata_to_plumbing(porcelain.meta)
|
|
5639
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
|
5640
|
+
plumbing
|
|
5641
|
+
end
|
|
5642
|
+
def self.convert_repeated_connector_get_response_to_plumbing(porcelains)
|
|
5643
|
+
items = Array.new
|
|
5644
|
+
porcelains.each do |porcelain|
|
|
5645
|
+
plumbing = convert_connector_get_response_to_plumbing(porcelain)
|
|
5646
|
+
items.append(plumbing)
|
|
5647
|
+
end
|
|
5648
|
+
items
|
|
5649
|
+
end
|
|
5650
|
+
|
|
5651
|
+
def self.convert_repeated_connector_get_response_to_porcelain(plumbings)
|
|
5652
|
+
items = Array.new
|
|
5653
|
+
plumbings.each do |plumbing|
|
|
5654
|
+
porcelain = convert_connector_get_response_to_porcelain(plumbing)
|
|
5655
|
+
items.append(porcelain)
|
|
5656
|
+
end
|
|
5657
|
+
items
|
|
5658
|
+
end
|
|
5659
|
+
def self.convert_connector_list_request_to_porcelain(plumbing)
|
|
5660
|
+
if plumbing == nil
|
|
5661
|
+
return nil
|
|
5662
|
+
end
|
|
5663
|
+
porcelain = ConnectorListRequest.new()
|
|
5664
|
+
porcelain.filter = (plumbing.filter)
|
|
5665
|
+
porcelain
|
|
5666
|
+
end
|
|
5667
|
+
|
|
5668
|
+
def self.convert_connector_list_request_to_plumbing(porcelain)
|
|
5669
|
+
if porcelain == nil
|
|
5670
|
+
return nil
|
|
5671
|
+
end
|
|
5672
|
+
plumbing = V1::ConnectorListRequest.new()
|
|
5673
|
+
plumbing.filter = (porcelain.filter)
|
|
5674
|
+
plumbing
|
|
5675
|
+
end
|
|
5676
|
+
def self.convert_repeated_connector_list_request_to_plumbing(porcelains)
|
|
5677
|
+
items = Array.new
|
|
5678
|
+
porcelains.each do |porcelain|
|
|
5679
|
+
plumbing = convert_connector_list_request_to_plumbing(porcelain)
|
|
5680
|
+
items.append(plumbing)
|
|
5681
|
+
end
|
|
5682
|
+
items
|
|
5683
|
+
end
|
|
5684
|
+
|
|
5685
|
+
def self.convert_repeated_connector_list_request_to_porcelain(plumbings)
|
|
5686
|
+
items = Array.new
|
|
5687
|
+
plumbings.each do |plumbing|
|
|
5688
|
+
porcelain = convert_connector_list_request_to_porcelain(plumbing)
|
|
5689
|
+
items.append(porcelain)
|
|
5690
|
+
end
|
|
5691
|
+
items
|
|
5692
|
+
end
|
|
5693
|
+
def self.convert_connector_list_response_to_porcelain(plumbing)
|
|
5694
|
+
if plumbing == nil
|
|
5695
|
+
return nil
|
|
5696
|
+
end
|
|
5697
|
+
porcelain = ConnectorListResponse.new()
|
|
5698
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
|
5699
|
+
porcelain
|
|
5700
|
+
end
|
|
5701
|
+
|
|
5702
|
+
def self.convert_connector_list_response_to_plumbing(porcelain)
|
|
5703
|
+
if porcelain == nil
|
|
5704
|
+
return nil
|
|
5705
|
+
end
|
|
5706
|
+
plumbing = V1::ConnectorListResponse.new()
|
|
5707
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
|
5708
|
+
plumbing
|
|
5709
|
+
end
|
|
5710
|
+
def self.convert_repeated_connector_list_response_to_plumbing(porcelains)
|
|
5711
|
+
items = Array.new
|
|
5712
|
+
porcelains.each do |porcelain|
|
|
5713
|
+
plumbing = convert_connector_list_response_to_plumbing(porcelain)
|
|
5714
|
+
items.append(plumbing)
|
|
5715
|
+
end
|
|
5716
|
+
items
|
|
5717
|
+
end
|
|
5718
|
+
|
|
5719
|
+
def self.convert_repeated_connector_list_response_to_porcelain(plumbings)
|
|
5720
|
+
items = Array.new
|
|
5721
|
+
plumbings.each do |plumbing|
|
|
5722
|
+
porcelain = convert_connector_list_response_to_porcelain(plumbing)
|
|
5723
|
+
items.append(porcelain)
|
|
5724
|
+
end
|
|
5725
|
+
items
|
|
5726
|
+
end
|
|
5727
|
+
def self.convert_connector_update_request_to_porcelain(plumbing)
|
|
5728
|
+
if plumbing == nil
|
|
5729
|
+
return nil
|
|
5730
|
+
end
|
|
5731
|
+
porcelain = ConnectorUpdateRequest.new()
|
|
5732
|
+
porcelain.connector = convert_connector_to_porcelain(plumbing.connector)
|
|
5733
|
+
porcelain
|
|
5734
|
+
end
|
|
5735
|
+
|
|
5736
|
+
def self.convert_connector_update_request_to_plumbing(porcelain)
|
|
5737
|
+
if porcelain == nil
|
|
5738
|
+
return nil
|
|
5739
|
+
end
|
|
5740
|
+
plumbing = V1::ConnectorUpdateRequest.new()
|
|
5741
|
+
plumbing.connector = convert_connector_to_plumbing(porcelain.connector)
|
|
5742
|
+
plumbing
|
|
5743
|
+
end
|
|
5744
|
+
def self.convert_repeated_connector_update_request_to_plumbing(porcelains)
|
|
5745
|
+
items = Array.new
|
|
5746
|
+
porcelains.each do |porcelain|
|
|
5747
|
+
plumbing = convert_connector_update_request_to_plumbing(porcelain)
|
|
5748
|
+
items.append(plumbing)
|
|
5749
|
+
end
|
|
5750
|
+
items
|
|
5751
|
+
end
|
|
5752
|
+
|
|
5753
|
+
def self.convert_repeated_connector_update_request_to_porcelain(plumbings)
|
|
5754
|
+
items = Array.new
|
|
5755
|
+
plumbings.each do |plumbing|
|
|
5756
|
+
porcelain = convert_connector_update_request_to_porcelain(plumbing)
|
|
5757
|
+
items.append(porcelain)
|
|
5758
|
+
end
|
|
5759
|
+
items
|
|
5760
|
+
end
|
|
5761
|
+
def self.convert_connector_update_response_to_porcelain(plumbing)
|
|
5762
|
+
if plumbing == nil
|
|
5763
|
+
return nil
|
|
5764
|
+
end
|
|
5765
|
+
porcelain = ConnectorUpdateResponse.new()
|
|
5766
|
+
porcelain.connector = convert_connector_to_porcelain(plumbing.connector)
|
|
5767
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
|
5768
|
+
porcelain
|
|
5769
|
+
end
|
|
5770
|
+
|
|
5771
|
+
def self.convert_connector_update_response_to_plumbing(porcelain)
|
|
5772
|
+
if porcelain == nil
|
|
5773
|
+
return nil
|
|
5774
|
+
end
|
|
5775
|
+
plumbing = V1::ConnectorUpdateResponse.new()
|
|
5776
|
+
plumbing.connector = convert_connector_to_plumbing(porcelain.connector)
|
|
5777
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
|
5778
|
+
plumbing
|
|
5779
|
+
end
|
|
5780
|
+
def self.convert_repeated_connector_update_response_to_plumbing(porcelains)
|
|
5781
|
+
items = Array.new
|
|
5782
|
+
porcelains.each do |porcelain|
|
|
5783
|
+
plumbing = convert_connector_update_response_to_plumbing(porcelain)
|
|
5784
|
+
items.append(plumbing)
|
|
5785
|
+
end
|
|
5786
|
+
items
|
|
5787
|
+
end
|
|
5788
|
+
|
|
5789
|
+
def self.convert_repeated_connector_update_response_to_porcelain(plumbings)
|
|
5790
|
+
items = Array.new
|
|
5791
|
+
plumbings.each do |plumbing|
|
|
5792
|
+
porcelain = convert_connector_update_response_to_porcelain(plumbing)
|
|
5793
|
+
items.append(porcelain)
|
|
5794
|
+
end
|
|
5795
|
+
items
|
|
5796
|
+
end
|
|
5295
5797
|
def self.convert_control_panel_get_rdpca_public_key_response_to_porcelain(plumbing)
|
|
5296
5798
|
if plumbing == nil
|
|
5297
5799
|
return nil
|
|
@@ -6666,6 +7168,60 @@ module SDM
|
|
|
6666
7168
|
end
|
|
6667
7169
|
items
|
|
6668
7170
|
end
|
|
7171
|
+
def self.convert_gcp_connector_to_porcelain(plumbing)
|
|
7172
|
+
if plumbing == nil
|
|
7173
|
+
return nil
|
|
7174
|
+
end
|
|
7175
|
+
porcelain = GCPConnector.new()
|
|
7176
|
+
porcelain.description = (plumbing.description)
|
|
7177
|
+
porcelain.exclude_tags = convert_repeated_tag_to_porcelain(plumbing.exclude_tags)
|
|
7178
|
+
porcelain.id = (plumbing.id)
|
|
7179
|
+
porcelain.include_tags = convert_repeated_tag_to_porcelain(plumbing.include_tags)
|
|
7180
|
+
porcelain.name = (plumbing.name)
|
|
7181
|
+
porcelain.pool_id = (plumbing.pool_id)
|
|
7182
|
+
porcelain.project_ids = (plumbing.project_ids)
|
|
7183
|
+
porcelain.project_number = (plumbing.project_number)
|
|
7184
|
+
porcelain.provider_id = (plumbing.provider_id)
|
|
7185
|
+
porcelain.scan_period = (plumbing.scan_period)
|
|
7186
|
+
porcelain.services = (plumbing.services)
|
|
7187
|
+
porcelain
|
|
7188
|
+
end
|
|
7189
|
+
|
|
7190
|
+
def self.convert_gcp_connector_to_plumbing(porcelain)
|
|
7191
|
+
if porcelain == nil
|
|
7192
|
+
return nil
|
|
7193
|
+
end
|
|
7194
|
+
plumbing = V1::GCPConnector.new()
|
|
7195
|
+
plumbing.description = (porcelain.description)
|
|
7196
|
+
plumbing.exclude_tags += convert_repeated_tag_to_plumbing(porcelain.exclude_tags)
|
|
7197
|
+
plumbing.id = (porcelain.id)
|
|
7198
|
+
plumbing.include_tags += convert_repeated_tag_to_plumbing(porcelain.include_tags)
|
|
7199
|
+
plumbing.name = (porcelain.name)
|
|
7200
|
+
plumbing.pool_id = (porcelain.pool_id)
|
|
7201
|
+
plumbing.project_ids += (porcelain.project_ids)
|
|
7202
|
+
plumbing.project_number = (porcelain.project_number)
|
|
7203
|
+
plumbing.provider_id = (porcelain.provider_id)
|
|
7204
|
+
plumbing.scan_period = (porcelain.scan_period)
|
|
7205
|
+
plumbing.services += (porcelain.services)
|
|
7206
|
+
plumbing
|
|
7207
|
+
end
|
|
7208
|
+
def self.convert_repeated_gcp_connector_to_plumbing(porcelains)
|
|
7209
|
+
items = Array.new
|
|
7210
|
+
porcelains.each do |porcelain|
|
|
7211
|
+
plumbing = convert_gcp_connector_to_plumbing(porcelain)
|
|
7212
|
+
items.append(plumbing)
|
|
7213
|
+
end
|
|
7214
|
+
items
|
|
7215
|
+
end
|
|
7216
|
+
|
|
7217
|
+
def self.convert_repeated_gcp_connector_to_porcelain(plumbings)
|
|
7218
|
+
items = Array.new
|
|
7219
|
+
plumbings.each do |plumbing|
|
|
7220
|
+
porcelain = convert_gcp_connector_to_porcelain(plumbing)
|
|
7221
|
+
items.append(porcelain)
|
|
7222
|
+
end
|
|
7223
|
+
items
|
|
7224
|
+
end
|
|
6669
7225
|
def self.convert_gcp_console_to_porcelain(plumbing)
|
|
6670
7226
|
if plumbing == nil
|
|
6671
7227
|
return nil
|
|
@@ -16138,6 +16694,7 @@ module SDM
|
|
|
16138
16694
|
porcelain.hostname = (plumbing.hostname)
|
|
16139
16695
|
porcelain.id = (plumbing.id)
|
|
16140
16696
|
porcelain.key_type = (plumbing.key_type)
|
|
16697
|
+
porcelain.lock_required = (plumbing.lock_required)
|
|
16141
16698
|
porcelain.name = (plumbing.name)
|
|
16142
16699
|
porcelain.port = (plumbing.port)
|
|
16143
16700
|
porcelain.port_forwarding = (plumbing.port_forwarding)
|
|
@@ -16163,6 +16720,7 @@ module SDM
|
|
|
16163
16720
|
plumbing.hostname = (porcelain.hostname)
|
|
16164
16721
|
plumbing.id = (porcelain.id)
|
|
16165
16722
|
plumbing.key_type = (porcelain.key_type)
|
|
16723
|
+
plumbing.lock_required = (porcelain.lock_required)
|
|
16166
16724
|
plumbing.name = (porcelain.name)
|
|
16167
16725
|
plumbing.port = (porcelain.port)
|
|
16168
16726
|
plumbing.port_forwarding = (porcelain.port_forwarding)
|
|
@@ -16206,6 +16764,7 @@ module SDM
|
|
|
16206
16764
|
porcelain.identity_alias_healthcheck_username = (plumbing.identity_alias_healthcheck_username)
|
|
16207
16765
|
porcelain.identity_set_id = (plumbing.identity_set_id)
|
|
16208
16766
|
porcelain.key_type = (plumbing.key_type)
|
|
16767
|
+
porcelain.lock_required = (plumbing.lock_required)
|
|
16209
16768
|
porcelain.name = (plumbing.name)
|
|
16210
16769
|
porcelain.port = (plumbing.port)
|
|
16211
16770
|
porcelain.port_forwarding = (plumbing.port_forwarding)
|
|
@@ -16232,6 +16791,7 @@ module SDM
|
|
|
16232
16791
|
plumbing.identity_alias_healthcheck_username = (porcelain.identity_alias_healthcheck_username)
|
|
16233
16792
|
plumbing.identity_set_id = (porcelain.identity_set_id)
|
|
16234
16793
|
plumbing.key_type = (porcelain.key_type)
|
|
16794
|
+
plumbing.lock_required = (porcelain.lock_required)
|
|
16235
16795
|
plumbing.name = (porcelain.name)
|
|
16236
16796
|
plumbing.port = (porcelain.port)
|
|
16237
16797
|
plumbing.port_forwarding = (porcelain.port_forwarding)
|
|
@@ -16273,6 +16833,7 @@ module SDM
|
|
|
16273
16833
|
porcelain.id = (plumbing.id)
|
|
16274
16834
|
porcelain.identity_alias_healthcheck_username = (plumbing.identity_alias_healthcheck_username)
|
|
16275
16835
|
porcelain.identity_set_id = (plumbing.identity_set_id)
|
|
16836
|
+
porcelain.lock_required = (plumbing.lock_required)
|
|
16276
16837
|
porcelain.name = (plumbing.name)
|
|
16277
16838
|
porcelain.port = (plumbing.port)
|
|
16278
16839
|
porcelain.port_forwarding = (plumbing.port_forwarding)
|
|
@@ -16299,6 +16860,7 @@ module SDM
|
|
|
16299
16860
|
plumbing.id = (porcelain.id)
|
|
16300
16861
|
plumbing.identity_alias_healthcheck_username = (porcelain.identity_alias_healthcheck_username)
|
|
16301
16862
|
plumbing.identity_set_id = (porcelain.identity_set_id)
|
|
16863
|
+
plumbing.lock_required = (porcelain.lock_required)
|
|
16302
16864
|
plumbing.name = (porcelain.name)
|
|
16303
16865
|
plumbing.port = (porcelain.port)
|
|
16304
16866
|
plumbing.port_forwarding = (porcelain.port_forwarding)
|
|
@@ -16339,6 +16901,7 @@ module SDM
|
|
|
16339
16901
|
porcelain.healthy = (plumbing.healthy)
|
|
16340
16902
|
porcelain.hostname = (plumbing.hostname)
|
|
16341
16903
|
porcelain.id = (plumbing.id)
|
|
16904
|
+
porcelain.lock_required = (plumbing.lock_required)
|
|
16342
16905
|
porcelain.name = (plumbing.name)
|
|
16343
16906
|
porcelain.password = (plumbing.password)
|
|
16344
16907
|
porcelain.port = (plumbing.port)
|
|
@@ -16363,6 +16926,7 @@ module SDM
|
|
|
16363
16926
|
plumbing.healthy = (porcelain.healthy)
|
|
16364
16927
|
plumbing.hostname = (porcelain.hostname)
|
|
16365
16928
|
plumbing.id = (porcelain.id)
|
|
16929
|
+
plumbing.lock_required = (porcelain.lock_required)
|
|
16366
16930
|
plumbing.name = (porcelain.name)
|
|
16367
16931
|
plumbing.password = (porcelain.password)
|
|
16368
16932
|
plumbing.port = (porcelain.port)
|