strongdm 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/doc/SDM/AKS.html +3 -57
  3. data/doc/SDM/AKSBasicAuth.html +2 -2
  4. data/doc/SDM/AKSServiceAccount.html +2 -2
  5. data/doc/SDM/AmazonEKS.html +3 -21
  6. data/doc/SDM/AuroraMysql.html +2 -2
  7. data/doc/SDM/AuroraPostgres.html +2 -2
  8. data/doc/SDM/Citus.html +2 -2
  9. data/doc/SDM/Clustrix.html +2 -2
  10. data/doc/SDM/Cockroach.html +2 -2
  11. data/doc/SDM/ElasticacheRedis.html +2 -2
  12. data/doc/SDM/Gateway.html +2 -2
  13. data/doc/SDM/GoogleGKE.html +3 -39
  14. data/doc/SDM/Greenplum.html +2 -2
  15. data/doc/SDM/Kubernetes.html +3 -57
  16. data/doc/SDM/KubernetesBasicAuth.html +2 -2
  17. data/doc/SDM/KubernetesServiceAccount.html +2 -2
  18. data/doc/SDM/Maria.html +2 -2
  19. data/doc/SDM/Memcached.html +2 -2
  20. data/doc/SDM/Memsql.html +2 -2
  21. data/doc/SDM/MongoHost.html +2 -2
  22. data/doc/SDM/MongoLegacyHost.html +2 -2
  23. data/doc/SDM/MongoLegacyReplicaset.html +2 -2
  24. data/doc/SDM/MongoReplicaSet.html +2 -2
  25. data/doc/SDM/Mysql.html +2 -2
  26. data/doc/SDM/NodeCreateResponse.html +2 -2
  27. data/doc/SDM/NodeDeleteResponse.html +2 -2
  28. data/doc/SDM/NodeGetResponse.html +2 -2
  29. data/doc/SDM/NodeUpdateResponse.html +2 -2
  30. data/doc/SDM/Oracle.html +2 -2
  31. data/doc/SDM/Plumbing.html +240 -258
  32. data/doc/SDM/Postgres.html +2 -2
  33. data/doc/SDM/Presto.html +2 -2
  34. data/doc/SDM/RDP.html +2 -2
  35. data/doc/SDM/Redis.html +2 -2
  36. data/doc/SDM/Redshift.html +2 -2
  37. data/doc/SDM/Relay.html +2 -2
  38. data/doc/SDM/ResourceCreateResponse.html +2 -2
  39. data/doc/SDM/ResourceDeleteResponse.html +2 -2
  40. data/doc/SDM/ResourceGetResponse.html +2 -2
  41. data/doc/SDM/ResourceUpdateResponse.html +2 -2
  42. data/doc/SDM/Role.html +2 -2
  43. data/doc/SDM/RoleAttachment.html +2 -2
  44. data/doc/SDM/RoleAttachmentCreateResponse.html +2 -2
  45. data/doc/SDM/RoleAttachmentDeleteResponse.html +2 -2
  46. data/doc/SDM/RoleAttachmentGetResponse.html +2 -2
  47. data/doc/SDM/RoleCreateResponse.html +2 -2
  48. data/doc/SDM/RoleDeleteResponse.html +2 -2
  49. data/doc/SDM/RoleGetResponse.html +2 -2
  50. data/doc/SDM/RoleGrant.html +2 -2
  51. data/doc/SDM/RoleGrantCreateResponse.html +2 -2
  52. data/doc/SDM/RoleGrantDeleteResponse.html +2 -2
  53. data/doc/SDM/RoleGrantGetResponse.html +2 -2
  54. data/doc/SDM/RoleUpdateResponse.html +2 -2
  55. data/doc/SDM/SQLServer.html +2 -2
  56. data/doc/SDM/SSH.html +2 -2
  57. data/doc/SDM/SSHCert.html +2 -2
  58. data/doc/SDM/Snowflake.html +2 -2
  59. data/doc/SDM/Sybase.html +2 -2
  60. data/doc/SDM/SybaseIQ.html +2 -2
  61. data/doc/SDM/Teradata.html +2 -2
  62. data/doc/created.rid +35 -34
  63. data/doc/js/search_index.js +1 -1
  64. data/doc/js/search_index.js.gz +0 -0
  65. data/doc/lib/version.html +1 -1
  66. data/lib/grpc/drivers_pb.rb +0 -9
  67. data/lib/grpc/plumbing.rb +200 -218
  68. data/lib/models/porcelain.rb +4980 -0
  69. data/lib/version +1 -1
  70. data/lib/version.rb +1 -1
  71. metadata +2 -2
@@ -5361,4 +5361,4984 @@ module SDM
5361
5361
  hash.to_json
5362
5362
  end
5363
5363
  end
5364
+
5365
+ def to_json(options = {})
5366
+ hash = {}
5367
+ self.instance_variables.each do |var|
5368
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5369
+ end
5370
+ hash.to_json
5371
+ end
5372
+ end
5373
+
5374
+ # GetResponseMetadata is reserved for future use.
5375
+ class GetResponseMetadata
5376
+ def initialize()
5377
+ end
5378
+
5379
+ def to_json(options = {})
5380
+ hash = {}
5381
+ self.instance_variables.each do |var|
5382
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5383
+ end
5384
+ hash.to_json
5385
+ end
5386
+ end
5387
+
5388
+ # UpdateResponseMetadata is reserved for future use.
5389
+ class UpdateResponseMetadata
5390
+ def initialize()
5391
+ end
5392
+
5393
+ def to_json(options = {})
5394
+ hash = {}
5395
+ self.instance_variables.each do |var|
5396
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5397
+ end
5398
+ hash.to_json
5399
+ end
5400
+ end
5401
+
5402
+ # DeleteResponseMetadata is reserved for future use.
5403
+ class DeleteResponseMetadata
5404
+ def initialize()
5405
+ end
5406
+
5407
+ def to_json(options = {})
5408
+ hash = {}
5409
+ self.instance_variables.each do |var|
5410
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5411
+ end
5412
+ hash.to_json
5413
+ end
5414
+ end
5415
+
5416
+ # RateLimitMetadata contains information about remaining requests avaialable
5417
+ # to the user over some timeframe.
5418
+ class RateLimitMetadata
5419
+ # How many total requests the user/token is authorized to make before being
5420
+ # rate limited.
5421
+ attr_accessor :limit
5422
+ # How many remaining requests out of the limit are still avaialable.
5423
+ attr_accessor :remaining
5424
+ # The time when remaining will be reset to limit.
5425
+ attr_accessor :reset_at
5426
+ # The bucket this user/token is associated with, which may be shared between
5427
+ # multiple users/tokens.
5428
+ attr_accessor :bucket
5429
+
5430
+ def initialize(
5431
+ limit: nil,
5432
+ remaining: nil,
5433
+ reset_at: nil,
5434
+ bucket: nil
5435
+ )
5436
+ if limit != nil
5437
+ @limit = limit
5438
+ end
5439
+ if remaining != nil
5440
+ @remaining = remaining
5441
+ end
5442
+ if reset_at != nil
5443
+ @reset_at = reset_at
5444
+ end
5445
+ if bucket != nil
5446
+ @bucket = bucket
5447
+ end
5448
+ end
5449
+
5450
+ def to_json(options = {})
5451
+ hash = {}
5452
+ self.instance_variables.each do |var|
5453
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5454
+ end
5455
+ hash.to_json
5456
+ end
5457
+ end
5458
+
5459
+ # AccountAttachmentCreateResponse reports how the AccountAttachments were created in the system.
5460
+ class AccountAttachmentCreateResponse
5461
+ # Reserved for future use.
5462
+ attr_accessor :meta
5463
+ # The created AccountAttachment.
5464
+ attr_accessor :account_attachment
5465
+ # Rate limit information.
5466
+ attr_accessor :rate_limit
5467
+
5468
+ def initialize(
5469
+ meta: nil,
5470
+ account_attachment: nil,
5471
+ rate_limit: nil
5472
+ )
5473
+ if meta != nil
5474
+ @meta = meta
5475
+ end
5476
+ if account_attachment != nil
5477
+ @account_attachment = account_attachment
5478
+ end
5479
+ if rate_limit != nil
5480
+ @rate_limit = rate_limit
5481
+ end
5482
+ end
5483
+
5484
+ def to_json(options = {})
5485
+ hash = {}
5486
+ self.instance_variables.each do |var|
5487
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5488
+ end
5489
+ hash.to_json
5490
+ end
5491
+ end
5492
+
5493
+ # AccountAttachmentGetResponse returns a requested AccountAttachment.
5494
+ class AccountAttachmentGetResponse
5495
+ # Reserved for future use.
5496
+ attr_accessor :meta
5497
+ # The requested AccountAttachment.
5498
+ attr_accessor :account_attachment
5499
+ # Rate limit information.
5500
+ attr_accessor :rate_limit
5501
+
5502
+ def initialize(
5503
+ meta: nil,
5504
+ account_attachment: nil,
5505
+ rate_limit: nil
5506
+ )
5507
+ if meta != nil
5508
+ @meta = meta
5509
+ end
5510
+ if account_attachment != nil
5511
+ @account_attachment = account_attachment
5512
+ end
5513
+ if rate_limit != nil
5514
+ @rate_limit = rate_limit
5515
+ end
5516
+ end
5517
+
5518
+ def to_json(options = {})
5519
+ hash = {}
5520
+ self.instance_variables.each do |var|
5521
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5522
+ end
5523
+ hash.to_json
5524
+ end
5525
+ end
5526
+
5527
+ # AccountAttachmentDeleteResponse returns information about a AccountAttachment that was deleted.
5528
+ class AccountAttachmentDeleteResponse
5529
+ # Reserved for future use.
5530
+ attr_accessor :meta
5531
+ # Rate limit information.
5532
+ attr_accessor :rate_limit
5533
+
5534
+ def initialize(
5535
+ meta: nil,
5536
+ rate_limit: nil
5537
+ )
5538
+ if meta != nil
5539
+ @meta = meta
5540
+ end
5541
+ if rate_limit != nil
5542
+ @rate_limit = rate_limit
5543
+ end
5544
+ end
5545
+
5546
+ def to_json(options = {})
5547
+ hash = {}
5548
+ self.instance_variables.each do |var|
5549
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5550
+ end
5551
+ hash.to_json
5552
+ end
5553
+ end
5554
+
5555
+ # AccountAttachments assign an account to a role.
5556
+ class AccountAttachment
5557
+ # Unique identifier of the AccountAttachment.
5558
+ attr_accessor :id
5559
+ # The id of the account of this AccountAttachment.
5560
+ attr_accessor :account_id
5561
+ # The id of the attached role of this AccountAttachment.
5562
+ attr_accessor :role_id
5563
+
5564
+ def initialize(
5565
+ id: nil,
5566
+ account_id: nil,
5567
+ role_id: nil
5568
+ )
5569
+ if id != nil
5570
+ @id = id
5571
+ end
5572
+ if account_id != nil
5573
+ @account_id = account_id
5574
+ end
5575
+ if role_id != nil
5576
+ @role_id = role_id
5577
+ end
5578
+ end
5579
+
5580
+ def to_json(options = {})
5581
+ hash = {}
5582
+ self.instance_variables.each do |var|
5583
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5584
+ end
5585
+ hash.to_json
5586
+ end
5587
+ end
5588
+
5589
+ # AccountGrantCreateResponse reports how the AccountGrants were created in the system.
5590
+ class AccountGrantCreateResponse
5591
+ # Reserved for future use.
5592
+ attr_accessor :meta
5593
+ # The created AccountGrant.
5594
+ attr_accessor :account_grant
5595
+ # Rate limit information.
5596
+ attr_accessor :rate_limit
5597
+
5598
+ def initialize(
5599
+ meta: nil,
5600
+ account_grant: nil,
5601
+ rate_limit: nil
5602
+ )
5603
+ if meta != nil
5604
+ @meta = meta
5605
+ end
5606
+ if account_grant != nil
5607
+ @account_grant = account_grant
5608
+ end
5609
+ if rate_limit != nil
5610
+ @rate_limit = rate_limit
5611
+ end
5612
+ end
5613
+
5614
+ def to_json(options = {})
5615
+ hash = {}
5616
+ self.instance_variables.each do |var|
5617
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5618
+ end
5619
+ hash.to_json
5620
+ end
5621
+ end
5622
+
5623
+ # AccountGrantGetResponse returns a requested AccountGrant.
5624
+ class AccountGrantGetResponse
5625
+ # Reserved for future use.
5626
+ attr_accessor :meta
5627
+ # The requested AccountGrant.
5628
+ attr_accessor :account_grant
5629
+ # Rate limit information.
5630
+ attr_accessor :rate_limit
5631
+
5632
+ def initialize(
5633
+ meta: nil,
5634
+ account_grant: nil,
5635
+ rate_limit: nil
5636
+ )
5637
+ if meta != nil
5638
+ @meta = meta
5639
+ end
5640
+ if account_grant != nil
5641
+ @account_grant = account_grant
5642
+ end
5643
+ if rate_limit != nil
5644
+ @rate_limit = rate_limit
5645
+ end
5646
+ end
5647
+
5648
+ def to_json(options = {})
5649
+ hash = {}
5650
+ self.instance_variables.each do |var|
5651
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5652
+ end
5653
+ hash.to_json
5654
+ end
5655
+ end
5656
+
5657
+ # AccountGrantDeleteResponse returns information about a AccountGrant that was deleted.
5658
+ class AccountGrantDeleteResponse
5659
+ # Reserved for future use.
5660
+ attr_accessor :meta
5661
+ # Rate limit information.
5662
+ attr_accessor :rate_limit
5663
+
5664
+ def initialize(
5665
+ meta: nil,
5666
+ rate_limit: nil
5667
+ )
5668
+ if meta != nil
5669
+ @meta = meta
5670
+ end
5671
+ if rate_limit != nil
5672
+ @rate_limit = rate_limit
5673
+ end
5674
+ end
5675
+
5676
+ def to_json(options = {})
5677
+ hash = {}
5678
+ self.instance_variables.each do |var|
5679
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5680
+ end
5681
+ hash.to_json
5682
+ end
5683
+ end
5684
+
5685
+ # AccountGrants connect a resource directly to an account, giving the account the permission to connect to that resource.
5686
+ class AccountGrant
5687
+ # Unique identifier of the AccountGrant.
5688
+ attr_accessor :id
5689
+ # The id of the composite role of this AccountGrant.
5690
+ attr_accessor :resource_id
5691
+ # The id of the attached role of this AccountGrant.
5692
+ attr_accessor :account_id
5693
+ # The timestamp when the resource will be granted. Optional. Both start_at
5694
+ # and end_at must be defined together, or not defined at all.
5695
+ attr_accessor :start_from
5696
+ # The timestamp when the resource grant will expire. Optional. Both
5697
+ # start_at and end_at must be defined together, or not defined at all.
5698
+ attr_accessor :valid_until
5699
+
5700
+ def initialize(
5701
+ id: nil,
5702
+ resource_id: nil,
5703
+ account_id: nil,
5704
+ start_from: nil,
5705
+ valid_until: nil
5706
+ )
5707
+ if id != nil
5708
+ @id = id
5709
+ end
5710
+ if resource_id != nil
5711
+ @resource_id = resource_id
5712
+ end
5713
+ if account_id != nil
5714
+ @account_id = account_id
5715
+ end
5716
+ if start_from != nil
5717
+ @start_from = start_from
5718
+ end
5719
+ if valid_until != nil
5720
+ @valid_until = valid_until
5721
+ end
5722
+ end
5723
+
5724
+ def to_json(options = {})
5725
+ hash = {}
5726
+ self.instance_variables.each do |var|
5727
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5728
+ end
5729
+ hash.to_json
5730
+ end
5731
+ end
5732
+
5733
+ # AccountCreateResponse reports how the Accounts were created in the system.
5734
+ class AccountCreateResponse
5735
+ # Reserved for future use.
5736
+ attr_accessor :meta
5737
+ # The created Account.
5738
+ attr_accessor :account
5739
+ # The auth token generated for the Account. The Account will use this token to
5740
+ # authenticate with the strongDM API.
5741
+ attr_accessor :token
5742
+ # Rate limit information.
5743
+ attr_accessor :rate_limit
5744
+
5745
+ def initialize(
5746
+ meta: nil,
5747
+ account: nil,
5748
+ token: nil,
5749
+ rate_limit: nil
5750
+ )
5751
+ if meta != nil
5752
+ @meta = meta
5753
+ end
5754
+ if account != nil
5755
+ @account = account
5756
+ end
5757
+ if token != nil
5758
+ @token = token
5759
+ end
5760
+ if rate_limit != nil
5761
+ @rate_limit = rate_limit
5762
+ end
5763
+ end
5764
+
5765
+ def to_json(options = {})
5766
+ hash = {}
5767
+ self.instance_variables.each do |var|
5768
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5769
+ end
5770
+ hash.to_json
5771
+ end
5772
+ end
5773
+
5774
+ # AccountGetResponse returns a requested Account.
5775
+ class AccountGetResponse
5776
+ # Reserved for future use.
5777
+ attr_accessor :meta
5778
+ # The requested Account.
5779
+ attr_accessor :account
5780
+ # Rate limit information.
5781
+ attr_accessor :rate_limit
5782
+
5783
+ def initialize(
5784
+ meta: nil,
5785
+ account: nil,
5786
+ rate_limit: nil
5787
+ )
5788
+ if meta != nil
5789
+ @meta = meta
5790
+ end
5791
+ if account != nil
5792
+ @account = account
5793
+ end
5794
+ if rate_limit != nil
5795
+ @rate_limit = rate_limit
5796
+ end
5797
+ end
5798
+
5799
+ def to_json(options = {})
5800
+ hash = {}
5801
+ self.instance_variables.each do |var|
5802
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5803
+ end
5804
+ hash.to_json
5805
+ end
5806
+ end
5807
+
5808
+ # AccountUpdateResponse returns the fields of a Account after it has been updated by
5809
+ # a AccountUpdateRequest.
5810
+ class AccountUpdateResponse
5811
+ # Reserved for future use.
5812
+ attr_accessor :meta
5813
+ # The updated Account.
5814
+ attr_accessor :account
5815
+ # Rate limit information.
5816
+ attr_accessor :rate_limit
5817
+
5818
+ def initialize(
5819
+ meta: nil,
5820
+ account: nil,
5821
+ rate_limit: nil
5822
+ )
5823
+ if meta != nil
5824
+ @meta = meta
5825
+ end
5826
+ if account != nil
5827
+ @account = account
5828
+ end
5829
+ if rate_limit != nil
5830
+ @rate_limit = rate_limit
5831
+ end
5832
+ end
5833
+
5834
+ def to_json(options = {})
5835
+ hash = {}
5836
+ self.instance_variables.each do |var|
5837
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5838
+ end
5839
+ hash.to_json
5840
+ end
5841
+ end
5842
+
5843
+ # AccountDeleteResponse returns information about a Account that was deleted.
5844
+ class AccountDeleteResponse
5845
+ # Reserved for future use.
5846
+ attr_accessor :meta
5847
+ # Rate limit information.
5848
+ attr_accessor :rate_limit
5849
+
5850
+ def initialize(
5851
+ meta: nil,
5852
+ rate_limit: nil
5853
+ )
5854
+ if meta != nil
5855
+ @meta = meta
5856
+ end
5857
+ if rate_limit != nil
5858
+ @rate_limit = rate_limit
5859
+ end
5860
+ end
5861
+
5862
+ def to_json(options = {})
5863
+ hash = {}
5864
+ self.instance_variables.each do |var|
5865
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5866
+ end
5867
+ hash.to_json
5868
+ end
5869
+ end
5870
+
5871
+ # A User can connect to resources they are granted directly, or granted
5872
+ # via roles.
5873
+ class User
5874
+ # Unique identifier of the User.
5875
+ attr_accessor :id
5876
+ # The User's email address. Must be unique.
5877
+ attr_accessor :email
5878
+ # The User's first name.
5879
+ attr_accessor :first_name
5880
+ # The User's last name.
5881
+ attr_accessor :last_name
5882
+ # The User's suspended state.
5883
+ attr_accessor :suspended
5884
+ # Tags is a map of key, value pairs.
5885
+ attr_accessor :tags
5886
+
5887
+ def initialize(
5888
+ id: nil,
5889
+ email: nil,
5890
+ first_name: nil,
5891
+ last_name: nil,
5892
+ suspended: nil,
5893
+ tags: nil
5894
+ )
5895
+ if id != nil
5896
+ @id = id
5897
+ end
5898
+ if email != nil
5899
+ @email = email
5900
+ end
5901
+ if first_name != nil
5902
+ @first_name = first_name
5903
+ end
5904
+ if last_name != nil
5905
+ @last_name = last_name
5906
+ end
5907
+ if suspended != nil
5908
+ @suspended = suspended
5909
+ end
5910
+ if tags != nil
5911
+ @tags = tags
5912
+ end
5913
+ end
5914
+
5915
+ def to_json(options = {})
5916
+ hash = {}
5917
+ self.instance_variables.each do |var|
5918
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5919
+ end
5920
+ hash.to_json
5921
+ end
5922
+ end
5923
+
5924
+ # A Service is a service account that can connect to resources they are granted
5925
+ # directly, or granted via roles. Services are typically automated jobs.
5926
+ class Service
5927
+ # Unique identifier of the Service.
5928
+ attr_accessor :id
5929
+ # Unique human-readable name of the Service.
5930
+ attr_accessor :name
5931
+ # The Service's suspended state.
5932
+ attr_accessor :suspended
5933
+ # Tags is a map of key, value pairs.
5934
+ attr_accessor :tags
5935
+
5936
+ def initialize(
5937
+ id: nil,
5938
+ name: nil,
5939
+ suspended: nil,
5940
+ tags: nil
5941
+ )
5942
+ if id != nil
5943
+ @id = id
5944
+ end
5945
+ if name != nil
5946
+ @name = name
5947
+ end
5948
+ if suspended != nil
5949
+ @suspended = suspended
5950
+ end
5951
+ if tags != nil
5952
+ @tags = tags
5953
+ end
5954
+ end
5955
+
5956
+ def to_json(options = {})
5957
+ hash = {}
5958
+ self.instance_variables.each do |var|
5959
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5960
+ end
5961
+ hash.to_json
5962
+ end
5963
+ end
5964
+
5965
+ class Athena
5966
+ # Unique identifier of the Resource.
5967
+ attr_accessor :id
5968
+ # Unique human-readable name of the Resource.
5969
+ attr_accessor :name
5970
+ # True if the datasource is reachable and the credentials are valid.
5971
+ attr_accessor :healthy
5972
+ # Tags is a map of key, value pairs.
5973
+ attr_accessor :tags
5974
+
5975
+ attr_accessor :access_key
5976
+
5977
+ attr_accessor :secret_access_key
5978
+
5979
+ attr_accessor :output
5980
+
5981
+ attr_accessor :port_override
5982
+
5983
+ attr_accessor :region
5984
+
5985
+ def initialize(
5986
+ id: nil,
5987
+ name: nil,
5988
+ healthy: nil,
5989
+ tags: nil,
5990
+ access_key: nil,
5991
+ secret_access_key: nil,
5992
+ output: nil,
5993
+ port_override: nil,
5994
+ region: nil
5995
+ )
5996
+ if id != nil
5997
+ @id = id
5998
+ end
5999
+ if name != nil
6000
+ @name = name
6001
+ end
6002
+ if healthy != nil
6003
+ @healthy = healthy
6004
+ end
6005
+ if tags != nil
6006
+ @tags = tags
6007
+ end
6008
+ if access_key != nil
6009
+ @access_key = access_key
6010
+ end
6011
+ if secret_access_key != nil
6012
+ @secret_access_key = secret_access_key
6013
+ end
6014
+ if output != nil
6015
+ @output = output
6016
+ end
6017
+ if port_override != nil
6018
+ @port_override = port_override
6019
+ end
6020
+ if region != nil
6021
+ @region = region
6022
+ end
6023
+ end
6024
+
6025
+ def to_json(options = {})
6026
+ hash = {}
6027
+ self.instance_variables.each do |var|
6028
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6029
+ end
6030
+ hash.to_json
6031
+ end
6032
+ end
6033
+
6034
+ class BigQuery
6035
+ # Unique identifier of the Resource.
6036
+ attr_accessor :id
6037
+ # Unique human-readable name of the Resource.
6038
+ attr_accessor :name
6039
+ # True if the datasource is reachable and the credentials are valid.
6040
+ attr_accessor :healthy
6041
+ # Tags is a map of key, value pairs.
6042
+ attr_accessor :tags
6043
+
6044
+ attr_accessor :private_key
6045
+
6046
+ attr_accessor :project
6047
+
6048
+ attr_accessor :port_override
6049
+
6050
+ attr_accessor :endpoint
6051
+
6052
+ attr_accessor :username
6053
+
6054
+ def initialize(
6055
+ id: nil,
6056
+ name: nil,
6057
+ healthy: nil,
6058
+ tags: nil,
6059
+ private_key: nil,
6060
+ project: nil,
6061
+ port_override: nil,
6062
+ endpoint: nil,
6063
+ username: nil
6064
+ )
6065
+ if id != nil
6066
+ @id = id
6067
+ end
6068
+ if name != nil
6069
+ @name = name
6070
+ end
6071
+ if healthy != nil
6072
+ @healthy = healthy
6073
+ end
6074
+ if tags != nil
6075
+ @tags = tags
6076
+ end
6077
+ if private_key != nil
6078
+ @private_key = private_key
6079
+ end
6080
+ if project != nil
6081
+ @project = project
6082
+ end
6083
+ if port_override != nil
6084
+ @port_override = port_override
6085
+ end
6086
+ if endpoint != nil
6087
+ @endpoint = endpoint
6088
+ end
6089
+ if username != nil
6090
+ @username = username
6091
+ end
6092
+ end
6093
+
6094
+ def to_json(options = {})
6095
+ hash = {}
6096
+ self.instance_variables.each do |var|
6097
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6098
+ end
6099
+ hash.to_json
6100
+ end
6101
+ end
6102
+
6103
+ class Cassandra
6104
+ # Unique identifier of the Resource.
6105
+ attr_accessor :id
6106
+ # Unique human-readable name of the Resource.
6107
+ attr_accessor :name
6108
+ # True if the datasource is reachable and the credentials are valid.
6109
+ attr_accessor :healthy
6110
+ # Tags is a map of key, value pairs.
6111
+ attr_accessor :tags
6112
+
6113
+ attr_accessor :hostname
6114
+
6115
+ attr_accessor :username
6116
+
6117
+ attr_accessor :password
6118
+
6119
+ attr_accessor :port_override
6120
+
6121
+ attr_accessor :port
6122
+
6123
+ attr_accessor :tls_required
6124
+
6125
+ def initialize(
6126
+ id: nil,
6127
+ name: nil,
6128
+ healthy: nil,
6129
+ tags: nil,
6130
+ hostname: nil,
6131
+ username: nil,
6132
+ password: nil,
6133
+ port_override: nil,
6134
+ port: nil,
6135
+ tls_required: nil
6136
+ )
6137
+ if id != nil
6138
+ @id = id
6139
+ end
6140
+ if name != nil
6141
+ @name = name
6142
+ end
6143
+ if healthy != nil
6144
+ @healthy = healthy
6145
+ end
6146
+ if tags != nil
6147
+ @tags = tags
6148
+ end
6149
+ if hostname != nil
6150
+ @hostname = hostname
6151
+ end
6152
+ if username != nil
6153
+ @username = username
6154
+ end
6155
+ if password != nil
6156
+ @password = password
6157
+ end
6158
+ if port_override != nil
6159
+ @port_override = port_override
6160
+ end
6161
+ if port != nil
6162
+ @port = port
6163
+ end
6164
+ if tls_required != nil
6165
+ @tls_required = tls_required
6166
+ end
6167
+ end
6168
+
6169
+ def to_json(options = {})
6170
+ hash = {}
6171
+ self.instance_variables.each do |var|
6172
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6173
+ end
6174
+ hash.to_json
6175
+ end
6176
+ end
6177
+
6178
+ class DB2I
6179
+ # Unique identifier of the Resource.
6180
+ attr_accessor :id
6181
+ # Unique human-readable name of the Resource.
6182
+ attr_accessor :name
6183
+ # True if the datasource is reachable and the credentials are valid.
6184
+ attr_accessor :healthy
6185
+ # Tags is a map of key, value pairs.
6186
+ attr_accessor :tags
6187
+
6188
+ attr_accessor :hostname
6189
+
6190
+ attr_accessor :username
6191
+
6192
+ attr_accessor :password
6193
+
6194
+ attr_accessor :port_override
6195
+
6196
+ attr_accessor :port
6197
+
6198
+ attr_accessor :tls_required
6199
+
6200
+ def initialize(
6201
+ id: nil,
6202
+ name: nil,
6203
+ healthy: nil,
6204
+ tags: nil,
6205
+ hostname: nil,
6206
+ username: nil,
6207
+ password: nil,
6208
+ port_override: nil,
6209
+ port: nil,
6210
+ tls_required: nil
6211
+ )
6212
+ if id != nil
6213
+ @id = id
6214
+ end
6215
+ if name != nil
6216
+ @name = name
6217
+ end
6218
+ if healthy != nil
6219
+ @healthy = healthy
6220
+ end
6221
+ if tags != nil
6222
+ @tags = tags
6223
+ end
6224
+ if hostname != nil
6225
+ @hostname = hostname
6226
+ end
6227
+ if username != nil
6228
+ @username = username
6229
+ end
6230
+ if password != nil
6231
+ @password = password
6232
+ end
6233
+ if port_override != nil
6234
+ @port_override = port_override
6235
+ end
6236
+ if port != nil
6237
+ @port = port
6238
+ end
6239
+ if tls_required != nil
6240
+ @tls_required = tls_required
6241
+ end
6242
+ end
6243
+
6244
+ def to_json(options = {})
6245
+ hash = {}
6246
+ self.instance_variables.each do |var|
6247
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6248
+ end
6249
+ hash.to_json
6250
+ end
6251
+ end
6252
+
6253
+ class DB2LUW
6254
+ # Unique identifier of the Resource.
6255
+ attr_accessor :id
6256
+ # Unique human-readable name of the Resource.
6257
+ attr_accessor :name
6258
+ # True if the datasource is reachable and the credentials are valid.
6259
+ attr_accessor :healthy
6260
+ # Tags is a map of key, value pairs.
6261
+ attr_accessor :tags
6262
+
6263
+ attr_accessor :hostname
6264
+
6265
+ attr_accessor :username
6266
+
6267
+ attr_accessor :password
6268
+
6269
+ attr_accessor :database
6270
+
6271
+ attr_accessor :port_override
6272
+
6273
+ attr_accessor :port
6274
+
6275
+ def initialize(
6276
+ id: nil,
6277
+ name: nil,
6278
+ healthy: nil,
6279
+ tags: nil,
6280
+ hostname: nil,
6281
+ username: nil,
6282
+ password: nil,
6283
+ database: nil,
6284
+ port_override: nil,
6285
+ port: nil
6286
+ )
6287
+ if id != nil
6288
+ @id = id
6289
+ end
6290
+ if name != nil
6291
+ @name = name
6292
+ end
6293
+ if healthy != nil
6294
+ @healthy = healthy
6295
+ end
6296
+ if tags != nil
6297
+ @tags = tags
6298
+ end
6299
+ if hostname != nil
6300
+ @hostname = hostname
6301
+ end
6302
+ if username != nil
6303
+ @username = username
6304
+ end
6305
+ if password != nil
6306
+ @password = password
6307
+ end
6308
+ if database != nil
6309
+ @database = database
6310
+ end
6311
+ if port_override != nil
6312
+ @port_override = port_override
6313
+ end
6314
+ if port != nil
6315
+ @port = port
6316
+ end
6317
+ end
6318
+
6319
+ def to_json(options = {})
6320
+ hash = {}
6321
+ self.instance_variables.each do |var|
6322
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6323
+ end
6324
+ hash.to_json
6325
+ end
6326
+ end
6327
+
6328
+ class Druid
6329
+ # Unique identifier of the Resource.
6330
+ attr_accessor :id
6331
+ # Unique human-readable name of the Resource.
6332
+ attr_accessor :name
6333
+ # True if the datasource is reachable and the credentials are valid.
6334
+ attr_accessor :healthy
6335
+ # Tags is a map of key, value pairs.
6336
+ attr_accessor :tags
6337
+
6338
+ attr_accessor :hostname
6339
+
6340
+ attr_accessor :port_override
6341
+
6342
+ attr_accessor :username
6343
+
6344
+ attr_accessor :password
6345
+
6346
+ attr_accessor :port
6347
+
6348
+ def initialize(
6349
+ id: nil,
6350
+ name: nil,
6351
+ healthy: nil,
6352
+ tags: nil,
6353
+ hostname: nil,
6354
+ port_override: nil,
6355
+ username: nil,
6356
+ password: nil,
6357
+ port: nil
6358
+ )
6359
+ if id != nil
6360
+ @id = id
6361
+ end
6362
+ if name != nil
6363
+ @name = name
6364
+ end
6365
+ if healthy != nil
6366
+ @healthy = healthy
6367
+ end
6368
+ if tags != nil
6369
+ @tags = tags
6370
+ end
6371
+ if hostname != nil
6372
+ @hostname = hostname
6373
+ end
6374
+ if port_override != nil
6375
+ @port_override = port_override
6376
+ end
6377
+ if username != nil
6378
+ @username = username
6379
+ end
6380
+ if password != nil
6381
+ @password = password
6382
+ end
6383
+ if port != nil
6384
+ @port = port
6385
+ end
6386
+ end
6387
+
6388
+ def to_json(options = {})
6389
+ hash = {}
6390
+ self.instance_variables.each do |var|
6391
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6392
+ end
6393
+ hash.to_json
6394
+ end
6395
+ end
6396
+
6397
+ class DynamoDB
6398
+ # Unique identifier of the Resource.
6399
+ attr_accessor :id
6400
+ # Unique human-readable name of the Resource.
6401
+ attr_accessor :name
6402
+ # True if the datasource is reachable and the credentials are valid.
6403
+ attr_accessor :healthy
6404
+ # Tags is a map of key, value pairs.
6405
+ attr_accessor :tags
6406
+
6407
+ attr_accessor :access_key
6408
+
6409
+ attr_accessor :secret_access_key
6410
+
6411
+ attr_accessor :region
6412
+
6413
+ attr_accessor :endpoint
6414
+
6415
+ attr_accessor :port_override
6416
+
6417
+ def initialize(
6418
+ id: nil,
6419
+ name: nil,
6420
+ healthy: nil,
6421
+ tags: nil,
6422
+ access_key: nil,
6423
+ secret_access_key: nil,
6424
+ region: nil,
6425
+ endpoint: nil,
6426
+ port_override: nil
6427
+ )
6428
+ if id != nil
6429
+ @id = id
6430
+ end
6431
+ if name != nil
6432
+ @name = name
6433
+ end
6434
+ if healthy != nil
6435
+ @healthy = healthy
6436
+ end
6437
+ if tags != nil
6438
+ @tags = tags
6439
+ end
6440
+ if access_key != nil
6441
+ @access_key = access_key
6442
+ end
6443
+ if secret_access_key != nil
6444
+ @secret_access_key = secret_access_key
6445
+ end
6446
+ if region != nil
6447
+ @region = region
6448
+ end
6449
+ if endpoint != nil
6450
+ @endpoint = endpoint
6451
+ end
6452
+ if port_override != nil
6453
+ @port_override = port_override
6454
+ end
6455
+ end
6456
+
6457
+ def to_json(options = {})
6458
+ hash = {}
6459
+ self.instance_variables.each do |var|
6460
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6461
+ end
6462
+ hash.to_json
6463
+ end
6464
+ end
6465
+
6466
+ class AmazonES
6467
+ # Unique identifier of the Resource.
6468
+ attr_accessor :id
6469
+ # Unique human-readable name of the Resource.
6470
+ attr_accessor :name
6471
+ # True if the datasource is reachable and the credentials are valid.
6472
+ attr_accessor :healthy
6473
+ # Tags is a map of key, value pairs.
6474
+ attr_accessor :tags
6475
+
6476
+ attr_accessor :region
6477
+
6478
+ attr_accessor :secret_access_key
6479
+
6480
+ attr_accessor :endpoint
6481
+
6482
+ attr_accessor :access_key
6483
+
6484
+ attr_accessor :port_override
6485
+
6486
+ def initialize(
6487
+ id: nil,
6488
+ name: nil,
6489
+ healthy: nil,
6490
+ tags: nil,
6491
+ region: nil,
6492
+ secret_access_key: nil,
6493
+ endpoint: nil,
6494
+ access_key: nil,
6495
+ port_override: nil
6496
+ )
6497
+ if id != nil
6498
+ @id = id
6499
+ end
6500
+ if name != nil
6501
+ @name = name
6502
+ end
6503
+ if healthy != nil
6504
+ @healthy = healthy
6505
+ end
6506
+ if tags != nil
6507
+ @tags = tags
6508
+ end
6509
+ if region != nil
6510
+ @region = region
6511
+ end
6512
+ if secret_access_key != nil
6513
+ @secret_access_key = secret_access_key
6514
+ end
6515
+ if endpoint != nil
6516
+ @endpoint = endpoint
6517
+ end
6518
+ if access_key != nil
6519
+ @access_key = access_key
6520
+ end
6521
+ if port_override != nil
6522
+ @port_override = port_override
6523
+ end
6524
+ end
6525
+
6526
+ def to_json(options = {})
6527
+ hash = {}
6528
+ self.instance_variables.each do |var|
6529
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6530
+ end
6531
+ hash.to_json
6532
+ end
6533
+ end
6534
+
6535
+ class Elastic
6536
+ # Unique identifier of the Resource.
6537
+ attr_accessor :id
6538
+ # Unique human-readable name of the Resource.
6539
+ attr_accessor :name
6540
+ # True if the datasource is reachable and the credentials are valid.
6541
+ attr_accessor :healthy
6542
+ # Tags is a map of key, value pairs.
6543
+ attr_accessor :tags
6544
+
6545
+ attr_accessor :hostname
6546
+
6547
+ attr_accessor :username
6548
+
6549
+ attr_accessor :password
6550
+
6551
+ attr_accessor :port_override
6552
+
6553
+ attr_accessor :port
6554
+
6555
+ attr_accessor :tls_required
6556
+
6557
+ def initialize(
6558
+ id: nil,
6559
+ name: nil,
6560
+ healthy: nil,
6561
+ tags: nil,
6562
+ hostname: nil,
6563
+ username: nil,
6564
+ password: nil,
6565
+ port_override: nil,
6566
+ port: nil,
6567
+ tls_required: nil
6568
+ )
6569
+ if id != nil
6570
+ @id = id
6571
+ end
6572
+ if name != nil
6573
+ @name = name
6574
+ end
6575
+ if healthy != nil
6576
+ @healthy = healthy
6577
+ end
6578
+ if tags != nil
6579
+ @tags = tags
6580
+ end
6581
+ if hostname != nil
6582
+ @hostname = hostname
6583
+ end
6584
+ if username != nil
6585
+ @username = username
6586
+ end
6587
+ if password != nil
6588
+ @password = password
6589
+ end
6590
+ if port_override != nil
6591
+ @port_override = port_override
6592
+ end
6593
+ if port != nil
6594
+ @port = port
6595
+ end
6596
+ if tls_required != nil
6597
+ @tls_required = tls_required
6598
+ end
6599
+ end
6600
+
6601
+ def to_json(options = {})
6602
+ hash = {}
6603
+ self.instance_variables.each do |var|
6604
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6605
+ end
6606
+ hash.to_json
6607
+ end
6608
+ end
6609
+
6610
+ class HTTPBasicAuth
6611
+ # Unique identifier of the Resource.
6612
+ attr_accessor :id
6613
+ # Unique human-readable name of the Resource.
6614
+ attr_accessor :name
6615
+ # True if the datasource is reachable and the credentials are valid.
6616
+ attr_accessor :healthy
6617
+ # Tags is a map of key, value pairs.
6618
+ attr_accessor :tags
6619
+
6620
+ attr_accessor :url
6621
+
6622
+ attr_accessor :healthcheck_path
6623
+
6624
+ attr_accessor :username
6625
+
6626
+ attr_accessor :password
6627
+
6628
+ attr_accessor :headers_blacklist
6629
+
6630
+ attr_accessor :default_path
6631
+
6632
+ attr_accessor :subdomain
6633
+
6634
+ def initialize(
6635
+ id: nil,
6636
+ name: nil,
6637
+ healthy: nil,
6638
+ tags: nil,
6639
+ url: nil,
6640
+ healthcheck_path: nil,
6641
+ username: nil,
6642
+ password: nil,
6643
+ headers_blacklist: nil,
6644
+ default_path: nil,
6645
+ subdomain: nil
6646
+ )
6647
+ if id != nil
6648
+ @id = id
6649
+ end
6650
+ if name != nil
6651
+ @name = name
6652
+ end
6653
+ if healthy != nil
6654
+ @healthy = healthy
6655
+ end
6656
+ if tags != nil
6657
+ @tags = tags
6658
+ end
6659
+ if url != nil
6660
+ @url = url
6661
+ end
6662
+ if healthcheck_path != nil
6663
+ @healthcheck_path = healthcheck_path
6664
+ end
6665
+ if username != nil
6666
+ @username = username
6667
+ end
6668
+ if password != nil
6669
+ @password = password
6670
+ end
6671
+ if headers_blacklist != nil
6672
+ @headers_blacklist = headers_blacklist
6673
+ end
6674
+ if default_path != nil
6675
+ @default_path = default_path
6676
+ end
6677
+ if subdomain != nil
6678
+ @subdomain = subdomain
6679
+ end
6680
+ end
6681
+
6682
+ def to_json(options = {})
6683
+ hash = {}
6684
+ self.instance_variables.each do |var|
6685
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6686
+ end
6687
+ hash.to_json
6688
+ end
6689
+ end
6690
+
6691
+ class HTTPNoAuth
6692
+ # Unique identifier of the Resource.
6693
+ attr_accessor :id
6694
+ # Unique human-readable name of the Resource.
6695
+ attr_accessor :name
6696
+ # True if the datasource is reachable and the credentials are valid.
6697
+ attr_accessor :healthy
6698
+ # Tags is a map of key, value pairs.
6699
+ attr_accessor :tags
6700
+
6701
+ attr_accessor :url
6702
+
6703
+ attr_accessor :healthcheck_path
6704
+
6705
+ attr_accessor :headers_blacklist
6706
+
6707
+ attr_accessor :default_path
6708
+
6709
+ attr_accessor :subdomain
6710
+
6711
+ def initialize(
6712
+ id: nil,
6713
+ name: nil,
6714
+ healthy: nil,
6715
+ tags: nil,
6716
+ url: nil,
6717
+ healthcheck_path: nil,
6718
+ headers_blacklist: nil,
6719
+ default_path: nil,
6720
+ subdomain: nil
6721
+ )
6722
+ if id != nil
6723
+ @id = id
6724
+ end
6725
+ if name != nil
6726
+ @name = name
6727
+ end
6728
+ if healthy != nil
6729
+ @healthy = healthy
6730
+ end
6731
+ if tags != nil
6732
+ @tags = tags
6733
+ end
6734
+ if url != nil
6735
+ @url = url
6736
+ end
6737
+ if healthcheck_path != nil
6738
+ @healthcheck_path = healthcheck_path
6739
+ end
6740
+ if headers_blacklist != nil
6741
+ @headers_blacklist = headers_blacklist
6742
+ end
6743
+ if default_path != nil
6744
+ @default_path = default_path
6745
+ end
6746
+ if subdomain != nil
6747
+ @subdomain = subdomain
6748
+ end
6749
+ end
6750
+
6751
+ def to_json(options = {})
6752
+ hash = {}
6753
+ self.instance_variables.each do |var|
6754
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6755
+ end
6756
+ hash.to_json
6757
+ end
6758
+ end
6759
+
6760
+ class HTTPAuth
6761
+ # Unique identifier of the Resource.
6762
+ attr_accessor :id
6763
+ # Unique human-readable name of the Resource.
6764
+ attr_accessor :name
6765
+ # True if the datasource is reachable and the credentials are valid.
6766
+ attr_accessor :healthy
6767
+ # Tags is a map of key, value pairs.
6768
+ attr_accessor :tags
6769
+
6770
+ attr_accessor :url
6771
+
6772
+ attr_accessor :healthcheck_path
6773
+
6774
+ attr_accessor :auth_header
6775
+
6776
+ attr_accessor :headers_blacklist
6777
+
6778
+ attr_accessor :default_path
6779
+
6780
+ attr_accessor :subdomain
6781
+
6782
+ def initialize(
6783
+ id: nil,
6784
+ name: nil,
6785
+ healthy: nil,
6786
+ tags: nil,
6787
+ url: nil,
6788
+ healthcheck_path: nil,
6789
+ auth_header: nil,
6790
+ headers_blacklist: nil,
6791
+ default_path: nil,
6792
+ subdomain: nil
6793
+ )
6794
+ if id != nil
6795
+ @id = id
6796
+ end
6797
+ if name != nil
6798
+ @name = name
6799
+ end
6800
+ if healthy != nil
6801
+ @healthy = healthy
6802
+ end
6803
+ if tags != nil
6804
+ @tags = tags
6805
+ end
6806
+ if url != nil
6807
+ @url = url
6808
+ end
6809
+ if healthcheck_path != nil
6810
+ @healthcheck_path = healthcheck_path
6811
+ end
6812
+ if auth_header != nil
6813
+ @auth_header = auth_header
6814
+ end
6815
+ if headers_blacklist != nil
6816
+ @headers_blacklist = headers_blacklist
6817
+ end
6818
+ if default_path != nil
6819
+ @default_path = default_path
6820
+ end
6821
+ if subdomain != nil
6822
+ @subdomain = subdomain
6823
+ end
6824
+ end
6825
+
6826
+ def to_json(options = {})
6827
+ hash = {}
6828
+ self.instance_variables.each do |var|
6829
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6830
+ end
6831
+ hash.to_json
6832
+ end
6833
+ end
6834
+
6835
+ class Kubernetes
6836
+ # Unique identifier of the Resource.
6837
+ attr_accessor :id
6838
+ # Unique human-readable name of the Resource.
6839
+ attr_accessor :name
6840
+ # True if the datasource is reachable and the credentials are valid.
6841
+ attr_accessor :healthy
6842
+ # Tags is a map of key, value pairs.
6843
+ attr_accessor :tags
6844
+
6845
+ attr_accessor :hostname
6846
+
6847
+ attr_accessor :port
6848
+
6849
+ attr_accessor :certificate_authority
6850
+
6851
+ attr_accessor :client_certificate
6852
+
6853
+ attr_accessor :client_key
6854
+
6855
+ attr_accessor :healthcheck_namespace
6856
+
6857
+ def initialize(
6858
+ id: nil,
6859
+ name: nil,
6860
+ healthy: nil,
6861
+ tags: nil,
6862
+ hostname: nil,
6863
+ port: nil,
6864
+ certificate_authority: nil,
6865
+ client_certificate: nil,
6866
+ client_key: nil,
6867
+ healthcheck_namespace: nil
6868
+ )
6869
+ if id != nil
6870
+ @id = id
6871
+ end
6872
+ if name != nil
6873
+ @name = name
6874
+ end
6875
+ if healthy != nil
6876
+ @healthy = healthy
6877
+ end
6878
+ if tags != nil
6879
+ @tags = tags
6880
+ end
6881
+ if hostname != nil
6882
+ @hostname = hostname
6883
+ end
6884
+ if port != nil
6885
+ @port = port
6886
+ end
6887
+ if certificate_authority != nil
6888
+ @certificate_authority = certificate_authority
6889
+ end
6890
+ if client_certificate != nil
6891
+ @client_certificate = client_certificate
6892
+ end
6893
+ if client_key != nil
6894
+ @client_key = client_key
6895
+ end
6896
+ if healthcheck_namespace != nil
6897
+ @healthcheck_namespace = healthcheck_namespace
6898
+ end
6899
+ end
6900
+
6901
+ def to_json(options = {})
6902
+ hash = {}
6903
+ self.instance_variables.each do |var|
6904
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6905
+ end
6906
+ hash.to_json
6907
+ end
6908
+ end
6909
+
6910
+ class KubernetesBasicAuth
6911
+ # Unique identifier of the Resource.
6912
+ attr_accessor :id
6913
+ # Unique human-readable name of the Resource.
6914
+ attr_accessor :name
6915
+ # True if the datasource is reachable and the credentials are valid.
6916
+ attr_accessor :healthy
6917
+ # Tags is a map of key, value pairs.
6918
+ attr_accessor :tags
6919
+
6920
+ attr_accessor :hostname
6921
+
6922
+ attr_accessor :port
6923
+
6924
+ attr_accessor :username
6925
+
6926
+ attr_accessor :password
6927
+
6928
+ attr_accessor :healthcheck_namespace
6929
+
6930
+ def initialize(
6931
+ id: nil,
6932
+ name: nil,
6933
+ healthy: nil,
6934
+ tags: nil,
6935
+ hostname: nil,
6936
+ port: nil,
6937
+ username: nil,
6938
+ password: nil,
6939
+ healthcheck_namespace: nil
6940
+ )
6941
+ if id != nil
6942
+ @id = id
6943
+ end
6944
+ if name != nil
6945
+ @name = name
6946
+ end
6947
+ if healthy != nil
6948
+ @healthy = healthy
6949
+ end
6950
+ if tags != nil
6951
+ @tags = tags
6952
+ end
6953
+ if hostname != nil
6954
+ @hostname = hostname
6955
+ end
6956
+ if port != nil
6957
+ @port = port
6958
+ end
6959
+ if username != nil
6960
+ @username = username
6961
+ end
6962
+ if password != nil
6963
+ @password = password
6964
+ end
6965
+ if healthcheck_namespace != nil
6966
+ @healthcheck_namespace = healthcheck_namespace
6967
+ end
6968
+ end
6969
+
6970
+ def to_json(options = {})
6971
+ hash = {}
6972
+ self.instance_variables.each do |var|
6973
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6974
+ end
6975
+ hash.to_json
6976
+ end
6977
+ end
6978
+
6979
+ class KubernetesServiceAccount
6980
+ # Unique identifier of the Resource.
6981
+ attr_accessor :id
6982
+ # Unique human-readable name of the Resource.
6983
+ attr_accessor :name
6984
+ # True if the datasource is reachable and the credentials are valid.
6985
+ attr_accessor :healthy
6986
+ # Tags is a map of key, value pairs.
6987
+ attr_accessor :tags
6988
+
6989
+ attr_accessor :hostname
6990
+
6991
+ attr_accessor :port
6992
+
6993
+ attr_accessor :token
6994
+
6995
+ attr_accessor :healthcheck_namespace
6996
+
6997
+ def initialize(
6998
+ id: nil,
6999
+ name: nil,
7000
+ healthy: nil,
7001
+ tags: nil,
7002
+ hostname: nil,
7003
+ port: nil,
7004
+ token: nil,
7005
+ healthcheck_namespace: nil
7006
+ )
7007
+ if id != nil
7008
+ @id = id
7009
+ end
7010
+ if name != nil
7011
+ @name = name
7012
+ end
7013
+ if healthy != nil
7014
+ @healthy = healthy
7015
+ end
7016
+ if tags != nil
7017
+ @tags = tags
7018
+ end
7019
+ if hostname != nil
7020
+ @hostname = hostname
7021
+ end
7022
+ if port != nil
7023
+ @port = port
7024
+ end
7025
+ if token != nil
7026
+ @token = token
7027
+ end
7028
+ if healthcheck_namespace != nil
7029
+ @healthcheck_namespace = healthcheck_namespace
7030
+ end
7031
+ end
7032
+
7033
+ def to_json(options = {})
7034
+ hash = {}
7035
+ self.instance_variables.each do |var|
7036
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
7037
+ end
7038
+ hash.to_json
7039
+ end
7040
+ end
7041
+
7042
+ class AmazonEKS
7043
+ # Unique identifier of the Resource.
7044
+ attr_accessor :id
7045
+ # Unique human-readable name of the Resource.
7046
+ attr_accessor :name
7047
+ # True if the datasource is reachable and the credentials are valid.
7048
+ attr_accessor :healthy
7049
+ # Tags is a map of key, value pairs.
7050
+ attr_accessor :tags
7051
+
7052
+ attr_accessor :endpoint
7053
+
7054
+ attr_accessor :access_key
7055
+
7056
+ attr_accessor :secret_access_key
7057
+
7058
+ attr_accessor :certificate_authority
7059
+
7060
+ attr_accessor :region
7061
+
7062
+ attr_accessor :cluster_name
7063
+
7064
+ attr_accessor :role_arn
7065
+
7066
+ attr_accessor :healthcheck_namespace
7067
+
7068
+ def initialize(
7069
+ id: nil,
7070
+ name: nil,
7071
+ healthy: nil,
7072
+ tags: nil,
7073
+ endpoint: nil,
7074
+ access_key: nil,
7075
+ secret_access_key: nil,
7076
+ certificate_authority: nil,
7077
+ region: nil,
7078
+ cluster_name: nil,
7079
+ role_arn: nil,
7080
+ healthcheck_namespace: nil
7081
+ )
7082
+ if id != nil
7083
+ @id = id
7084
+ end
7085
+ if name != nil
7086
+ @name = name
7087
+ end
7088
+ if healthy != nil
7089
+ @healthy = healthy
7090
+ end
7091
+ if tags != nil
7092
+ @tags = tags
7093
+ end
7094
+ if endpoint != nil
7095
+ @endpoint = endpoint
7096
+ end
7097
+ if access_key != nil
7098
+ @access_key = access_key
7099
+ end
7100
+ if secret_access_key != nil
7101
+ @secret_access_key = secret_access_key
7102
+ end
7103
+ if certificate_authority != nil
7104
+ @certificate_authority = certificate_authority
7105
+ end
7106
+ if region != nil
7107
+ @region = region
7108
+ end
7109
+ if cluster_name != nil
7110
+ @cluster_name = cluster_name
7111
+ end
7112
+ if role_arn != nil
7113
+ @role_arn = role_arn
7114
+ end
7115
+ if healthcheck_namespace != nil
7116
+ @healthcheck_namespace = healthcheck_namespace
7117
+ end
7118
+ end
7119
+
7120
+ def to_json(options = {})
7121
+ hash = {}
7122
+ self.instance_variables.each do |var|
7123
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
7124
+ end
7125
+ hash.to_json
7126
+ end
7127
+ end
7128
+
7129
+ class GoogleGKE
7130
+ # Unique identifier of the Resource.
7131
+ attr_accessor :id
7132
+ # Unique human-readable name of the Resource.
7133
+ attr_accessor :name
7134
+ # True if the datasource is reachable and the credentials are valid.
7135
+ attr_accessor :healthy
7136
+ # Tags is a map of key, value pairs.
7137
+ attr_accessor :tags
7138
+
7139
+ attr_accessor :endpoint
7140
+
7141
+ attr_accessor :certificate_authority
7142
+
7143
+ attr_accessor :service_account_key
7144
+
7145
+ attr_accessor :healthcheck_namespace
7146
+
7147
+ def initialize(
7148
+ id: nil,
7149
+ name: nil,
7150
+ healthy: nil,
7151
+ tags: nil,
7152
+ endpoint: nil,
7153
+ certificate_authority: nil,
7154
+ service_account_key: nil,
7155
+ healthcheck_namespace: nil
7156
+ )
7157
+ if id != nil
7158
+ @id = id
7159
+ end
7160
+ if name != nil
7161
+ @name = name
7162
+ end
7163
+ if healthy != nil
7164
+ @healthy = healthy
7165
+ end
7166
+ if tags != nil
7167
+ @tags = tags
7168
+ end
7169
+ if endpoint != nil
7170
+ @endpoint = endpoint
7171
+ end
7172
+ if certificate_authority != nil
7173
+ @certificate_authority = certificate_authority
7174
+ end
7175
+ if service_account_key != nil
7176
+ @service_account_key = service_account_key
7177
+ end
7178
+ if healthcheck_namespace != nil
7179
+ @healthcheck_namespace = healthcheck_namespace
7180
+ end
7181
+ end
7182
+
7183
+ def to_json(options = {})
7184
+ hash = {}
7185
+ self.instance_variables.each do |var|
7186
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
7187
+ end
7188
+ hash.to_json
7189
+ end
7190
+ end
7191
+
7192
+ class AKS
7193
+ # Unique identifier of the Resource.
7194
+ attr_accessor :id
7195
+ # Unique human-readable name of the Resource.
7196
+ attr_accessor :name
7197
+ # True if the datasource is reachable and the credentials are valid.
7198
+ attr_accessor :healthy
7199
+ # Tags is a map of key, value pairs.
7200
+ attr_accessor :tags
7201
+
7202
+ attr_accessor :hostname
7203
+
7204
+ attr_accessor :port
7205
+
7206
+ attr_accessor :certificate_authority
7207
+
7208
+ attr_accessor :client_certificate
7209
+
7210
+ attr_accessor :client_key
7211
+
7212
+ attr_accessor :healthcheck_namespace
7213
+
7214
+ def initialize(
7215
+ id: nil,
7216
+ name: nil,
7217
+ healthy: nil,
7218
+ tags: nil,
7219
+ hostname: nil,
7220
+ port: nil,
7221
+ certificate_authority: nil,
7222
+ client_certificate: nil,
7223
+ client_key: nil,
7224
+ healthcheck_namespace: nil
7225
+ )
7226
+ if id != nil
7227
+ @id = id
7228
+ end
7229
+ if name != nil
7230
+ @name = name
7231
+ end
7232
+ if healthy != nil
7233
+ @healthy = healthy
7234
+ end
7235
+ if tags != nil
7236
+ @tags = tags
7237
+ end
7238
+ if hostname != nil
7239
+ @hostname = hostname
7240
+ end
7241
+ if port != nil
7242
+ @port = port
7243
+ end
7244
+ if certificate_authority != nil
7245
+ @certificate_authority = certificate_authority
7246
+ end
7247
+ if client_certificate != nil
7248
+ @client_certificate = client_certificate
7249
+ end
7250
+ if client_key != nil
7251
+ @client_key = client_key
7252
+ end
7253
+ if healthcheck_namespace != nil
7254
+ @healthcheck_namespace = healthcheck_namespace
7255
+ end
7256
+ end
7257
+
7258
+ def to_json(options = {})
7259
+ hash = {}
7260
+ self.instance_variables.each do |var|
7261
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
7262
+ end
7263
+ hash.to_json
7264
+ end
7265
+ end
7266
+
7267
+ class AKSBasicAuth
7268
+ # Unique identifier of the Resource.
7269
+ attr_accessor :id
7270
+ # Unique human-readable name of the Resource.
7271
+ attr_accessor :name
7272
+ # True if the datasource is reachable and the credentials are valid.
7273
+ attr_accessor :healthy
7274
+ # Tags is a map of key, value pairs.
7275
+ attr_accessor :tags
7276
+
7277
+ attr_accessor :hostname
7278
+
7279
+ attr_accessor :port
7280
+
7281
+ attr_accessor :username
7282
+
7283
+ attr_accessor :password
7284
+
7285
+ attr_accessor :healthcheck_namespace
7286
+
7287
+ def initialize(
7288
+ id: nil,
7289
+ name: nil,
7290
+ healthy: nil,
7291
+ tags: nil,
7292
+ hostname: nil,
7293
+ port: nil,
7294
+ username: nil,
7295
+ password: nil,
7296
+ healthcheck_namespace: nil
7297
+ )
7298
+ if id != nil
7299
+ @id = id
7300
+ end
7301
+ if name != nil
7302
+ @name = name
7303
+ end
7304
+ if healthy != nil
7305
+ @healthy = healthy
7306
+ end
7307
+ if tags != nil
7308
+ @tags = tags
7309
+ end
7310
+ if hostname != nil
7311
+ @hostname = hostname
7312
+ end
7313
+ if port != nil
7314
+ @port = port
7315
+ end
7316
+ if username != nil
7317
+ @username = username
7318
+ end
7319
+ if password != nil
7320
+ @password = password
7321
+ end
7322
+ if healthcheck_namespace != nil
7323
+ @healthcheck_namespace = healthcheck_namespace
7324
+ end
7325
+ end
7326
+
7327
+ def to_json(options = {})
7328
+ hash = {}
7329
+ self.instance_variables.each do |var|
7330
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
7331
+ end
7332
+ hash.to_json
7333
+ end
7334
+ end
7335
+
7336
+ class AKSServiceAccount
7337
+ # Unique identifier of the Resource.
7338
+ attr_accessor :id
7339
+ # Unique human-readable name of the Resource.
7340
+ attr_accessor :name
7341
+ # True if the datasource is reachable and the credentials are valid.
7342
+ attr_accessor :healthy
7343
+ # Tags is a map of key, value pairs.
7344
+ attr_accessor :tags
7345
+
7346
+ attr_accessor :hostname
7347
+
7348
+ attr_accessor :port
7349
+
7350
+ attr_accessor :token
7351
+
7352
+ attr_accessor :healthcheck_namespace
7353
+
7354
+ def initialize(
7355
+ id: nil,
7356
+ name: nil,
7357
+ healthy: nil,
7358
+ tags: nil,
7359
+ hostname: nil,
7360
+ port: nil,
7361
+ token: nil,
7362
+ healthcheck_namespace: nil
7363
+ )
7364
+ if id != nil
7365
+ @id = id
7366
+ end
7367
+ if name != nil
7368
+ @name = name
7369
+ end
7370
+ if healthy != nil
7371
+ @healthy = healthy
7372
+ end
7373
+ if tags != nil
7374
+ @tags = tags
7375
+ end
7376
+ if hostname != nil
7377
+ @hostname = hostname
7378
+ end
7379
+ if port != nil
7380
+ @port = port
7381
+ end
7382
+ if token != nil
7383
+ @token = token
7384
+ end
7385
+ if healthcheck_namespace != nil
7386
+ @healthcheck_namespace = healthcheck_namespace
7387
+ end
7388
+ end
7389
+
7390
+ def to_json(options = {})
7391
+ hash = {}
7392
+ self.instance_variables.each do |var|
7393
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
7394
+ end
7395
+ hash.to_json
7396
+ end
7397
+ end
7398
+
7399
+ class Memcached
7400
+ # Unique identifier of the Resource.
7401
+ attr_accessor :id
7402
+ # Unique human-readable name of the Resource.
7403
+ attr_accessor :name
7404
+ # True if the datasource is reachable and the credentials are valid.
7405
+ attr_accessor :healthy
7406
+ # Tags is a map of key, value pairs.
7407
+ attr_accessor :tags
7408
+
7409
+ attr_accessor :hostname
7410
+
7411
+ attr_accessor :port_override
7412
+
7413
+ attr_accessor :port
7414
+
7415
+ def initialize(
7416
+ id: nil,
7417
+ name: nil,
7418
+ healthy: nil,
7419
+ tags: nil,
7420
+ hostname: nil,
7421
+ port_override: nil,
7422
+ port: nil
7423
+ )
7424
+ if id != nil
7425
+ @id = id
7426
+ end
7427
+ if name != nil
7428
+ @name = name
7429
+ end
7430
+ if healthy != nil
7431
+ @healthy = healthy
7432
+ end
7433
+ if tags != nil
7434
+ @tags = tags
7435
+ end
7436
+ if hostname != nil
7437
+ @hostname = hostname
7438
+ end
7439
+ if port_override != nil
7440
+ @port_override = port_override
7441
+ end
7442
+ if port != nil
7443
+ @port = port
7444
+ end
7445
+ end
7446
+
7447
+ def to_json(options = {})
7448
+ hash = {}
7449
+ self.instance_variables.each do |var|
7450
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
7451
+ end
7452
+ hash.to_json
7453
+ end
7454
+ end
7455
+
7456
+ class MongoLegacyHost
7457
+ # Unique identifier of the Resource.
7458
+ attr_accessor :id
7459
+ # Unique human-readable name of the Resource.
7460
+ attr_accessor :name
7461
+ # True if the datasource is reachable and the credentials are valid.
7462
+ attr_accessor :healthy
7463
+ # Tags is a map of key, value pairs.
7464
+ attr_accessor :tags
7465
+
7466
+ attr_accessor :hostname
7467
+
7468
+ attr_accessor :auth_database
7469
+
7470
+ attr_accessor :port_override
7471
+
7472
+ attr_accessor :username
7473
+
7474
+ attr_accessor :password
7475
+
7476
+ attr_accessor :port
7477
+
7478
+ attr_accessor :replica_set
7479
+
7480
+ attr_accessor :tls_required
7481
+
7482
+ def initialize(
7483
+ id: nil,
7484
+ name: nil,
7485
+ healthy: nil,
7486
+ tags: nil,
7487
+ hostname: nil,
7488
+ auth_database: nil,
7489
+ port_override: nil,
7490
+ username: nil,
7491
+ password: nil,
7492
+ port: nil,
7493
+ replica_set: nil,
7494
+ tls_required: nil
7495
+ )
7496
+ if id != nil
7497
+ @id = id
7498
+ end
7499
+ if name != nil
7500
+ @name = name
7501
+ end
7502
+ if healthy != nil
7503
+ @healthy = healthy
7504
+ end
7505
+ if tags != nil
7506
+ @tags = tags
7507
+ end
7508
+ if hostname != nil
7509
+ @hostname = hostname
7510
+ end
7511
+ if auth_database != nil
7512
+ @auth_database = auth_database
7513
+ end
7514
+ if port_override != nil
7515
+ @port_override = port_override
7516
+ end
7517
+ if username != nil
7518
+ @username = username
7519
+ end
7520
+ if password != nil
7521
+ @password = password
7522
+ end
7523
+ if port != nil
7524
+ @port = port
7525
+ end
7526
+ if replica_set != nil
7527
+ @replica_set = replica_set
7528
+ end
7529
+ if tls_required != nil
7530
+ @tls_required = tls_required
7531
+ end
7532
+ end
7533
+
7534
+ def to_json(options = {})
7535
+ hash = {}
7536
+ self.instance_variables.each do |var|
7537
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
7538
+ end
7539
+ hash.to_json
7540
+ end
7541
+ end
7542
+
7543
+ class MongoLegacyReplicaset
7544
+ # Unique identifier of the Resource.
7545
+ attr_accessor :id
7546
+ # Unique human-readable name of the Resource.
7547
+ attr_accessor :name
7548
+ # True if the datasource is reachable and the credentials are valid.
7549
+ attr_accessor :healthy
7550
+ # Tags is a map of key, value pairs.
7551
+ attr_accessor :tags
7552
+
7553
+ attr_accessor :hostname
7554
+
7555
+ attr_accessor :auth_database
7556
+
7557
+ attr_accessor :port_override
7558
+
7559
+ attr_accessor :username
7560
+
7561
+ attr_accessor :password
7562
+
7563
+ attr_accessor :port
7564
+
7565
+ attr_accessor :replica_set
7566
+
7567
+ attr_accessor :connect_to_replica
7568
+
7569
+ attr_accessor :tls_required
7570
+
7571
+ def initialize(
7572
+ id: nil,
7573
+ name: nil,
7574
+ healthy: nil,
7575
+ tags: nil,
7576
+ hostname: nil,
7577
+ auth_database: nil,
7578
+ port_override: nil,
7579
+ username: nil,
7580
+ password: nil,
7581
+ port: nil,
7582
+ replica_set: nil,
7583
+ connect_to_replica: nil,
7584
+ tls_required: nil
7585
+ )
7586
+ if id != nil
7587
+ @id = id
7588
+ end
7589
+ if name != nil
7590
+ @name = name
7591
+ end
7592
+ if healthy != nil
7593
+ @healthy = healthy
7594
+ end
7595
+ if tags != nil
7596
+ @tags = tags
7597
+ end
7598
+ if hostname != nil
7599
+ @hostname = hostname
7600
+ end
7601
+ if auth_database != nil
7602
+ @auth_database = auth_database
7603
+ end
7604
+ if port_override != nil
7605
+ @port_override = port_override
7606
+ end
7607
+ if username != nil
7608
+ @username = username
7609
+ end
7610
+ if password != nil
7611
+ @password = password
7612
+ end
7613
+ if port != nil
7614
+ @port = port
7615
+ end
7616
+ if replica_set != nil
7617
+ @replica_set = replica_set
7618
+ end
7619
+ if connect_to_replica != nil
7620
+ @connect_to_replica = connect_to_replica
7621
+ end
7622
+ if tls_required != nil
7623
+ @tls_required = tls_required
7624
+ end
7625
+ end
7626
+
7627
+ def to_json(options = {})
7628
+ hash = {}
7629
+ self.instance_variables.each do |var|
7630
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
7631
+ end
7632
+ hash.to_json
7633
+ end
7634
+ end
7635
+
7636
+ class MongoHost
7637
+ # Unique identifier of the Resource.
7638
+ attr_accessor :id
7639
+ # Unique human-readable name of the Resource.
7640
+ attr_accessor :name
7641
+ # True if the datasource is reachable and the credentials are valid.
7642
+ attr_accessor :healthy
7643
+ # Tags is a map of key, value pairs.
7644
+ attr_accessor :tags
7645
+
7646
+ attr_accessor :hostname
7647
+
7648
+ attr_accessor :auth_database
7649
+
7650
+ attr_accessor :port_override
7651
+
7652
+ attr_accessor :username
7653
+
7654
+ attr_accessor :password
7655
+
7656
+ attr_accessor :port
7657
+
7658
+ attr_accessor :tls_required
7659
+
7660
+ def initialize(
7661
+ id: nil,
7662
+ name: nil,
7663
+ healthy: nil,
7664
+ tags: nil,
7665
+ hostname: nil,
7666
+ auth_database: nil,
7667
+ port_override: nil,
7668
+ username: nil,
7669
+ password: nil,
7670
+ port: nil,
7671
+ tls_required: nil
7672
+ )
7673
+ if id != nil
7674
+ @id = id
7675
+ end
7676
+ if name != nil
7677
+ @name = name
7678
+ end
7679
+ if healthy != nil
7680
+ @healthy = healthy
7681
+ end
7682
+ if tags != nil
7683
+ @tags = tags
7684
+ end
7685
+ if hostname != nil
7686
+ @hostname = hostname
7687
+ end
7688
+ if auth_database != nil
7689
+ @auth_database = auth_database
7690
+ end
7691
+ if port_override != nil
7692
+ @port_override = port_override
7693
+ end
7694
+ if username != nil
7695
+ @username = username
7696
+ end
7697
+ if password != nil
7698
+ @password = password
7699
+ end
7700
+ if port != nil
7701
+ @port = port
7702
+ end
7703
+ if tls_required != nil
7704
+ @tls_required = tls_required
7705
+ end
7706
+ end
7707
+
7708
+ def to_json(options = {})
7709
+ hash = {}
7710
+ self.instance_variables.each do |var|
7711
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
7712
+ end
7713
+ hash.to_json
7714
+ end
7715
+ end
7716
+
7717
+ class MongoReplicaSet
7718
+ # Unique identifier of the Resource.
7719
+ attr_accessor :id
7720
+ # Unique human-readable name of the Resource.
7721
+ attr_accessor :name
7722
+ # True if the datasource is reachable and the credentials are valid.
7723
+ attr_accessor :healthy
7724
+ # Tags is a map of key, value pairs.
7725
+ attr_accessor :tags
7726
+
7727
+ attr_accessor :hostname
7728
+
7729
+ attr_accessor :auth_database
7730
+
7731
+ attr_accessor :port_override
7732
+
7733
+ attr_accessor :username
7734
+
7735
+ attr_accessor :password
7736
+
7737
+ attr_accessor :port
7738
+
7739
+ attr_accessor :replica_set
7740
+
7741
+ attr_accessor :connect_to_replica
7742
+
7743
+ attr_accessor :tls_required
7744
+
7745
+ def initialize(
7746
+ id: nil,
7747
+ name: nil,
7748
+ healthy: nil,
7749
+ tags: nil,
7750
+ hostname: nil,
7751
+ auth_database: nil,
7752
+ port_override: nil,
7753
+ username: nil,
7754
+ password: nil,
7755
+ port: nil,
7756
+ replica_set: nil,
7757
+ connect_to_replica: nil,
7758
+ tls_required: nil
7759
+ )
7760
+ if id != nil
7761
+ @id = id
7762
+ end
7763
+ if name != nil
7764
+ @name = name
7765
+ end
7766
+ if healthy != nil
7767
+ @healthy = healthy
7768
+ end
7769
+ if tags != nil
7770
+ @tags = tags
7771
+ end
7772
+ if hostname != nil
7773
+ @hostname = hostname
7774
+ end
7775
+ if auth_database != nil
7776
+ @auth_database = auth_database
7777
+ end
7778
+ if port_override != nil
7779
+ @port_override = port_override
7780
+ end
7781
+ if username != nil
7782
+ @username = username
7783
+ end
7784
+ if password != nil
7785
+ @password = password
7786
+ end
7787
+ if port != nil
7788
+ @port = port
7789
+ end
7790
+ if replica_set != nil
7791
+ @replica_set = replica_set
7792
+ end
7793
+ if connect_to_replica != nil
7794
+ @connect_to_replica = connect_to_replica
7795
+ end
7796
+ if tls_required != nil
7797
+ @tls_required = tls_required
7798
+ end
7799
+ end
7800
+
7801
+ def to_json(options = {})
7802
+ hash = {}
7803
+ self.instance_variables.each do |var|
7804
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
7805
+ end
7806
+ hash.to_json
7807
+ end
7808
+ end
7809
+
7810
+ class Mysql
7811
+ # Unique identifier of the Resource.
7812
+ attr_accessor :id
7813
+ # Unique human-readable name of the Resource.
7814
+ attr_accessor :name
7815
+ # True if the datasource is reachable and the credentials are valid.
7816
+ attr_accessor :healthy
7817
+ # Tags is a map of key, value pairs.
7818
+ attr_accessor :tags
7819
+
7820
+ attr_accessor :hostname
7821
+
7822
+ attr_accessor :username
7823
+
7824
+ attr_accessor :password
7825
+
7826
+ attr_accessor :database
7827
+
7828
+ attr_accessor :port_override
7829
+
7830
+ attr_accessor :port
7831
+
7832
+ def initialize(
7833
+ id: nil,
7834
+ name: nil,
7835
+ healthy: nil,
7836
+ tags: nil,
7837
+ hostname: nil,
7838
+ username: nil,
7839
+ password: nil,
7840
+ database: nil,
7841
+ port_override: nil,
7842
+ port: nil
7843
+ )
7844
+ if id != nil
7845
+ @id = id
7846
+ end
7847
+ if name != nil
7848
+ @name = name
7849
+ end
7850
+ if healthy != nil
7851
+ @healthy = healthy
7852
+ end
7853
+ if tags != nil
7854
+ @tags = tags
7855
+ end
7856
+ if hostname != nil
7857
+ @hostname = hostname
7858
+ end
7859
+ if username != nil
7860
+ @username = username
7861
+ end
7862
+ if password != nil
7863
+ @password = password
7864
+ end
7865
+ if database != nil
7866
+ @database = database
7867
+ end
7868
+ if port_override != nil
7869
+ @port_override = port_override
7870
+ end
7871
+ if port != nil
7872
+ @port = port
7873
+ end
7874
+ end
7875
+
7876
+ def to_json(options = {})
7877
+ hash = {}
7878
+ self.instance_variables.each do |var|
7879
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
7880
+ end
7881
+ hash.to_json
7882
+ end
7883
+ end
7884
+
7885
+ class AuroraMysql
7886
+ # Unique identifier of the Resource.
7887
+ attr_accessor :id
7888
+ # Unique human-readable name of the Resource.
7889
+ attr_accessor :name
7890
+ # True if the datasource is reachable and the credentials are valid.
7891
+ attr_accessor :healthy
7892
+ # Tags is a map of key, value pairs.
7893
+ attr_accessor :tags
7894
+
7895
+ attr_accessor :hostname
7896
+
7897
+ attr_accessor :username
7898
+
7899
+ attr_accessor :password
7900
+
7901
+ attr_accessor :database
7902
+
7903
+ attr_accessor :port_override
7904
+
7905
+ attr_accessor :port
7906
+
7907
+ def initialize(
7908
+ id: nil,
7909
+ name: nil,
7910
+ healthy: nil,
7911
+ tags: nil,
7912
+ hostname: nil,
7913
+ username: nil,
7914
+ password: nil,
7915
+ database: nil,
7916
+ port_override: nil,
7917
+ port: nil
7918
+ )
7919
+ if id != nil
7920
+ @id = id
7921
+ end
7922
+ if name != nil
7923
+ @name = name
7924
+ end
7925
+ if healthy != nil
7926
+ @healthy = healthy
7927
+ end
7928
+ if tags != nil
7929
+ @tags = tags
7930
+ end
7931
+ if hostname != nil
7932
+ @hostname = hostname
7933
+ end
7934
+ if username != nil
7935
+ @username = username
7936
+ end
7937
+ if password != nil
7938
+ @password = password
7939
+ end
7940
+ if database != nil
7941
+ @database = database
7942
+ end
7943
+ if port_override != nil
7944
+ @port_override = port_override
7945
+ end
7946
+ if port != nil
7947
+ @port = port
7948
+ end
7949
+ end
7950
+
7951
+ def to_json(options = {})
7952
+ hash = {}
7953
+ self.instance_variables.each do |var|
7954
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
7955
+ end
7956
+ hash.to_json
7957
+ end
7958
+ end
7959
+
7960
+ class Clustrix
7961
+ # Unique identifier of the Resource.
7962
+ attr_accessor :id
7963
+ # Unique human-readable name of the Resource.
7964
+ attr_accessor :name
7965
+ # True if the datasource is reachable and the credentials are valid.
7966
+ attr_accessor :healthy
7967
+ # Tags is a map of key, value pairs.
7968
+ attr_accessor :tags
7969
+
7970
+ attr_accessor :hostname
7971
+
7972
+ attr_accessor :username
7973
+
7974
+ attr_accessor :password
7975
+
7976
+ attr_accessor :database
7977
+
7978
+ attr_accessor :port_override
7979
+
7980
+ attr_accessor :port
7981
+
7982
+ def initialize(
7983
+ id: nil,
7984
+ name: nil,
7985
+ healthy: nil,
7986
+ tags: nil,
7987
+ hostname: nil,
7988
+ username: nil,
7989
+ password: nil,
7990
+ database: nil,
7991
+ port_override: nil,
7992
+ port: nil
7993
+ )
7994
+ if id != nil
7995
+ @id = id
7996
+ end
7997
+ if name != nil
7998
+ @name = name
7999
+ end
8000
+ if healthy != nil
8001
+ @healthy = healthy
8002
+ end
8003
+ if tags != nil
8004
+ @tags = tags
8005
+ end
8006
+ if hostname != nil
8007
+ @hostname = hostname
8008
+ end
8009
+ if username != nil
8010
+ @username = username
8011
+ end
8012
+ if password != nil
8013
+ @password = password
8014
+ end
8015
+ if database != nil
8016
+ @database = database
8017
+ end
8018
+ if port_override != nil
8019
+ @port_override = port_override
8020
+ end
8021
+ if port != nil
8022
+ @port = port
8023
+ end
8024
+ end
8025
+
8026
+ def to_json(options = {})
8027
+ hash = {}
8028
+ self.instance_variables.each do |var|
8029
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8030
+ end
8031
+ hash.to_json
8032
+ end
8033
+ end
8034
+
8035
+ class Maria
8036
+ # Unique identifier of the Resource.
8037
+ attr_accessor :id
8038
+ # Unique human-readable name of the Resource.
8039
+ attr_accessor :name
8040
+ # True if the datasource is reachable and the credentials are valid.
8041
+ attr_accessor :healthy
8042
+ # Tags is a map of key, value pairs.
8043
+ attr_accessor :tags
8044
+
8045
+ attr_accessor :hostname
8046
+
8047
+ attr_accessor :username
8048
+
8049
+ attr_accessor :password
8050
+
8051
+ attr_accessor :database
8052
+
8053
+ attr_accessor :port_override
8054
+
8055
+ attr_accessor :port
8056
+
8057
+ def initialize(
8058
+ id: nil,
8059
+ name: nil,
8060
+ healthy: nil,
8061
+ tags: nil,
8062
+ hostname: nil,
8063
+ username: nil,
8064
+ password: nil,
8065
+ database: nil,
8066
+ port_override: nil,
8067
+ port: nil
8068
+ )
8069
+ if id != nil
8070
+ @id = id
8071
+ end
8072
+ if name != nil
8073
+ @name = name
8074
+ end
8075
+ if healthy != nil
8076
+ @healthy = healthy
8077
+ end
8078
+ if tags != nil
8079
+ @tags = tags
8080
+ end
8081
+ if hostname != nil
8082
+ @hostname = hostname
8083
+ end
8084
+ if username != nil
8085
+ @username = username
8086
+ end
8087
+ if password != nil
8088
+ @password = password
8089
+ end
8090
+ if database != nil
8091
+ @database = database
8092
+ end
8093
+ if port_override != nil
8094
+ @port_override = port_override
8095
+ end
8096
+ if port != nil
8097
+ @port = port
8098
+ end
8099
+ end
8100
+
8101
+ def to_json(options = {})
8102
+ hash = {}
8103
+ self.instance_variables.each do |var|
8104
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8105
+ end
8106
+ hash.to_json
8107
+ end
8108
+ end
8109
+
8110
+ class Memsql
8111
+ # Unique identifier of the Resource.
8112
+ attr_accessor :id
8113
+ # Unique human-readable name of the Resource.
8114
+ attr_accessor :name
8115
+ # True if the datasource is reachable and the credentials are valid.
8116
+ attr_accessor :healthy
8117
+ # Tags is a map of key, value pairs.
8118
+ attr_accessor :tags
8119
+
8120
+ attr_accessor :hostname
8121
+
8122
+ attr_accessor :username
8123
+
8124
+ attr_accessor :password
8125
+
8126
+ attr_accessor :database
8127
+
8128
+ attr_accessor :port_override
8129
+
8130
+ attr_accessor :port
8131
+
8132
+ def initialize(
8133
+ id: nil,
8134
+ name: nil,
8135
+ healthy: nil,
8136
+ tags: nil,
8137
+ hostname: nil,
8138
+ username: nil,
8139
+ password: nil,
8140
+ database: nil,
8141
+ port_override: nil,
8142
+ port: nil
8143
+ )
8144
+ if id != nil
8145
+ @id = id
8146
+ end
8147
+ if name != nil
8148
+ @name = name
8149
+ end
8150
+ if healthy != nil
8151
+ @healthy = healthy
8152
+ end
8153
+ if tags != nil
8154
+ @tags = tags
8155
+ end
8156
+ if hostname != nil
8157
+ @hostname = hostname
8158
+ end
8159
+ if username != nil
8160
+ @username = username
8161
+ end
8162
+ if password != nil
8163
+ @password = password
8164
+ end
8165
+ if database != nil
8166
+ @database = database
8167
+ end
8168
+ if port_override != nil
8169
+ @port_override = port_override
8170
+ end
8171
+ if port != nil
8172
+ @port = port
8173
+ end
8174
+ end
8175
+
8176
+ def to_json(options = {})
8177
+ hash = {}
8178
+ self.instance_variables.each do |var|
8179
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8180
+ end
8181
+ hash.to_json
8182
+ end
8183
+ end
8184
+
8185
+ class Oracle
8186
+ # Unique identifier of the Resource.
8187
+ attr_accessor :id
8188
+ # Unique human-readable name of the Resource.
8189
+ attr_accessor :name
8190
+ # True if the datasource is reachable and the credentials are valid.
8191
+ attr_accessor :healthy
8192
+ # Tags is a map of key, value pairs.
8193
+ attr_accessor :tags
8194
+
8195
+ attr_accessor :hostname
8196
+
8197
+ attr_accessor :username
8198
+
8199
+ attr_accessor :password
8200
+
8201
+ attr_accessor :database
8202
+
8203
+ attr_accessor :port
8204
+
8205
+ attr_accessor :port_override
8206
+
8207
+ attr_accessor :tls_required
8208
+
8209
+ def initialize(
8210
+ id: nil,
8211
+ name: nil,
8212
+ healthy: nil,
8213
+ tags: nil,
8214
+ hostname: nil,
8215
+ username: nil,
8216
+ password: nil,
8217
+ database: nil,
8218
+ port: nil,
8219
+ port_override: nil,
8220
+ tls_required: nil
8221
+ )
8222
+ if id != nil
8223
+ @id = id
8224
+ end
8225
+ if name != nil
8226
+ @name = name
8227
+ end
8228
+ if healthy != nil
8229
+ @healthy = healthy
8230
+ end
8231
+ if tags != nil
8232
+ @tags = tags
8233
+ end
8234
+ if hostname != nil
8235
+ @hostname = hostname
8236
+ end
8237
+ if username != nil
8238
+ @username = username
8239
+ end
8240
+ if password != nil
8241
+ @password = password
8242
+ end
8243
+ if database != nil
8244
+ @database = database
8245
+ end
8246
+ if port != nil
8247
+ @port = port
8248
+ end
8249
+ if port_override != nil
8250
+ @port_override = port_override
8251
+ end
8252
+ if tls_required != nil
8253
+ @tls_required = tls_required
8254
+ end
8255
+ end
8256
+
8257
+ def to_json(options = {})
8258
+ hash = {}
8259
+ self.instance_variables.each do |var|
8260
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8261
+ end
8262
+ hash.to_json
8263
+ end
8264
+ end
8265
+
8266
+ class Postgres
8267
+ # Unique identifier of the Resource.
8268
+ attr_accessor :id
8269
+ # Unique human-readable name of the Resource.
8270
+ attr_accessor :name
8271
+ # True if the datasource is reachable and the credentials are valid.
8272
+ attr_accessor :healthy
8273
+ # Tags is a map of key, value pairs.
8274
+ attr_accessor :tags
8275
+
8276
+ attr_accessor :hostname
8277
+
8278
+ attr_accessor :username
8279
+
8280
+ attr_accessor :password
8281
+
8282
+ attr_accessor :database
8283
+
8284
+ attr_accessor :port_override
8285
+
8286
+ attr_accessor :port
8287
+
8288
+ attr_accessor :override_database
8289
+
8290
+ def initialize(
8291
+ id: nil,
8292
+ name: nil,
8293
+ healthy: nil,
8294
+ tags: nil,
8295
+ hostname: nil,
8296
+ username: nil,
8297
+ password: nil,
8298
+ database: nil,
8299
+ port_override: nil,
8300
+ port: nil,
8301
+ override_database: nil
8302
+ )
8303
+ if id != nil
8304
+ @id = id
8305
+ end
8306
+ if name != nil
8307
+ @name = name
8308
+ end
8309
+ if healthy != nil
8310
+ @healthy = healthy
8311
+ end
8312
+ if tags != nil
8313
+ @tags = tags
8314
+ end
8315
+ if hostname != nil
8316
+ @hostname = hostname
8317
+ end
8318
+ if username != nil
8319
+ @username = username
8320
+ end
8321
+ if password != nil
8322
+ @password = password
8323
+ end
8324
+ if database != nil
8325
+ @database = database
8326
+ end
8327
+ if port_override != nil
8328
+ @port_override = port_override
8329
+ end
8330
+ if port != nil
8331
+ @port = port
8332
+ end
8333
+ if override_database != nil
8334
+ @override_database = override_database
8335
+ end
8336
+ end
8337
+
8338
+ def to_json(options = {})
8339
+ hash = {}
8340
+ self.instance_variables.each do |var|
8341
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8342
+ end
8343
+ hash.to_json
8344
+ end
8345
+ end
8346
+
8347
+ class AuroraPostgres
8348
+ # Unique identifier of the Resource.
8349
+ attr_accessor :id
8350
+ # Unique human-readable name of the Resource.
8351
+ attr_accessor :name
8352
+ # True if the datasource is reachable and the credentials are valid.
8353
+ attr_accessor :healthy
8354
+ # Tags is a map of key, value pairs.
8355
+ attr_accessor :tags
8356
+
8357
+ attr_accessor :hostname
8358
+
8359
+ attr_accessor :username
8360
+
8361
+ attr_accessor :password
8362
+
8363
+ attr_accessor :database
8364
+
8365
+ attr_accessor :port_override
8366
+
8367
+ attr_accessor :port
8368
+
8369
+ attr_accessor :override_database
8370
+
8371
+ def initialize(
8372
+ id: nil,
8373
+ name: nil,
8374
+ healthy: nil,
8375
+ tags: nil,
8376
+ hostname: nil,
8377
+ username: nil,
8378
+ password: nil,
8379
+ database: nil,
8380
+ port_override: nil,
8381
+ port: nil,
8382
+ override_database: nil
8383
+ )
8384
+ if id != nil
8385
+ @id = id
8386
+ end
8387
+ if name != nil
8388
+ @name = name
8389
+ end
8390
+ if healthy != nil
8391
+ @healthy = healthy
8392
+ end
8393
+ if tags != nil
8394
+ @tags = tags
8395
+ end
8396
+ if hostname != nil
8397
+ @hostname = hostname
8398
+ end
8399
+ if username != nil
8400
+ @username = username
8401
+ end
8402
+ if password != nil
8403
+ @password = password
8404
+ end
8405
+ if database != nil
8406
+ @database = database
8407
+ end
8408
+ if port_override != nil
8409
+ @port_override = port_override
8410
+ end
8411
+ if port != nil
8412
+ @port = port
8413
+ end
8414
+ if override_database != nil
8415
+ @override_database = override_database
8416
+ end
8417
+ end
8418
+
8419
+ def to_json(options = {})
8420
+ hash = {}
8421
+ self.instance_variables.each do |var|
8422
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8423
+ end
8424
+ hash.to_json
8425
+ end
8426
+ end
8427
+
8428
+ class Greenplum
8429
+ # Unique identifier of the Resource.
8430
+ attr_accessor :id
8431
+ # Unique human-readable name of the Resource.
8432
+ attr_accessor :name
8433
+ # True if the datasource is reachable and the credentials are valid.
8434
+ attr_accessor :healthy
8435
+ # Tags is a map of key, value pairs.
8436
+ attr_accessor :tags
8437
+
8438
+ attr_accessor :hostname
8439
+
8440
+ attr_accessor :username
8441
+
8442
+ attr_accessor :password
8443
+
8444
+ attr_accessor :database
8445
+
8446
+ attr_accessor :port_override
8447
+
8448
+ attr_accessor :port
8449
+
8450
+ attr_accessor :override_database
8451
+
8452
+ def initialize(
8453
+ id: nil,
8454
+ name: nil,
8455
+ healthy: nil,
8456
+ tags: nil,
8457
+ hostname: nil,
8458
+ username: nil,
8459
+ password: nil,
8460
+ database: nil,
8461
+ port_override: nil,
8462
+ port: nil,
8463
+ override_database: nil
8464
+ )
8465
+ if id != nil
8466
+ @id = id
8467
+ end
8468
+ if name != nil
8469
+ @name = name
8470
+ end
8471
+ if healthy != nil
8472
+ @healthy = healthy
8473
+ end
8474
+ if tags != nil
8475
+ @tags = tags
8476
+ end
8477
+ if hostname != nil
8478
+ @hostname = hostname
8479
+ end
8480
+ if username != nil
8481
+ @username = username
8482
+ end
8483
+ if password != nil
8484
+ @password = password
8485
+ end
8486
+ if database != nil
8487
+ @database = database
8488
+ end
8489
+ if port_override != nil
8490
+ @port_override = port_override
8491
+ end
8492
+ if port != nil
8493
+ @port = port
8494
+ end
8495
+ if override_database != nil
8496
+ @override_database = override_database
8497
+ end
8498
+ end
8499
+
8500
+ def to_json(options = {})
8501
+ hash = {}
8502
+ self.instance_variables.each do |var|
8503
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8504
+ end
8505
+ hash.to_json
8506
+ end
8507
+ end
8508
+
8509
+ class Cockroach
8510
+ # Unique identifier of the Resource.
8511
+ attr_accessor :id
8512
+ # Unique human-readable name of the Resource.
8513
+ attr_accessor :name
8514
+ # True if the datasource is reachable and the credentials are valid.
8515
+ attr_accessor :healthy
8516
+ # Tags is a map of key, value pairs.
8517
+ attr_accessor :tags
8518
+
8519
+ attr_accessor :hostname
8520
+
8521
+ attr_accessor :username
8522
+
8523
+ attr_accessor :password
8524
+
8525
+ attr_accessor :database
8526
+
8527
+ attr_accessor :port_override
8528
+
8529
+ attr_accessor :port
8530
+
8531
+ attr_accessor :override_database
8532
+
8533
+ def initialize(
8534
+ id: nil,
8535
+ name: nil,
8536
+ healthy: nil,
8537
+ tags: nil,
8538
+ hostname: nil,
8539
+ username: nil,
8540
+ password: nil,
8541
+ database: nil,
8542
+ port_override: nil,
8543
+ port: nil,
8544
+ override_database: nil
8545
+ )
8546
+ if id != nil
8547
+ @id = id
8548
+ end
8549
+ if name != nil
8550
+ @name = name
8551
+ end
8552
+ if healthy != nil
8553
+ @healthy = healthy
8554
+ end
8555
+ if tags != nil
8556
+ @tags = tags
8557
+ end
8558
+ if hostname != nil
8559
+ @hostname = hostname
8560
+ end
8561
+ if username != nil
8562
+ @username = username
8563
+ end
8564
+ if password != nil
8565
+ @password = password
8566
+ end
8567
+ if database != nil
8568
+ @database = database
8569
+ end
8570
+ if port_override != nil
8571
+ @port_override = port_override
8572
+ end
8573
+ if port != nil
8574
+ @port = port
8575
+ end
8576
+ if override_database != nil
8577
+ @override_database = override_database
8578
+ end
8579
+ end
8580
+
8581
+ def to_json(options = {})
8582
+ hash = {}
8583
+ self.instance_variables.each do |var|
8584
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8585
+ end
8586
+ hash.to_json
8587
+ end
8588
+ end
8589
+
8590
+ class Redshift
8591
+ # Unique identifier of the Resource.
8592
+ attr_accessor :id
8593
+ # Unique human-readable name of the Resource.
8594
+ attr_accessor :name
8595
+ # True if the datasource is reachable and the credentials are valid.
8596
+ attr_accessor :healthy
8597
+ # Tags is a map of key, value pairs.
8598
+ attr_accessor :tags
8599
+
8600
+ attr_accessor :hostname
8601
+
8602
+ attr_accessor :username
8603
+
8604
+ attr_accessor :password
8605
+
8606
+ attr_accessor :database
8607
+
8608
+ attr_accessor :port_override
8609
+
8610
+ attr_accessor :port
8611
+
8612
+ attr_accessor :override_database
8613
+
8614
+ def initialize(
8615
+ id: nil,
8616
+ name: nil,
8617
+ healthy: nil,
8618
+ tags: nil,
8619
+ hostname: nil,
8620
+ username: nil,
8621
+ password: nil,
8622
+ database: nil,
8623
+ port_override: nil,
8624
+ port: nil,
8625
+ override_database: nil
8626
+ )
8627
+ if id != nil
8628
+ @id = id
8629
+ end
8630
+ if name != nil
8631
+ @name = name
8632
+ end
8633
+ if healthy != nil
8634
+ @healthy = healthy
8635
+ end
8636
+ if tags != nil
8637
+ @tags = tags
8638
+ end
8639
+ if hostname != nil
8640
+ @hostname = hostname
8641
+ end
8642
+ if username != nil
8643
+ @username = username
8644
+ end
8645
+ if password != nil
8646
+ @password = password
8647
+ end
8648
+ if database != nil
8649
+ @database = database
8650
+ end
8651
+ if port_override != nil
8652
+ @port_override = port_override
8653
+ end
8654
+ if port != nil
8655
+ @port = port
8656
+ end
8657
+ if override_database != nil
8658
+ @override_database = override_database
8659
+ end
8660
+ end
8661
+
8662
+ def to_json(options = {})
8663
+ hash = {}
8664
+ self.instance_variables.each do |var|
8665
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8666
+ end
8667
+ hash.to_json
8668
+ end
8669
+ end
8670
+
8671
+ class Citus
8672
+ # Unique identifier of the Resource.
8673
+ attr_accessor :id
8674
+ # Unique human-readable name of the Resource.
8675
+ attr_accessor :name
8676
+ # True if the datasource is reachable and the credentials are valid.
8677
+ attr_accessor :healthy
8678
+ # Tags is a map of key, value pairs.
8679
+ attr_accessor :tags
8680
+
8681
+ attr_accessor :hostname
8682
+
8683
+ attr_accessor :username
8684
+
8685
+ attr_accessor :password
8686
+
8687
+ attr_accessor :database
8688
+
8689
+ attr_accessor :port_override
8690
+
8691
+ attr_accessor :port
8692
+
8693
+ attr_accessor :override_database
8694
+
8695
+ def initialize(
8696
+ id: nil,
8697
+ name: nil,
8698
+ healthy: nil,
8699
+ tags: nil,
8700
+ hostname: nil,
8701
+ username: nil,
8702
+ password: nil,
8703
+ database: nil,
8704
+ port_override: nil,
8705
+ port: nil,
8706
+ override_database: nil
8707
+ )
8708
+ if id != nil
8709
+ @id = id
8710
+ end
8711
+ if name != nil
8712
+ @name = name
8713
+ end
8714
+ if healthy != nil
8715
+ @healthy = healthy
8716
+ end
8717
+ if tags != nil
8718
+ @tags = tags
8719
+ end
8720
+ if hostname != nil
8721
+ @hostname = hostname
8722
+ end
8723
+ if username != nil
8724
+ @username = username
8725
+ end
8726
+ if password != nil
8727
+ @password = password
8728
+ end
8729
+ if database != nil
8730
+ @database = database
8731
+ end
8732
+ if port_override != nil
8733
+ @port_override = port_override
8734
+ end
8735
+ if port != nil
8736
+ @port = port
8737
+ end
8738
+ if override_database != nil
8739
+ @override_database = override_database
8740
+ end
8741
+ end
8742
+
8743
+ def to_json(options = {})
8744
+ hash = {}
8745
+ self.instance_variables.each do |var|
8746
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8747
+ end
8748
+ hash.to_json
8749
+ end
8750
+ end
8751
+
8752
+ class Presto
8753
+ # Unique identifier of the Resource.
8754
+ attr_accessor :id
8755
+ # Unique human-readable name of the Resource.
8756
+ attr_accessor :name
8757
+ # True if the datasource is reachable and the credentials are valid.
8758
+ attr_accessor :healthy
8759
+ # Tags is a map of key, value pairs.
8760
+ attr_accessor :tags
8761
+
8762
+ attr_accessor :hostname
8763
+
8764
+ attr_accessor :password
8765
+
8766
+ attr_accessor :database
8767
+
8768
+ attr_accessor :port_override
8769
+
8770
+ attr_accessor :port
8771
+
8772
+ attr_accessor :username
8773
+
8774
+ attr_accessor :tls_required
8775
+
8776
+ def initialize(
8777
+ id: nil,
8778
+ name: nil,
8779
+ healthy: nil,
8780
+ tags: nil,
8781
+ hostname: nil,
8782
+ password: nil,
8783
+ database: nil,
8784
+ port_override: nil,
8785
+ port: nil,
8786
+ username: nil,
8787
+ tls_required: nil
8788
+ )
8789
+ if id != nil
8790
+ @id = id
8791
+ end
8792
+ if name != nil
8793
+ @name = name
8794
+ end
8795
+ if healthy != nil
8796
+ @healthy = healthy
8797
+ end
8798
+ if tags != nil
8799
+ @tags = tags
8800
+ end
8801
+ if hostname != nil
8802
+ @hostname = hostname
8803
+ end
8804
+ if password != nil
8805
+ @password = password
8806
+ end
8807
+ if database != nil
8808
+ @database = database
8809
+ end
8810
+ if port_override != nil
8811
+ @port_override = port_override
8812
+ end
8813
+ if port != nil
8814
+ @port = port
8815
+ end
8816
+ if username != nil
8817
+ @username = username
8818
+ end
8819
+ if tls_required != nil
8820
+ @tls_required = tls_required
8821
+ end
8822
+ end
8823
+
8824
+ def to_json(options = {})
8825
+ hash = {}
8826
+ self.instance_variables.each do |var|
8827
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8828
+ end
8829
+ hash.to_json
8830
+ end
8831
+ end
8832
+
8833
+ class RDP
8834
+ # Unique identifier of the Resource.
8835
+ attr_accessor :id
8836
+ # Unique human-readable name of the Resource.
8837
+ attr_accessor :name
8838
+ # True if the datasource is reachable and the credentials are valid.
8839
+ attr_accessor :healthy
8840
+ # Tags is a map of key, value pairs.
8841
+ attr_accessor :tags
8842
+
8843
+ attr_accessor :hostname
8844
+
8845
+ attr_accessor :username
8846
+
8847
+ attr_accessor :password
8848
+
8849
+ attr_accessor :port_override
8850
+
8851
+ attr_accessor :port
8852
+
8853
+ def initialize(
8854
+ id: nil,
8855
+ name: nil,
8856
+ healthy: nil,
8857
+ tags: nil,
8858
+ hostname: nil,
8859
+ username: nil,
8860
+ password: nil,
8861
+ port_override: nil,
8862
+ port: nil
8863
+ )
8864
+ if id != nil
8865
+ @id = id
8866
+ end
8867
+ if name != nil
8868
+ @name = name
8869
+ end
8870
+ if healthy != nil
8871
+ @healthy = healthy
8872
+ end
8873
+ if tags != nil
8874
+ @tags = tags
8875
+ end
8876
+ if hostname != nil
8877
+ @hostname = hostname
8878
+ end
8879
+ if username != nil
8880
+ @username = username
8881
+ end
8882
+ if password != nil
8883
+ @password = password
8884
+ end
8885
+ if port_override != nil
8886
+ @port_override = port_override
8887
+ end
8888
+ if port != nil
8889
+ @port = port
8890
+ end
8891
+ end
8892
+
8893
+ def to_json(options = {})
8894
+ hash = {}
8895
+ self.instance_variables.each do |var|
8896
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8897
+ end
8898
+ hash.to_json
8899
+ end
8900
+ end
8901
+
8902
+ class Redis
8903
+ # Unique identifier of the Resource.
8904
+ attr_accessor :id
8905
+ # Unique human-readable name of the Resource.
8906
+ attr_accessor :name
8907
+ # True if the datasource is reachable and the credentials are valid.
8908
+ attr_accessor :healthy
8909
+ # Tags is a map of key, value pairs.
8910
+ attr_accessor :tags
8911
+
8912
+ attr_accessor :hostname
8913
+
8914
+ attr_accessor :port_override
8915
+
8916
+ attr_accessor :password
8917
+
8918
+ attr_accessor :port
8919
+
8920
+ def initialize(
8921
+ id: nil,
8922
+ name: nil,
8923
+ healthy: nil,
8924
+ tags: nil,
8925
+ hostname: nil,
8926
+ port_override: nil,
8927
+ password: nil,
8928
+ port: nil
8929
+ )
8930
+ if id != nil
8931
+ @id = id
8932
+ end
8933
+ if name != nil
8934
+ @name = name
8935
+ end
8936
+ if healthy != nil
8937
+ @healthy = healthy
8938
+ end
8939
+ if tags != nil
8940
+ @tags = tags
8941
+ end
8942
+ if hostname != nil
8943
+ @hostname = hostname
8944
+ end
8945
+ if port_override != nil
8946
+ @port_override = port_override
8947
+ end
8948
+ if password != nil
8949
+ @password = password
8950
+ end
8951
+ if port != nil
8952
+ @port = port
8953
+ end
8954
+ end
8955
+
8956
+ def to_json(options = {})
8957
+ hash = {}
8958
+ self.instance_variables.each do |var|
8959
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
8960
+ end
8961
+ hash.to_json
8962
+ end
8963
+ end
8964
+
8965
+ class ElasticacheRedis
8966
+ # Unique identifier of the Resource.
8967
+ attr_accessor :id
8968
+ # Unique human-readable name of the Resource.
8969
+ attr_accessor :name
8970
+ # True if the datasource is reachable and the credentials are valid.
8971
+ attr_accessor :healthy
8972
+ # Tags is a map of key, value pairs.
8973
+ attr_accessor :tags
8974
+
8975
+ attr_accessor :hostname
8976
+
8977
+ attr_accessor :port_override
8978
+
8979
+ attr_accessor :password
8980
+
8981
+ attr_accessor :port
8982
+
8983
+ attr_accessor :tls_required
8984
+
8985
+ def initialize(
8986
+ id: nil,
8987
+ name: nil,
8988
+ healthy: nil,
8989
+ tags: nil,
8990
+ hostname: nil,
8991
+ port_override: nil,
8992
+ password: nil,
8993
+ port: nil,
8994
+ tls_required: nil
8995
+ )
8996
+ if id != nil
8997
+ @id = id
8998
+ end
8999
+ if name != nil
9000
+ @name = name
9001
+ end
9002
+ if healthy != nil
9003
+ @healthy = healthy
9004
+ end
9005
+ if tags != nil
9006
+ @tags = tags
9007
+ end
9008
+ if hostname != nil
9009
+ @hostname = hostname
9010
+ end
9011
+ if port_override != nil
9012
+ @port_override = port_override
9013
+ end
9014
+ if password != nil
9015
+ @password = password
9016
+ end
9017
+ if port != nil
9018
+ @port = port
9019
+ end
9020
+ if tls_required != nil
9021
+ @tls_required = tls_required
9022
+ end
9023
+ end
9024
+
9025
+ def to_json(options = {})
9026
+ hash = {}
9027
+ self.instance_variables.each do |var|
9028
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9029
+ end
9030
+ hash.to_json
9031
+ end
9032
+ end
9033
+
9034
+ class Snowflake
9035
+ # Unique identifier of the Resource.
9036
+ attr_accessor :id
9037
+ # Unique human-readable name of the Resource.
9038
+ attr_accessor :name
9039
+ # True if the datasource is reachable and the credentials are valid.
9040
+ attr_accessor :healthy
9041
+ # Tags is a map of key, value pairs.
9042
+ attr_accessor :tags
9043
+
9044
+ attr_accessor :hostname
9045
+
9046
+ attr_accessor :username
9047
+
9048
+ attr_accessor :password
9049
+
9050
+ attr_accessor :database
9051
+
9052
+ attr_accessor :schema
9053
+
9054
+ attr_accessor :port_override
9055
+
9056
+ def initialize(
9057
+ id: nil,
9058
+ name: nil,
9059
+ healthy: nil,
9060
+ tags: nil,
9061
+ hostname: nil,
9062
+ username: nil,
9063
+ password: nil,
9064
+ database: nil,
9065
+ schema: nil,
9066
+ port_override: nil
9067
+ )
9068
+ if id != nil
9069
+ @id = id
9070
+ end
9071
+ if name != nil
9072
+ @name = name
9073
+ end
9074
+ if healthy != nil
9075
+ @healthy = healthy
9076
+ end
9077
+ if tags != nil
9078
+ @tags = tags
9079
+ end
9080
+ if hostname != nil
9081
+ @hostname = hostname
9082
+ end
9083
+ if username != nil
9084
+ @username = username
9085
+ end
9086
+ if password != nil
9087
+ @password = password
9088
+ end
9089
+ if database != nil
9090
+ @database = database
9091
+ end
9092
+ if schema != nil
9093
+ @schema = schema
9094
+ end
9095
+ if port_override != nil
9096
+ @port_override = port_override
9097
+ end
9098
+ end
9099
+
9100
+ def to_json(options = {})
9101
+ hash = {}
9102
+ self.instance_variables.each do |var|
9103
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9104
+ end
9105
+ hash.to_json
9106
+ end
9107
+ end
9108
+
9109
+ class SQLServer
9110
+ # Unique identifier of the Resource.
9111
+ attr_accessor :id
9112
+ # Unique human-readable name of the Resource.
9113
+ attr_accessor :name
9114
+ # True if the datasource is reachable and the credentials are valid.
9115
+ attr_accessor :healthy
9116
+ # Tags is a map of key, value pairs.
9117
+ attr_accessor :tags
9118
+
9119
+ attr_accessor :hostname
9120
+
9121
+ attr_accessor :username
9122
+
9123
+ attr_accessor :password
9124
+
9125
+ attr_accessor :database
9126
+
9127
+ attr_accessor :port_override
9128
+
9129
+ attr_accessor :schema
9130
+
9131
+ attr_accessor :port
9132
+
9133
+ attr_accessor :override_database
9134
+
9135
+ def initialize(
9136
+ id: nil,
9137
+ name: nil,
9138
+ healthy: nil,
9139
+ tags: nil,
9140
+ hostname: nil,
9141
+ username: nil,
9142
+ password: nil,
9143
+ database: nil,
9144
+ port_override: nil,
9145
+ schema: nil,
9146
+ port: nil,
9147
+ override_database: nil
9148
+ )
9149
+ if id != nil
9150
+ @id = id
9151
+ end
9152
+ if name != nil
9153
+ @name = name
9154
+ end
9155
+ if healthy != nil
9156
+ @healthy = healthy
9157
+ end
9158
+ if tags != nil
9159
+ @tags = tags
9160
+ end
9161
+ if hostname != nil
9162
+ @hostname = hostname
9163
+ end
9164
+ if username != nil
9165
+ @username = username
9166
+ end
9167
+ if password != nil
9168
+ @password = password
9169
+ end
9170
+ if database != nil
9171
+ @database = database
9172
+ end
9173
+ if port_override != nil
9174
+ @port_override = port_override
9175
+ end
9176
+ if schema != nil
9177
+ @schema = schema
9178
+ end
9179
+ if port != nil
9180
+ @port = port
9181
+ end
9182
+ if override_database != nil
9183
+ @override_database = override_database
9184
+ end
9185
+ end
9186
+
9187
+ def to_json(options = {})
9188
+ hash = {}
9189
+ self.instance_variables.each do |var|
9190
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9191
+ end
9192
+ hash.to_json
9193
+ end
9194
+ end
9195
+
9196
+ class SSH
9197
+ # Unique identifier of the Resource.
9198
+ attr_accessor :id
9199
+ # Unique human-readable name of the Resource.
9200
+ attr_accessor :name
9201
+ # True if the datasource is reachable and the credentials are valid.
9202
+ attr_accessor :healthy
9203
+ # Tags is a map of key, value pairs.
9204
+ attr_accessor :tags
9205
+
9206
+ attr_accessor :hostname
9207
+
9208
+ attr_accessor :username
9209
+
9210
+ attr_accessor :port
9211
+
9212
+ attr_accessor :public_key
9213
+
9214
+ attr_accessor :port_forwarding
9215
+
9216
+ attr_accessor :allow_deprecated_key_exchanges
9217
+
9218
+ def initialize(
9219
+ id: nil,
9220
+ name: nil,
9221
+ healthy: nil,
9222
+ tags: nil,
9223
+ hostname: nil,
9224
+ username: nil,
9225
+ port: nil,
9226
+ public_key: nil,
9227
+ port_forwarding: nil,
9228
+ allow_deprecated_key_exchanges: nil
9229
+ )
9230
+ if id != nil
9231
+ @id = id
9232
+ end
9233
+ if name != nil
9234
+ @name = name
9235
+ end
9236
+ if healthy != nil
9237
+ @healthy = healthy
9238
+ end
9239
+ if tags != nil
9240
+ @tags = tags
9241
+ end
9242
+ if hostname != nil
9243
+ @hostname = hostname
9244
+ end
9245
+ if username != nil
9246
+ @username = username
9247
+ end
9248
+ if port != nil
9249
+ @port = port
9250
+ end
9251
+ if public_key != nil
9252
+ @public_key = public_key
9253
+ end
9254
+ if port_forwarding != nil
9255
+ @port_forwarding = port_forwarding
9256
+ end
9257
+ if allow_deprecated_key_exchanges != nil
9258
+ @allow_deprecated_key_exchanges = allow_deprecated_key_exchanges
9259
+ end
9260
+ end
9261
+
9262
+ def to_json(options = {})
9263
+ hash = {}
9264
+ self.instance_variables.each do |var|
9265
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9266
+ end
9267
+ hash.to_json
9268
+ end
9269
+ end
9270
+
9271
+ class SSHCert
9272
+ # Unique identifier of the Resource.
9273
+ attr_accessor :id
9274
+ # Unique human-readable name of the Resource.
9275
+ attr_accessor :name
9276
+ # True if the datasource is reachable and the credentials are valid.
9277
+ attr_accessor :healthy
9278
+ # Tags is a map of key, value pairs.
9279
+ attr_accessor :tags
9280
+
9281
+ attr_accessor :hostname
9282
+
9283
+ attr_accessor :username
9284
+
9285
+ attr_accessor :port
9286
+
9287
+ attr_accessor :port_forwarding
9288
+
9289
+ attr_accessor :allow_deprecated_key_exchanges
9290
+
9291
+ def initialize(
9292
+ id: nil,
9293
+ name: nil,
9294
+ healthy: nil,
9295
+ tags: nil,
9296
+ hostname: nil,
9297
+ username: nil,
9298
+ port: nil,
9299
+ port_forwarding: nil,
9300
+ allow_deprecated_key_exchanges: nil
9301
+ )
9302
+ if id != nil
9303
+ @id = id
9304
+ end
9305
+ if name != nil
9306
+ @name = name
9307
+ end
9308
+ if healthy != nil
9309
+ @healthy = healthy
9310
+ end
9311
+ if tags != nil
9312
+ @tags = tags
9313
+ end
9314
+ if hostname != nil
9315
+ @hostname = hostname
9316
+ end
9317
+ if username != nil
9318
+ @username = username
9319
+ end
9320
+ if port != nil
9321
+ @port = port
9322
+ end
9323
+ if port_forwarding != nil
9324
+ @port_forwarding = port_forwarding
9325
+ end
9326
+ if allow_deprecated_key_exchanges != nil
9327
+ @allow_deprecated_key_exchanges = allow_deprecated_key_exchanges
9328
+ end
9329
+ end
9330
+
9331
+ def to_json(options = {})
9332
+ hash = {}
9333
+ self.instance_variables.each do |var|
9334
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9335
+ end
9336
+ hash.to_json
9337
+ end
9338
+ end
9339
+
9340
+ class Sybase
9341
+ # Unique identifier of the Resource.
9342
+ attr_accessor :id
9343
+ # Unique human-readable name of the Resource.
9344
+ attr_accessor :name
9345
+ # True if the datasource is reachable and the credentials are valid.
9346
+ attr_accessor :healthy
9347
+ # Tags is a map of key, value pairs.
9348
+ attr_accessor :tags
9349
+
9350
+ attr_accessor :hostname
9351
+
9352
+ attr_accessor :username
9353
+
9354
+ attr_accessor :port_override
9355
+
9356
+ attr_accessor :port
9357
+
9358
+ attr_accessor :password
9359
+
9360
+ def initialize(
9361
+ id: nil,
9362
+ name: nil,
9363
+ healthy: nil,
9364
+ tags: nil,
9365
+ hostname: nil,
9366
+ username: nil,
9367
+ port_override: nil,
9368
+ port: nil,
9369
+ password: nil
9370
+ )
9371
+ if id != nil
9372
+ @id = id
9373
+ end
9374
+ if name != nil
9375
+ @name = name
9376
+ end
9377
+ if healthy != nil
9378
+ @healthy = healthy
9379
+ end
9380
+ if tags != nil
9381
+ @tags = tags
9382
+ end
9383
+ if hostname != nil
9384
+ @hostname = hostname
9385
+ end
9386
+ if username != nil
9387
+ @username = username
9388
+ end
9389
+ if port_override != nil
9390
+ @port_override = port_override
9391
+ end
9392
+ if port != nil
9393
+ @port = port
9394
+ end
9395
+ if password != nil
9396
+ @password = password
9397
+ end
9398
+ end
9399
+
9400
+ def to_json(options = {})
9401
+ hash = {}
9402
+ self.instance_variables.each do |var|
9403
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9404
+ end
9405
+ hash.to_json
9406
+ end
9407
+ end
9408
+
9409
+ class SybaseIQ
9410
+ # Unique identifier of the Resource.
9411
+ attr_accessor :id
9412
+ # Unique human-readable name of the Resource.
9413
+ attr_accessor :name
9414
+ # True if the datasource is reachable and the credentials are valid.
9415
+ attr_accessor :healthy
9416
+ # Tags is a map of key, value pairs.
9417
+ attr_accessor :tags
9418
+
9419
+ attr_accessor :hostname
9420
+
9421
+ attr_accessor :username
9422
+
9423
+ attr_accessor :port_override
9424
+
9425
+ attr_accessor :port
9426
+
9427
+ attr_accessor :password
9428
+
9429
+ def initialize(
9430
+ id: nil,
9431
+ name: nil,
9432
+ healthy: nil,
9433
+ tags: nil,
9434
+ hostname: nil,
9435
+ username: nil,
9436
+ port_override: nil,
9437
+ port: nil,
9438
+ password: nil
9439
+ )
9440
+ if id != nil
9441
+ @id = id
9442
+ end
9443
+ if name != nil
9444
+ @name = name
9445
+ end
9446
+ if healthy != nil
9447
+ @healthy = healthy
9448
+ end
9449
+ if tags != nil
9450
+ @tags = tags
9451
+ end
9452
+ if hostname != nil
9453
+ @hostname = hostname
9454
+ end
9455
+ if username != nil
9456
+ @username = username
9457
+ end
9458
+ if port_override != nil
9459
+ @port_override = port_override
9460
+ end
9461
+ if port != nil
9462
+ @port = port
9463
+ end
9464
+ if password != nil
9465
+ @password = password
9466
+ end
9467
+ end
9468
+
9469
+ def to_json(options = {})
9470
+ hash = {}
9471
+ self.instance_variables.each do |var|
9472
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9473
+ end
9474
+ hash.to_json
9475
+ end
9476
+ end
9477
+
9478
+ class Teradata
9479
+ # Unique identifier of the Resource.
9480
+ attr_accessor :id
9481
+ # Unique human-readable name of the Resource.
9482
+ attr_accessor :name
9483
+ # True if the datasource is reachable and the credentials are valid.
9484
+ attr_accessor :healthy
9485
+ # Tags is a map of key, value pairs.
9486
+ attr_accessor :tags
9487
+
9488
+ attr_accessor :hostname
9489
+
9490
+ attr_accessor :username
9491
+
9492
+ attr_accessor :password
9493
+
9494
+ attr_accessor :port_override
9495
+
9496
+ attr_accessor :port
9497
+
9498
+ def initialize(
9499
+ id: nil,
9500
+ name: nil,
9501
+ healthy: nil,
9502
+ tags: nil,
9503
+ hostname: nil,
9504
+ username: nil,
9505
+ password: nil,
9506
+ port_override: nil,
9507
+ port: nil
9508
+ )
9509
+ if id != nil
9510
+ @id = id
9511
+ end
9512
+ if name != nil
9513
+ @name = name
9514
+ end
9515
+ if healthy != nil
9516
+ @healthy = healthy
9517
+ end
9518
+ if tags != nil
9519
+ @tags = tags
9520
+ end
9521
+ if hostname != nil
9522
+ @hostname = hostname
9523
+ end
9524
+ if username != nil
9525
+ @username = username
9526
+ end
9527
+ if password != nil
9528
+ @password = password
9529
+ end
9530
+ if port_override != nil
9531
+ @port_override = port_override
9532
+ end
9533
+ if port != nil
9534
+ @port = port
9535
+ end
9536
+ end
9537
+
9538
+ def to_json(options = {})
9539
+ hash = {}
9540
+ self.instance_variables.each do |var|
9541
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9542
+ end
9543
+ hash.to_json
9544
+ end
9545
+ end
9546
+
9547
+ # NodeCreateResponse reports how the Nodes were created in the system.
9548
+ class NodeCreateResponse
9549
+ # Reserved for future use.
9550
+ attr_accessor :meta
9551
+ # The created Node.
9552
+ attr_accessor :node
9553
+ # The auth token generated for the Node. The Node will use this token to
9554
+ # authenticate with the strongDM API.
9555
+ attr_accessor :token
9556
+ # Rate limit information.
9557
+ attr_accessor :rate_limit
9558
+
9559
+ def initialize(
9560
+ meta: nil,
9561
+ node: nil,
9562
+ token: nil,
9563
+ rate_limit: nil
9564
+ )
9565
+ if meta != nil
9566
+ @meta = meta
9567
+ end
9568
+ if node != nil
9569
+ @node = node
9570
+ end
9571
+ if token != nil
9572
+ @token = token
9573
+ end
9574
+ if rate_limit != nil
9575
+ @rate_limit = rate_limit
9576
+ end
9577
+ end
9578
+
9579
+ def to_json(options = {})
9580
+ hash = {}
9581
+ self.instance_variables.each do |var|
9582
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9583
+ end
9584
+ hash.to_json
9585
+ end
9586
+ end
9587
+
9588
+ # NodeGetResponse returns a requested Node.
9589
+ class NodeGetResponse
9590
+ # Reserved for future use.
9591
+ attr_accessor :meta
9592
+ # The requested Node.
9593
+ attr_accessor :node
9594
+ # Rate limit information.
9595
+ attr_accessor :rate_limit
9596
+
9597
+ def initialize(
9598
+ meta: nil,
9599
+ node: nil,
9600
+ rate_limit: nil
9601
+ )
9602
+ if meta != nil
9603
+ @meta = meta
9604
+ end
9605
+ if node != nil
9606
+ @node = node
9607
+ end
9608
+ if rate_limit != nil
9609
+ @rate_limit = rate_limit
9610
+ end
9611
+ end
9612
+
9613
+ def to_json(options = {})
9614
+ hash = {}
9615
+ self.instance_variables.each do |var|
9616
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9617
+ end
9618
+ hash.to_json
9619
+ end
9620
+ end
9621
+
9622
+ # NodeUpdateResponse returns the fields of a Node after it has been updated by
9623
+ # a NodeUpdateRequest.
9624
+ class NodeUpdateResponse
9625
+ # Reserved for future use.
9626
+ attr_accessor :meta
9627
+ # The updated Node.
9628
+ attr_accessor :node
9629
+ # Rate limit information.
9630
+ attr_accessor :rate_limit
9631
+
9632
+ def initialize(
9633
+ meta: nil,
9634
+ node: nil,
9635
+ rate_limit: nil
9636
+ )
9637
+ if meta != nil
9638
+ @meta = meta
9639
+ end
9640
+ if node != nil
9641
+ @node = node
9642
+ end
9643
+ if rate_limit != nil
9644
+ @rate_limit = rate_limit
9645
+ end
9646
+ end
9647
+
9648
+ def to_json(options = {})
9649
+ hash = {}
9650
+ self.instance_variables.each do |var|
9651
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9652
+ end
9653
+ hash.to_json
9654
+ end
9655
+ end
9656
+
9657
+ # NodeDeleteResponse returns information about a Node that was deleted.
9658
+ class NodeDeleteResponse
9659
+ # Reserved for future use.
9660
+ attr_accessor :meta
9661
+ # Rate limit information.
9662
+ attr_accessor :rate_limit
9663
+
9664
+ def initialize(
9665
+ meta: nil,
9666
+ rate_limit: nil
9667
+ )
9668
+ if meta != nil
9669
+ @meta = meta
9670
+ end
9671
+ if rate_limit != nil
9672
+ @rate_limit = rate_limit
9673
+ end
9674
+ end
9675
+
9676
+ def to_json(options = {})
9677
+ hash = {}
9678
+ self.instance_variables.each do |var|
9679
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9680
+ end
9681
+ hash.to_json
9682
+ end
9683
+ end
9684
+
9685
+ # Relay represents a StrongDM CLI installation running in relay mode.
9686
+ class Relay
9687
+ # Unique identifier of the Relay.
9688
+ attr_accessor :id
9689
+ # Unique human-readable name of the Relay. Generated if not provided on create.
9690
+ attr_accessor :name
9691
+ # The current state of the relay. One of: "new", "verifying_restart",
9692
+ # "awaiting_restart", "restarting", "started", "stopped", "dead",
9693
+ # "unknown".
9694
+ attr_accessor :state
9695
+ # Tags is a map of key, value pairs.
9696
+ attr_accessor :tags
9697
+
9698
+ def initialize(
9699
+ id: nil,
9700
+ name: nil,
9701
+ state: nil,
9702
+ tags: nil
9703
+ )
9704
+ if id != nil
9705
+ @id = id
9706
+ end
9707
+ if name != nil
9708
+ @name = name
9709
+ end
9710
+ if state != nil
9711
+ @state = state
9712
+ end
9713
+ if tags != nil
9714
+ @tags = tags
9715
+ end
9716
+ end
9717
+
9718
+ def to_json(options = {})
9719
+ hash = {}
9720
+ self.instance_variables.each do |var|
9721
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9722
+ end
9723
+ hash.to_json
9724
+ end
9725
+ end
9726
+
9727
+ # Gateway represents a StrongDM CLI installation running in gateway mode.
9728
+ class Gateway
9729
+ # Unique identifier of the Gateway.
9730
+ attr_accessor :id
9731
+ # Unique human-readable name of the Gateway. Generated if not provided on create.
9732
+ attr_accessor :name
9733
+ # The current state of the gateway. One of: "new", "verifying_restart",
9734
+ # "restarting", "started", "stopped", "dead", "unknown"
9735
+ attr_accessor :state
9736
+ # The public hostname/port tuple at which the gateway will be accessible to clients.
9737
+ attr_accessor :listen_address
9738
+ # The hostname/port tuple which the gateway daemon will bind to.
9739
+ # If not provided on create, set to "0.0.0.0:<listen_address_port>".
9740
+ attr_accessor :bind_address
9741
+ # Tags is a map of key, value pairs.
9742
+ attr_accessor :tags
9743
+
9744
+ def initialize(
9745
+ id: nil,
9746
+ name: nil,
9747
+ state: nil,
9748
+ listen_address: nil,
9749
+ bind_address: nil,
9750
+ tags: nil
9751
+ )
9752
+ if id != nil
9753
+ @id = id
9754
+ end
9755
+ if name != nil
9756
+ @name = name
9757
+ end
9758
+ if state != nil
9759
+ @state = state
9760
+ end
9761
+ if listen_address != nil
9762
+ @listen_address = listen_address
9763
+ end
9764
+ if bind_address != nil
9765
+ @bind_address = bind_address
9766
+ end
9767
+ if tags != nil
9768
+ @tags = tags
9769
+ end
9770
+ end
9771
+
9772
+ def to_json(options = {})
9773
+ hash = {}
9774
+ self.instance_variables.each do |var|
9775
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9776
+ end
9777
+ hash.to_json
9778
+ end
9779
+ end
9780
+
9781
+ # ResourceCreateResponse reports how the Resources were created in the system.
9782
+ class ResourceCreateResponse
9783
+ # Reserved for future use.
9784
+ attr_accessor :meta
9785
+ # The created Resource.
9786
+ attr_accessor :resource
9787
+ # Rate limit information.
9788
+ attr_accessor :rate_limit
9789
+
9790
+ def initialize(
9791
+ meta: nil,
9792
+ resource: nil,
9793
+ rate_limit: nil
9794
+ )
9795
+ if meta != nil
9796
+ @meta = meta
9797
+ end
9798
+ if resource != nil
9799
+ @resource = resource
9800
+ end
9801
+ if rate_limit != nil
9802
+ @rate_limit = rate_limit
9803
+ end
9804
+ end
9805
+
9806
+ def to_json(options = {})
9807
+ hash = {}
9808
+ self.instance_variables.each do |var|
9809
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9810
+ end
9811
+ hash.to_json
9812
+ end
9813
+ end
9814
+
9815
+ # ResourceGetResponse returns a requested Resource.
9816
+ class ResourceGetResponse
9817
+ # Reserved for future use.
9818
+ attr_accessor :meta
9819
+ # The requested Resource.
9820
+ attr_accessor :resource
9821
+ # Rate limit information.
9822
+ attr_accessor :rate_limit
9823
+
9824
+ def initialize(
9825
+ meta: nil,
9826
+ resource: nil,
9827
+ rate_limit: nil
9828
+ )
9829
+ if meta != nil
9830
+ @meta = meta
9831
+ end
9832
+ if resource != nil
9833
+ @resource = resource
9834
+ end
9835
+ if rate_limit != nil
9836
+ @rate_limit = rate_limit
9837
+ end
9838
+ end
9839
+
9840
+ def to_json(options = {})
9841
+ hash = {}
9842
+ self.instance_variables.each do |var|
9843
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9844
+ end
9845
+ hash.to_json
9846
+ end
9847
+ end
9848
+
9849
+ # ResourceUpdateResponse returns the fields of a Resource after it has been updated by
9850
+ # a ResourceUpdateRequest.
9851
+ class ResourceUpdateResponse
9852
+ # Reserved for future use.
9853
+ attr_accessor :meta
9854
+ # The updated Resource.
9855
+ attr_accessor :resource
9856
+ # Rate limit information.
9857
+ attr_accessor :rate_limit
9858
+
9859
+ def initialize(
9860
+ meta: nil,
9861
+ resource: nil,
9862
+ rate_limit: nil
9863
+ )
9864
+ if meta != nil
9865
+ @meta = meta
9866
+ end
9867
+ if resource != nil
9868
+ @resource = resource
9869
+ end
9870
+ if rate_limit != nil
9871
+ @rate_limit = rate_limit
9872
+ end
9873
+ end
9874
+
9875
+ def to_json(options = {})
9876
+ hash = {}
9877
+ self.instance_variables.each do |var|
9878
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9879
+ end
9880
+ hash.to_json
9881
+ end
9882
+ end
9883
+
9884
+ # ResourceDeleteResponse returns information about a Resource that was deleted.
9885
+ class ResourceDeleteResponse
9886
+ # Reserved for future use.
9887
+ attr_accessor :meta
9888
+ # Rate limit information.
9889
+ attr_accessor :rate_limit
9890
+
9891
+ def initialize(
9892
+ meta: nil,
9893
+ rate_limit: nil
9894
+ )
9895
+ if meta != nil
9896
+ @meta = meta
9897
+ end
9898
+ if rate_limit != nil
9899
+ @rate_limit = rate_limit
9900
+ end
9901
+ end
9902
+
9903
+ def to_json(options = {})
9904
+ hash = {}
9905
+ self.instance_variables.each do |var|
9906
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9907
+ end
9908
+ hash.to_json
9909
+ end
9910
+ end
9911
+
9912
+ # RoleAttachmentCreateResponse reports how the RoleAttachments were created in the system.
9913
+ class RoleAttachmentCreateResponse
9914
+ # Reserved for future use.
9915
+ attr_accessor :meta
9916
+ # The created RoleAttachment.
9917
+ attr_accessor :role_attachment
9918
+ # Rate limit information.
9919
+ attr_accessor :rate_limit
9920
+
9921
+ def initialize(
9922
+ meta: nil,
9923
+ role_attachment: nil,
9924
+ rate_limit: nil
9925
+ )
9926
+ if meta != nil
9927
+ @meta = meta
9928
+ end
9929
+ if role_attachment != nil
9930
+ @role_attachment = role_attachment
9931
+ end
9932
+ if rate_limit != nil
9933
+ @rate_limit = rate_limit
9934
+ end
9935
+ end
9936
+
9937
+ def to_json(options = {})
9938
+ hash = {}
9939
+ self.instance_variables.each do |var|
9940
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9941
+ end
9942
+ hash.to_json
9943
+ end
9944
+ end
9945
+
9946
+ # RoleAttachmentGetResponse returns a requested RoleAttachment.
9947
+ class RoleAttachmentGetResponse
9948
+ # Reserved for future use.
9949
+ attr_accessor :meta
9950
+ # The requested RoleAttachment.
9951
+ attr_accessor :role_attachment
9952
+ # Rate limit information.
9953
+ attr_accessor :rate_limit
9954
+
9955
+ def initialize(
9956
+ meta: nil,
9957
+ role_attachment: nil,
9958
+ rate_limit: nil
9959
+ )
9960
+ if meta != nil
9961
+ @meta = meta
9962
+ end
9963
+ if role_attachment != nil
9964
+ @role_attachment = role_attachment
9965
+ end
9966
+ if rate_limit != nil
9967
+ @rate_limit = rate_limit
9968
+ end
9969
+ end
9970
+
9971
+ def to_json(options = {})
9972
+ hash = {}
9973
+ self.instance_variables.each do |var|
9974
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9975
+ end
9976
+ hash.to_json
9977
+ end
9978
+ end
9979
+
9980
+ # RoleAttachmentDeleteResponse returns information about a RoleAttachment that was deleted.
9981
+ class RoleAttachmentDeleteResponse
9982
+ # Reserved for future use.
9983
+ attr_accessor :meta
9984
+ # Rate limit information.
9985
+ attr_accessor :rate_limit
9986
+
9987
+ def initialize(
9988
+ meta: nil,
9989
+ rate_limit: nil
9990
+ )
9991
+ if meta != nil
9992
+ @meta = meta
9993
+ end
9994
+ if rate_limit != nil
9995
+ @rate_limit = rate_limit
9996
+ end
9997
+ end
9998
+
9999
+ def to_json(options = {})
10000
+ hash = {}
10001
+ self.instance_variables.each do |var|
10002
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10003
+ end
10004
+ hash.to_json
10005
+ end
10006
+ end
10007
+
10008
+ # A RoleAttachment assigns a role to a composite role.
10009
+ class RoleAttachment
10010
+ # Unique identifier of the RoleAttachment.
10011
+ attr_accessor :id
10012
+ # The id of the composite role of this RoleAttachment.
10013
+ attr_accessor :composite_role_id
10014
+ # The id of the attached role of this RoleAttachment.
10015
+ attr_accessor :attached_role_id
10016
+
10017
+ def initialize(
10018
+ id: nil,
10019
+ composite_role_id: nil,
10020
+ attached_role_id: nil
10021
+ )
10022
+ if id != nil
10023
+ @id = id
10024
+ end
10025
+ if composite_role_id != nil
10026
+ @composite_role_id = composite_role_id
10027
+ end
10028
+ if attached_role_id != nil
10029
+ @attached_role_id = attached_role_id
10030
+ end
10031
+ end
10032
+
10033
+ def to_json(options = {})
10034
+ hash = {}
10035
+ self.instance_variables.each do |var|
10036
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10037
+ end
10038
+ hash.to_json
10039
+ end
10040
+ end
10041
+
10042
+ # RoleGrantCreateResponse reports how the RoleGrants were created in the system.
10043
+ class RoleGrantCreateResponse
10044
+ # Reserved for future use.
10045
+ attr_accessor :meta
10046
+ # The created RoleGrant.
10047
+ attr_accessor :role_grant
10048
+ # Rate limit information.
10049
+ attr_accessor :rate_limit
10050
+
10051
+ def initialize(
10052
+ meta: nil,
10053
+ role_grant: nil,
10054
+ rate_limit: nil
10055
+ )
10056
+ if meta != nil
10057
+ @meta = meta
10058
+ end
10059
+ if role_grant != nil
10060
+ @role_grant = role_grant
10061
+ end
10062
+ if rate_limit != nil
10063
+ @rate_limit = rate_limit
10064
+ end
10065
+ end
10066
+
10067
+ def to_json(options = {})
10068
+ hash = {}
10069
+ self.instance_variables.each do |var|
10070
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10071
+ end
10072
+ hash.to_json
10073
+ end
10074
+ end
10075
+
10076
+ # RoleGrantGetResponse returns a requested RoleGrant.
10077
+ class RoleGrantGetResponse
10078
+ # Reserved for future use.
10079
+ attr_accessor :meta
10080
+ # The requested RoleGrant.
10081
+ attr_accessor :role_grant
10082
+ # Rate limit information.
10083
+ attr_accessor :rate_limit
10084
+
10085
+ def initialize(
10086
+ meta: nil,
10087
+ role_grant: nil,
10088
+ rate_limit: nil
10089
+ )
10090
+ if meta != nil
10091
+ @meta = meta
10092
+ end
10093
+ if role_grant != nil
10094
+ @role_grant = role_grant
10095
+ end
10096
+ if rate_limit != nil
10097
+ @rate_limit = rate_limit
10098
+ end
10099
+ end
10100
+
10101
+ def to_json(options = {})
10102
+ hash = {}
10103
+ self.instance_variables.each do |var|
10104
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10105
+ end
10106
+ hash.to_json
10107
+ end
10108
+ end
10109
+
10110
+ # RoleGrantDeleteResponse returns information about a RoleGrant that was deleted.
10111
+ class RoleGrantDeleteResponse
10112
+ # Reserved for future use.
10113
+ attr_accessor :meta
10114
+ # Rate limit information.
10115
+ attr_accessor :rate_limit
10116
+
10117
+ def initialize(
10118
+ meta: nil,
10119
+ rate_limit: nil
10120
+ )
10121
+ if meta != nil
10122
+ @meta = meta
10123
+ end
10124
+ if rate_limit != nil
10125
+ @rate_limit = rate_limit
10126
+ end
10127
+ end
10128
+
10129
+ def to_json(options = {})
10130
+ hash = {}
10131
+ self.instance_variables.each do |var|
10132
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10133
+ end
10134
+ hash.to_json
10135
+ end
10136
+ end
10137
+
10138
+ # A RoleGrant connects a resource to a role, granting members of the role
10139
+ # access to that resource.
10140
+ class RoleGrant
10141
+ # Unique identifier of the RoleGrant.
10142
+ attr_accessor :id
10143
+ # The id of the resource of this RoleGrant.
10144
+ attr_accessor :resource_id
10145
+ # The id of the attached role of this RoleGrant.
10146
+ attr_accessor :role_id
10147
+
10148
+ def initialize(
10149
+ id: nil,
10150
+ resource_id: nil,
10151
+ role_id: nil
10152
+ )
10153
+ if id != nil
10154
+ @id = id
10155
+ end
10156
+ if resource_id != nil
10157
+ @resource_id = resource_id
10158
+ end
10159
+ if role_id != nil
10160
+ @role_id = role_id
10161
+ end
10162
+ end
10163
+
10164
+ def to_json(options = {})
10165
+ hash = {}
10166
+ self.instance_variables.each do |var|
10167
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10168
+ end
10169
+ hash.to_json
10170
+ end
10171
+ end
10172
+
10173
+ # RoleCreateResponse reports how the Roles were created in the system. It can
10174
+ # communicate partial successes or failures.
10175
+ class RoleCreateResponse
10176
+ # Reserved for future use.
10177
+ attr_accessor :meta
10178
+ # The created Role.
10179
+ attr_accessor :role
10180
+ # Rate limit information.
10181
+ attr_accessor :rate_limit
10182
+
10183
+ def initialize(
10184
+ meta: nil,
10185
+ role: nil,
10186
+ rate_limit: nil
10187
+ )
10188
+ if meta != nil
10189
+ @meta = meta
10190
+ end
10191
+ if role != nil
10192
+ @role = role
10193
+ end
10194
+ if rate_limit != nil
10195
+ @rate_limit = rate_limit
10196
+ end
10197
+ end
10198
+
10199
+ def to_json(options = {})
10200
+ hash = {}
10201
+ self.instance_variables.each do |var|
10202
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10203
+ end
10204
+ hash.to_json
10205
+ end
10206
+ end
10207
+
10208
+ # RoleGetResponse returns a requested Role.
10209
+ class RoleGetResponse
10210
+ # Reserved for future use.
10211
+ attr_accessor :meta
10212
+ # The requested Role.
10213
+ attr_accessor :role
10214
+ # Rate limit information.
10215
+ attr_accessor :rate_limit
10216
+
10217
+ def initialize(
10218
+ meta: nil,
10219
+ role: nil,
10220
+ rate_limit: nil
10221
+ )
10222
+ if meta != nil
10223
+ @meta = meta
10224
+ end
10225
+ if role != nil
10226
+ @role = role
10227
+ end
10228
+ if rate_limit != nil
10229
+ @rate_limit = rate_limit
10230
+ end
10231
+ end
10232
+
10233
+ def to_json(options = {})
10234
+ hash = {}
10235
+ self.instance_variables.each do |var|
10236
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10237
+ end
10238
+ hash.to_json
10239
+ end
10240
+ end
10241
+
10242
+ # RoleUpdateResponse returns the fields of a Role after it has been updated by
10243
+ # a RoleUpdateRequest.
10244
+ class RoleUpdateResponse
10245
+ # Reserved for future use.
10246
+ attr_accessor :meta
10247
+ # The updated Role.
10248
+ attr_accessor :role
10249
+ # Rate limit information.
10250
+ attr_accessor :rate_limit
10251
+
10252
+ def initialize(
10253
+ meta: nil,
10254
+ role: nil,
10255
+ rate_limit: nil
10256
+ )
10257
+ if meta != nil
10258
+ @meta = meta
10259
+ end
10260
+ if role != nil
10261
+ @role = role
10262
+ end
10263
+ if rate_limit != nil
10264
+ @rate_limit = rate_limit
10265
+ end
10266
+ end
10267
+
10268
+ def to_json(options = {})
10269
+ hash = {}
10270
+ self.instance_variables.each do |var|
10271
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10272
+ end
10273
+ hash.to_json
10274
+ end
10275
+ end
10276
+
10277
+ # RoleDeleteResponse returns information about a Role that was deleted.
10278
+ class RoleDeleteResponse
10279
+ # Reserved for future use.
10280
+ attr_accessor :meta
10281
+ # Rate limit information.
10282
+ attr_accessor :rate_limit
10283
+
10284
+ def initialize(
10285
+ meta: nil,
10286
+ rate_limit: nil
10287
+ )
10288
+ if meta != nil
10289
+ @meta = meta
10290
+ end
10291
+ if rate_limit != nil
10292
+ @rate_limit = rate_limit
10293
+ end
10294
+ end
10295
+
10296
+ def to_json(options = {})
10297
+ hash = {}
10298
+ self.instance_variables.each do |var|
10299
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10300
+ end
10301
+ hash.to_json
10302
+ end
10303
+ end
10304
+
10305
+ # A Role is a collection of permissions, and typically corresponds to a team, Active Directory OU, or other organizational unit. Users are granted access to resources by assigning them to roles.
10306
+ class Role
10307
+ # Unique identifier of the Role.
10308
+ attr_accessor :id
10309
+ # Unique human-readable name of the Role.
10310
+ attr_accessor :name
10311
+ # True if the Role is a composite role.
10312
+ attr_accessor :composite
10313
+ # Tags is a map of key, value pairs.
10314
+ attr_accessor :tags
10315
+
10316
+ def initialize(
10317
+ id: nil,
10318
+ name: nil,
10319
+ composite: nil,
10320
+ tags: nil
10321
+ )
10322
+ if id != nil
10323
+ @id = id
10324
+ end
10325
+ if name != nil
10326
+ @name = name
10327
+ end
10328
+ if composite != nil
10329
+ @composite = composite
10330
+ end
10331
+ if tags != nil
10332
+ @tags = tags
10333
+ end
10334
+ end
10335
+
10336
+ def to_json(options = {})
10337
+ hash = {}
10338
+ self.instance_variables.each do |var|
10339
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10340
+ end
10341
+ hash.to_json
10342
+ end
10343
+ end
5364
10344
  end