strongdm 1.0.17 → 1.0.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/doc/SDM/AKS.html +2 -2
  3. data/doc/SDM/AKSBasicAuth.html +2 -2
  4. data/doc/SDM/AKSServiceAccount.html +2 -2
  5. data/doc/SDM/AWS.html +2 -2
  6. data/doc/SDM/AWSStore.html +2 -2
  7. data/doc/SDM/AmazonEKS.html +2 -2
  8. data/doc/SDM/AmazonES.html +2 -2
  9. data/doc/SDM/Athena.html +2 -2
  10. data/doc/SDM/AuroraMysql.html +2 -2
  11. data/doc/SDM/AuroraPostgres.html +2 -2
  12. data/doc/SDM/BigQuery.html +2 -2
  13. data/doc/SDM/Cassandra.html +2 -2
  14. data/doc/SDM/Citus.html +2 -2
  15. data/doc/SDM/Clustrix.html +2 -2
  16. data/doc/SDM/Cockroach.html +2 -2
  17. data/doc/SDM/ControlPanel.html +62 -0
  18. data/doc/SDM/ControlPanelVerifyJWTResponse.html +267 -0
  19. data/doc/SDM/DB2LUW.html +2 -2
  20. data/doc/SDM/DB2i.html +2 -2
  21. data/doc/SDM/Druid.html +2 -2
  22. data/doc/SDM/DynamoDB.html +2 -2
  23. data/doc/SDM/Elastic.html +2 -2
  24. data/doc/SDM/ElasticacheRedis.html +2 -2
  25. data/doc/SDM/Gateway.html +2 -2
  26. data/doc/SDM/GoogleGKE.html +2 -2
  27. data/doc/SDM/Greenplum.html +2 -2
  28. data/doc/SDM/HTTPAuth.html +2 -2
  29. data/doc/SDM/HTTPBasicAuth.html +2 -2
  30. data/doc/SDM/HTTPNoAuth.html +2 -2
  31. data/doc/SDM/Kubernetes.html +2 -2
  32. data/doc/SDM/KubernetesBasicAuth.html +2 -2
  33. data/doc/SDM/KubernetesServiceAccount.html +2 -2
  34. data/doc/SDM/Maria.html +2 -2
  35. data/doc/SDM/Memcached.html +2 -2
  36. data/doc/SDM/Memsql.html +2 -2
  37. data/doc/SDM/MongoHost.html +2 -2
  38. data/doc/SDM/MongoLegacyHost.html +2 -2
  39. data/doc/SDM/MongoLegacyReplicaset.html +2 -2
  40. data/doc/SDM/MongoReplicaSet.html +2 -2
  41. data/doc/SDM/Mysql.html +2 -2
  42. data/doc/SDM/NodeCreateResponse.html +2 -2
  43. data/doc/SDM/NodeDeleteResponse.html +2 -2
  44. data/doc/SDM/NodeGetResponse.html +2 -2
  45. data/doc/SDM/NodeUpdateResponse.html +2 -2
  46. data/doc/SDM/Nodes.html +6 -6
  47. data/doc/SDM/Oracle.html +2 -2
  48. data/doc/SDM/Plumbing.html +586 -422
  49. data/doc/SDM/Postgres.html +2 -2
  50. data/doc/SDM/Presto.html +2 -2
  51. data/doc/SDM/RDP.html +2 -2
  52. data/doc/SDM/Redis.html +2 -2
  53. data/doc/SDM/Redshift.html +2 -2
  54. data/doc/SDM/Relay.html +2 -2
  55. data/doc/SDM/ResourceCreateResponse.html +2 -2
  56. data/doc/SDM/ResourceDeleteResponse.html +2 -2
  57. data/doc/SDM/ResourceGetResponse.html +2 -2
  58. data/doc/SDM/ResourceUpdateResponse.html +2 -2
  59. data/doc/SDM/Resources.html +7 -7
  60. data/doc/SDM/Role.html +2 -2
  61. data/doc/SDM/RoleAttachment.html +2 -2
  62. data/doc/SDM/RoleAttachmentCreateResponse.html +2 -2
  63. data/doc/SDM/RoleAttachmentDeleteResponse.html +2 -2
  64. data/doc/SDM/RoleAttachmentGetResponse.html +2 -2
  65. data/doc/SDM/RoleAttachments.html +5 -5
  66. data/doc/SDM/RoleCreateResponse.html +2 -2
  67. data/doc/SDM/RoleDeleteResponse.html +2 -2
  68. data/doc/SDM/RoleGetResponse.html +2 -2
  69. data/doc/SDM/RoleGrant.html +2 -2
  70. data/doc/SDM/RoleGrantCreateResponse.html +2 -2
  71. data/doc/SDM/RoleGrantDeleteResponse.html +2 -2
  72. data/doc/SDM/RoleGrantGetResponse.html +2 -2
  73. data/doc/SDM/RoleGrants.html +5 -5
  74. data/doc/SDM/RoleUpdateResponse.html +2 -2
  75. data/doc/SDM/Roles.html +6 -6
  76. data/doc/SDM/SQLServer.html +2 -2
  77. data/doc/SDM/SSH.html +2 -2
  78. data/doc/SDM/SSHCert.html +2 -2
  79. data/doc/SDM/SecretStoreCreateResponse.html +2 -2
  80. data/doc/SDM/SecretStoreDeleteResponse.html +2 -2
  81. data/doc/SDM/SecretStoreGetResponse.html +2 -2
  82. data/doc/SDM/SecretStoreUpdateResponse.html +2 -2
  83. data/doc/SDM/SecretStores.html +6 -6
  84. data/doc/SDM/Snowflake.html +2 -2
  85. data/doc/SDM/Sybase.html +2 -2
  86. data/doc/SDM/SybaseIQ.html +2 -2
  87. data/doc/SDM/Teradata.html +2 -2
  88. data/doc/SDM/VaultTLSStore.html +2 -2
  89. data/doc/SDM/VaultTokenStore.html +2 -2
  90. data/doc/V1.html +60 -0
  91. data/doc/V1/PermissionGrants.html +113 -0
  92. data/doc/V1/PermissionGrants/Service.html +119 -0
  93. data/doc/V1/Permissions/Service.html +119 -0
  94. data/doc/created.rid +51 -52
  95. data/doc/index.html +6 -0
  96. data/doc/js/navigation.js.gz +0 -0
  97. data/doc/js/search_index.js +1 -1
  98. data/doc/js/search_index.js.gz +0 -0
  99. data/doc/js/searcher.js.gz +0 -0
  100. data/doc/lib/version.html +1 -1
  101. data/doc/strongdm_gemspec.html +1 -1
  102. data/doc/table_of_contents.html +556 -506
  103. data/lib/grpc/account_attachments_services_pb.rb +4 -4
  104. data/lib/grpc/account_grants_services_pb.rb +4 -4
  105. data/lib/grpc/accounts_services_pb.rb +5 -5
  106. data/lib/grpc/control_panel_pb.rb +11 -0
  107. data/lib/grpc/control_panel_services_pb.rb +3 -1
  108. data/lib/grpc/nodes_services_pb.rb +5 -5
  109. data/lib/grpc/options_pb.rb +5 -1
  110. data/lib/grpc/plumbing.rb +38 -1
  111. data/lib/grpc/resources_services_pb.rb +6 -6
  112. data/lib/grpc/role_attachments_services_pb.rb +4 -4
  113. data/lib/grpc/role_grants_services_pb.rb +4 -4
  114. data/lib/grpc/roles_services_pb.rb +5 -5
  115. data/lib/grpc/secret_stores_services_pb.rb +5 -5
  116. data/lib/grpc/spec_pb.rb +1 -0
  117. data/lib/models/porcelain.rb +34 -0
  118. data/lib/svc.rb +30 -0
  119. data/lib/version +1 -1
  120. data/lib/version.rb +1 -1
  121. metadata +6 -4
  122. data/lib/grpc/demo_provisioning_requests_pb.rb +0 -93
  123. data/lib/grpc/demo_provisioning_requests_services_pb.rb +0 -49
@@ -29,13 +29,13 @@ module V1
29
29
  self.service_name = "v1.AccountAttachments"
30
30
 
31
31
  # Create registers a new AccountAttachment.
32
- rpc :Create, ::V1::AccountAttachmentCreateRequest, ::V1::AccountAttachmentCreateResponse
32
+ rpc :Create, AccountAttachmentCreateRequest, AccountAttachmentCreateResponse
33
33
  # Get reads one AccountAttachment by ID.
34
- rpc :Get, ::V1::AccountAttachmentGetRequest, ::V1::AccountAttachmentGetResponse
34
+ rpc :Get, AccountAttachmentGetRequest, AccountAttachmentGetResponse
35
35
  # Delete removes a AccountAttachment by ID.
36
- rpc :Delete, ::V1::AccountAttachmentDeleteRequest, ::V1::AccountAttachmentDeleteResponse
36
+ rpc :Delete, AccountAttachmentDeleteRequest, AccountAttachmentDeleteResponse
37
37
  # List gets a list of AccountAttachments matching a given set of criteria.
38
- rpc :List, ::V1::AccountAttachmentListRequest, ::V1::AccountAttachmentListResponse
38
+ rpc :List, AccountAttachmentListRequest, AccountAttachmentListResponse
39
39
  end
40
40
 
41
41
  Stub = Service.rpc_stub_class
@@ -29,13 +29,13 @@ module V1
29
29
  self.service_name = "v1.AccountGrants"
30
30
 
31
31
  # Create registers a new AccountGrant.
32
- rpc :Create, ::V1::AccountGrantCreateRequest, ::V1::AccountGrantCreateResponse
32
+ rpc :Create, AccountGrantCreateRequest, AccountGrantCreateResponse
33
33
  # Get reads one AccountGrant by ID.
34
- rpc :Get, ::V1::AccountGrantGetRequest, ::V1::AccountGrantGetResponse
34
+ rpc :Get, AccountGrantGetRequest, AccountGrantGetResponse
35
35
  # Delete removes a AccountGrant by ID.
36
- rpc :Delete, ::V1::AccountGrantDeleteRequest, ::V1::AccountGrantDeleteResponse
36
+ rpc :Delete, AccountGrantDeleteRequest, AccountGrantDeleteResponse
37
37
  # List gets a list of AccountGrants matching a given set of criteria.
38
- rpc :List, ::V1::AccountGrantListRequest, ::V1::AccountGrantListResponse
38
+ rpc :List, AccountGrantListRequest, AccountGrantListResponse
39
39
  end
40
40
 
41
41
  Stub = Service.rpc_stub_class
@@ -31,15 +31,15 @@ module V1
31
31
  self.service_name = "v1.Accounts"
32
32
 
33
33
  # Create registers a new Account.
34
- rpc :Create, ::V1::AccountCreateRequest, ::V1::AccountCreateResponse
34
+ rpc :Create, AccountCreateRequest, AccountCreateResponse
35
35
  # Get reads one Account by ID.
36
- rpc :Get, ::V1::AccountGetRequest, ::V1::AccountGetResponse
36
+ rpc :Get, AccountGetRequest, AccountGetResponse
37
37
  # Update patches a Account by ID.
38
- rpc :Update, ::V1::AccountUpdateRequest, ::V1::AccountUpdateResponse
38
+ rpc :Update, AccountUpdateRequest, AccountUpdateResponse
39
39
  # Delete removes a Account by ID.
40
- rpc :Delete, ::V1::AccountDeleteRequest, ::V1::AccountDeleteResponse
40
+ rpc :Delete, AccountDeleteRequest, AccountDeleteResponse
41
41
  # List gets a list of Accounts matching a given set of criteria.
42
- rpc :List, ::V1::AccountListRequest, ::V1::AccountListResponse
42
+ rpc :List, AccountListRequest, AccountListResponse
43
43
  end
44
44
 
45
45
  Stub = Service.rpc_stub_class
@@ -29,10 +29,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
29
29
  optional :public_key, :string, 2
30
30
  optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
31
31
  end
32
+ add_message "v1.ControlPanelVerifyJWTRequest" do
33
+ optional :meta, :message, 1, "v1.GetRequestMetadata"
34
+ optional :token, :string, 2
35
+ end
36
+ add_message "v1.ControlPanelVerifyJWTResponse" do
37
+ optional :meta, :message, 1, "v1.GetResponseMetadata"
38
+ optional :valid, :bool, 2
39
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
40
+ end
32
41
  end
33
42
  end
34
43
 
35
44
  module V1
36
45
  ControlPanelGetSSHCAPublicKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelGetSSHCAPublicKeyRequest").msgclass
37
46
  ControlPanelGetSSHCAPublicKeyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelGetSSHCAPublicKeyResponse").msgclass
47
+ ControlPanelVerifyJWTRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelVerifyJWTRequest").msgclass
48
+ ControlPanelVerifyJWTResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelVerifyJWTResponse").msgclass
38
49
  end
@@ -29,7 +29,9 @@ module V1
29
29
  self.service_name = "v1.ControlPanel"
30
30
 
31
31
  # GetSSHCAPublicKey retrieves the SSH CA public key.
32
- rpc :GetSSHCAPublicKey, ::V1::ControlPanelGetSSHCAPublicKeyRequest, ::V1::ControlPanelGetSSHCAPublicKeyResponse
32
+ rpc :GetSSHCAPublicKey, ControlPanelGetSSHCAPublicKeyRequest, ControlPanelGetSSHCAPublicKeyResponse
33
+ # VerifyJWT reports whether the given JWT token (x-sdm-token) is valid.
34
+ rpc :VerifyJWT, ControlPanelVerifyJWTRequest, ControlPanelVerifyJWTResponse
33
35
  end
34
36
 
35
37
  Stub = Service.rpc_stub_class
@@ -31,15 +31,15 @@ module V1
31
31
  self.service_name = "v1.Nodes"
32
32
 
33
33
  # Create registers a new Node.
34
- rpc :Create, ::V1::NodeCreateRequest, ::V1::NodeCreateResponse
34
+ rpc :Create, NodeCreateRequest, NodeCreateResponse
35
35
  # Get reads one Node by ID.
36
- rpc :Get, ::V1::NodeGetRequest, ::V1::NodeGetResponse
36
+ rpc :Get, NodeGetRequest, NodeGetResponse
37
37
  # Update patches a Node by ID.
38
- rpc :Update, ::V1::NodeUpdateRequest, ::V1::NodeUpdateResponse
38
+ rpc :Update, NodeUpdateRequest, NodeUpdateResponse
39
39
  # Delete removes a Node by ID.
40
- rpc :Delete, ::V1::NodeDeleteRequest, ::V1::NodeDeleteResponse
40
+ rpc :Delete, NodeDeleteRequest, NodeDeleteResponse
41
41
  # List gets a list of Nodes matching a given set of criteria.
42
- rpc :List, ::V1::NodeListRequest, ::V1::NodeListResponse
42
+ rpc :List, NodeListRequest, NodeListResponse
43
43
  end
44
44
 
45
45
  Stub = Service.rpc_stub_class
@@ -23,6 +23,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
23
23
  optional :method, :string, 1941300
24
24
  optional :url, :string, 1941301
25
25
  end
26
+ add_message "v1.FileOptions" do
27
+ optional :private_sdk, :bool, 1941700
28
+ end
26
29
  add_message "v1.FieldOptions" do
27
30
  optional :name, :string, 1941300
28
31
  optional :sql_nullable, :bool, 1941301
@@ -31,7 +34,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
31
34
  optional :required, :bool, 1941304
32
35
  optional :id_type, :string, 1941305
33
36
  optional :sdk_only, :bool, 1941306
34
- optional :computed, :bool, 1941307
37
+ optional :terraform_computed, :string, 1941307
35
38
  optional :force_new, :bool, 1941308
36
39
  optional :write_only, :bool, 1941309
37
40
  optional :sensitive, :bool, 1941310
@@ -80,6 +83,7 @@ end
80
83
 
81
84
  module V1
82
85
  MethodOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.MethodOptions").msgclass
86
+ FileOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.FileOptions").msgclass
83
87
  FieldOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.FieldOptions").msgclass
84
88
  MessageOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.MessageOptions").msgclass
85
89
  CustomPorcelainMessageOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.CustomPorcelainMessageOptions").msgclass
data/lib/grpc/plumbing.rb CHANGED
@@ -25,7 +25,6 @@ require_relative "./account_attachments_pb"
25
25
  require_relative "./account_grants_pb"
26
26
  require_relative "./accounts_pb"
27
27
  require_relative "./control_panel_pb"
28
- require_relative "./demo_provisioning_requests_pb"
29
28
  require_relative "./drivers_pb"
30
29
  require_relative "./nodes_pb"
31
30
  require_relative "./resources_pb"
@@ -918,6 +917,44 @@ module SDM
918
917
  end
919
918
  items
920
919
  end
920
+ def self.convert_control_panel_verify_jwt_response_to_porcelain(plumbing)
921
+ if plumbing == nil
922
+ return nil
923
+ end
924
+ porcelain = ControlPanelVerifyJWTResponse.new()
925
+ porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
926
+ porcelain.valid = (plumbing.valid)
927
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
928
+ porcelain
929
+ end
930
+
931
+ def self.convert_control_panel_verify_jwt_response_to_plumbing(porcelain)
932
+ if porcelain == nil
933
+ return nil
934
+ end
935
+ plumbing = V1::ControlPanelVerifyJWTResponse.new()
936
+ plumbing.meta = convert_get_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
937
+ plumbing.valid = (porcelain.valid) unless porcelain.valid == nil
938
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
939
+ plumbing
940
+ end
941
+ def self.convert_repeated_control_panel_verify_jwt_response_to_plumbing(porcelains)
942
+ items = Array.new
943
+ porcelains.each do |porcelain|
944
+ plumbing = convert_control_panel_verify_jwt_response_to_plumbing(porcelain)
945
+ items.append(plumbing)
946
+ end
947
+ items
948
+ end
949
+
950
+ def self.convert_repeated_control_panel_verify_jwt_response_to_porcelain(plumbings)
951
+ items = Array.new
952
+ plumbings.each do |plumbing|
953
+ porcelain = convert_control_panel_verify_jwt_response_to_porcelain(plumbing)
954
+ items.append(porcelain)
955
+ end
956
+ items
957
+ end
921
958
  def self.convert_resource_to_plumbing(porcelain)
922
959
  if porcelain == nil
923
960
  return nil
@@ -28,17 +28,17 @@ module V1
28
28
  self.service_name = "v1.Resources"
29
29
 
30
30
  # EnumerateTags gets a list of the filter matching tags.
31
- rpc :EnumerateTags, ::V1::EnumerateTagsRequest, ::V1::EnumerateTagsResponse
31
+ rpc :EnumerateTags, EnumerateTagsRequest, EnumerateTagsResponse
32
32
  # Create registers a new Resource.
33
- rpc :Create, ::V1::ResourceCreateRequest, ::V1::ResourceCreateResponse
33
+ rpc :Create, ResourceCreateRequest, ResourceCreateResponse
34
34
  # Get reads one Resource by ID.
35
- rpc :Get, ::V1::ResourceGetRequest, ::V1::ResourceGetResponse
35
+ rpc :Get, ResourceGetRequest, ResourceGetResponse
36
36
  # Update patches a Resource by ID.
37
- rpc :Update, ::V1::ResourceUpdateRequest, ::V1::ResourceUpdateResponse
37
+ rpc :Update, ResourceUpdateRequest, ResourceUpdateResponse
38
38
  # Delete removes a Resource by ID.
39
- rpc :Delete, ::V1::ResourceDeleteRequest, ::V1::ResourceDeleteResponse
39
+ rpc :Delete, ResourceDeleteRequest, ResourceDeleteResponse
40
40
  # List gets a list of Resources matching a given set of criteria.
41
- rpc :List, ::V1::ResourceListRequest, ::V1::ResourceListResponse
41
+ rpc :List, ResourceListRequest, ResourceListResponse
42
42
  end
43
43
 
44
44
  Stub = Service.rpc_stub_class
@@ -32,13 +32,13 @@ module V1
32
32
  self.service_name = "v1.RoleAttachments"
33
33
 
34
34
  # Create registers a new RoleAttachment.
35
- rpc :Create, ::V1::RoleAttachmentCreateRequest, ::V1::RoleAttachmentCreateResponse
35
+ rpc :Create, RoleAttachmentCreateRequest, RoleAttachmentCreateResponse
36
36
  # Get reads one RoleAttachment by ID.
37
- rpc :Get, ::V1::RoleAttachmentGetRequest, ::V1::RoleAttachmentGetResponse
37
+ rpc :Get, RoleAttachmentGetRequest, RoleAttachmentGetResponse
38
38
  # Delete removes a RoleAttachment by ID.
39
- rpc :Delete, ::V1::RoleAttachmentDeleteRequest, ::V1::RoleAttachmentDeleteResponse
39
+ rpc :Delete, RoleAttachmentDeleteRequest, RoleAttachmentDeleteResponse
40
40
  # List gets a list of RoleAttachments matching a given set of criteria.
41
- rpc :List, ::V1::RoleAttachmentListRequest, ::V1::RoleAttachmentListResponse
41
+ rpc :List, RoleAttachmentListRequest, RoleAttachmentListResponse
42
42
  end
43
43
 
44
44
  Stub = Service.rpc_stub_class
@@ -32,13 +32,13 @@ module V1
32
32
  self.service_name = "v1.RoleGrants"
33
33
 
34
34
  # Create registers a new RoleGrant.
35
- rpc :Create, ::V1::RoleGrantCreateRequest, ::V1::RoleGrantCreateResponse
35
+ rpc :Create, RoleGrantCreateRequest, RoleGrantCreateResponse
36
36
  # Get reads one RoleGrant by ID.
37
- rpc :Get, ::V1::RoleGrantGetRequest, ::V1::RoleGrantGetResponse
37
+ rpc :Get, RoleGrantGetRequest, RoleGrantGetResponse
38
38
  # Delete removes a RoleGrant by ID.
39
- rpc :Delete, ::V1::RoleGrantDeleteRequest, ::V1::RoleGrantDeleteResponse
39
+ rpc :Delete, RoleGrantDeleteRequest, RoleGrantDeleteResponse
40
40
  # List gets a list of RoleGrants matching a given set of criteria.
41
- rpc :List, ::V1::RoleGrantListRequest, ::V1::RoleGrantListResponse
41
+ rpc :List, RoleGrantListRequest, RoleGrantListResponse
42
42
  end
43
43
 
44
44
  Stub = Service.rpc_stub_class
@@ -33,15 +33,15 @@ module V1
33
33
  self.service_name = "v1.Roles"
34
34
 
35
35
  # Create registers a new Role.
36
- rpc :Create, ::V1::RoleCreateRequest, ::V1::RoleCreateResponse
36
+ rpc :Create, RoleCreateRequest, RoleCreateResponse
37
37
  # Get reads one Role by ID.
38
- rpc :Get, ::V1::RoleGetRequest, ::V1::RoleGetResponse
38
+ rpc :Get, RoleGetRequest, RoleGetResponse
39
39
  # Update patches a Role by ID.
40
- rpc :Update, ::V1::RoleUpdateRequest, ::V1::RoleUpdateResponse
40
+ rpc :Update, RoleUpdateRequest, RoleUpdateResponse
41
41
  # Delete removes a Role by ID.
42
- rpc :Delete, ::V1::RoleDeleteRequest, ::V1::RoleDeleteResponse
42
+ rpc :Delete, RoleDeleteRequest, RoleDeleteResponse
43
43
  # List gets a list of Roles matching a given set of criteria.
44
- rpc :List, ::V1::RoleListRequest, ::V1::RoleListResponse
44
+ rpc :List, RoleListRequest, RoleListResponse
45
45
  end
46
46
 
47
47
  Stub = Service.rpc_stub_class
@@ -28,15 +28,15 @@ module V1
28
28
  self.unmarshal_class_method = :decode
29
29
  self.service_name = "v1.SecretStores"
30
30
 
31
- rpc :Create, ::V1::SecretStoreCreateRequest, ::V1::SecretStoreCreateResponse
31
+ rpc :Create, SecretStoreCreateRequest, SecretStoreCreateResponse
32
32
  # Get reads one SecretStore by ID.
33
- rpc :Get, ::V1::SecretStoreGetRequest, ::V1::SecretStoreGetResponse
33
+ rpc :Get, SecretStoreGetRequest, SecretStoreGetResponse
34
34
  # Update patches a SecretStore by ID.
35
- rpc :Update, ::V1::SecretStoreUpdateRequest, ::V1::SecretStoreUpdateResponse
35
+ rpc :Update, SecretStoreUpdateRequest, SecretStoreUpdateResponse
36
36
  # Delete removes a SecretStore by ID.
37
- rpc :Delete, ::V1::SecretStoreDeleteRequest, ::V1::SecretStoreDeleteResponse
37
+ rpc :Delete, SecretStoreDeleteRequest, SecretStoreDeleteResponse
38
38
  # List gets a list of SecretStores matching a given set of criteria.
39
- rpc :List, ::V1::SecretStoreListRequest, ::V1::SecretStoreListResponse
39
+ rpc :List, SecretStoreListRequest, SecretStoreListResponse
40
40
  end
41
41
 
42
42
  Stub = Service.rpc_stub_class
data/lib/grpc/spec_pb.rb CHANGED
@@ -58,6 +58,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
58
58
  optional :cursor, :string, 1
59
59
  optional :page, :int32, 2
60
60
  optional :limit, :int32, 3
61
+ optional :order_by, :string, 4
61
62
  end
62
63
  add_message "v1.ListResponseMetadata" do
63
64
  optional :next_cursor, :string, 1
@@ -683,6 +683,40 @@ module SDM
683
683
  end
684
684
  end
685
685
 
686
+ # ControlPanelVerifyJWTResponse reports whether x-sdm-token is valid.
687
+ class ControlPanelVerifyJWTResponse
688
+ # Reserved for future use.
689
+ attr_accessor :meta
690
+ # Reports if the given token is valid.
691
+ attr_accessor :valid
692
+ # Rate limit information.
693
+ attr_accessor :rate_limit
694
+
695
+ def initialize(
696
+ meta: nil,
697
+ valid: nil,
698
+ rate_limit: nil
699
+ )
700
+ if meta != nil
701
+ @meta = meta
702
+ end
703
+ if valid != nil
704
+ @valid = valid
705
+ end
706
+ if rate_limit != nil
707
+ @rate_limit = rate_limit
708
+ end
709
+ end
710
+
711
+ def to_json(options = {})
712
+ hash = {}
713
+ self.instance_variables.each do |var|
714
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
715
+ end
716
+ hash.to_json
717
+ end
718
+ end
719
+
686
720
  class Athena
687
721
  # Unique identifier of the Resource.
688
722
  attr_accessor :id
data/lib/svc.rb CHANGED
@@ -529,6 +529,36 @@ module SDM
529
529
  resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
530
530
  resp
531
531
  end
532
+
533
+ # VerifyJWT reports whether the given JWT token (x-sdm-token) is valid.
534
+ def verify_jwt(
535
+ token,
536
+ deadline: nil
537
+ )
538
+ req = V1::ControlPanelVerifyJWTRequest.new()
539
+
540
+ req.token = (token)
541
+ tries = 0
542
+ plumbing_response = nil
543
+ loop do
544
+ begin
545
+ plumbing_response = @stub.verify_jwt(req, metadata: @parent.get_metadata("ControlPanel.VerifyJWT", req), deadline: deadline)
546
+ rescue => exception
547
+ if (@parent.shouldRetry(tries, exception))
548
+ tries + +@parent.jitterSleep(tries)
549
+ next
550
+ end
551
+ raise Plumbing::convert_error_to_porcelain(exception)
552
+ end
553
+ break
554
+ end
555
+
556
+ resp = ControlPanelVerifyJWTResponse.new()
557
+ resp.meta = Plumbing::convert_get_response_metadata_to_porcelain(plumbing_response.meta)
558
+ resp.valid = (plumbing_response.valid)
559
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
560
+ resp
561
+ end
532
562
  end
533
563
 
534
564
  # Nodes make up the strongDM network, and allow your users to connect securely to your resources. There are two types of nodes:
data/lib/version CHANGED
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
  #
15
15
  module SDM
16
- VERSION = "1.0.17"
16
+ VERSION = "1.0.18"
17
17
  end
data/lib/version.rb CHANGED
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
  #
15
15
  module SDM
16
- VERSION = "1.0.17"
16
+ VERSION = "1.0.18"
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strongdm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.17
4
+ version: 1.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - strongDM Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-22 00:00:00.000000000 Z
11
+ date: 2021-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -125,6 +125,7 @@ files:
125
125
  - doc/SDM/Cockroach.html
126
126
  - doc/SDM/ControlPanel.html
127
127
  - doc/SDM/ControlPanelGetSSHCAPublicKeyResponse.html
128
+ - doc/SDM/ControlPanelVerifyJWTResponse.html
128
129
  - doc/SDM/CreateResponseMetadata.html
129
130
  - doc/SDM/DB2LUW.html
130
131
  - doc/SDM/DB2i.html
@@ -230,6 +231,9 @@ files:
230
231
  - doc/V1/DemoProvisioningRequests/Service.html
231
232
  - doc/V1/Nodes.html
232
233
  - doc/V1/Nodes/Service.html
234
+ - doc/V1/PermissionGrants.html
235
+ - doc/V1/PermissionGrants/Service.html
236
+ - doc/V1/Permissions/Service.html
233
237
  - doc/V1/Resources.html
234
238
  - doc/V1/Resources/Service.html
235
239
  - doc/V1/RoleAttachments.html
@@ -306,8 +310,6 @@ files:
306
310
  - lib/grpc/accounts_services_pb.rb
307
311
  - lib/grpc/control_panel_pb.rb
308
312
  - lib/grpc/control_panel_services_pb.rb
309
- - lib/grpc/demo_provisioning_requests_pb.rb
310
- - lib/grpc/demo_provisioning_requests_services_pb.rb
311
313
  - lib/grpc/drivers_pb.rb
312
314
  - lib/grpc/nodes_pb.rb
313
315
  - lib/grpc/nodes_services_pb.rb