strongdm 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +201 -0
  3. data/README.md +30 -0
  4. data/doc/Google.html +95 -0
  5. data/doc/Google/Protobuf.html +95 -0
  6. data/doc/LICENSE.html +294 -0
  7. data/doc/Object.html +290 -0
  8. data/doc/README_md.html +128 -0
  9. data/doc/SDM.html +143 -0
  10. data/doc/SDM/AKS.html +347 -0
  11. data/doc/SDM/AKSBasicAuth.html +279 -0
  12. data/doc/SDM/AKSServiceAccount.html +262 -0
  13. data/doc/SDM/AccountAttachment.html +217 -0
  14. data/doc/SDM/AccountAttachmentCreateOptions.html +182 -0
  15. data/doc/SDM/AccountAttachmentCreateResponse.html +216 -0
  16. data/doc/SDM/AccountAttachmentDeleteResponse.html +199 -0
  17. data/doc/SDM/AccountAttachmentGetResponse.html +215 -0
  18. data/doc/SDM/AccountAttachments.html +429 -0
  19. data/doc/SDM/AccountCreateResponse.html +232 -0
  20. data/doc/SDM/AccountDeleteResponse.html +197 -0
  21. data/doc/SDM/AccountGetResponse.html +214 -0
  22. data/doc/SDM/AccountGrant.html +253 -0
  23. data/doc/SDM/AccountGrantCreateResponse.html +215 -0
  24. data/doc/SDM/AccountGrantDeleteResponse.html +198 -0
  25. data/doc/SDM/AccountGrantGetResponse.html +214 -0
  26. data/doc/SDM/AccountGrants.html +425 -0
  27. data/doc/SDM/AccountUpdateResponse.html +214 -0
  28. data/doc/SDM/Accounts.html +492 -0
  29. data/doc/SDM/AlreadyExistsError.html +161 -0
  30. data/doc/SDM/AmazonEKS.html +330 -0
  31. data/doc/SDM/AmazonES.html +296 -0
  32. data/doc/SDM/Athena.html +296 -0
  33. data/doc/SDM/AuroraMysql.html +313 -0
  34. data/doc/SDM/AuroraPostgres.html +330 -0
  35. data/doc/SDM/AuthenticationError.html +161 -0
  36. data/doc/SDM/BadRequestError.html +161 -0
  37. data/doc/SDM/BigQuery.html +296 -0
  38. data/doc/SDM/Cassandra.html +313 -0
  39. data/doc/SDM/Client.html +549 -0
  40. data/doc/SDM/Clustrix.html +313 -0
  41. data/doc/SDM/Cockroach.html +330 -0
  42. data/doc/SDM/CreateResponseMetadata.html +156 -0
  43. data/doc/SDM/DeadlineExceededError.html +161 -0
  44. data/doc/SDM/DeleteResponseMetadata.html +156 -0
  45. data/doc/SDM/Druid.html +296 -0
  46. data/doc/SDM/DynamoDB.html +296 -0
  47. data/doc/SDM/Elastic.html +313 -0
  48. data/doc/SDM/ElasticacheRedis.html +296 -0
  49. data/doc/SDM/Gateway.html +252 -0
  50. data/doc/SDM/GetResponseMetadata.html +156 -0
  51. data/doc/SDM/GoogleGKE.html +296 -0
  52. data/doc/SDM/Greenplum.html +330 -0
  53. data/doc/SDM/HTTPAuth.html +313 -0
  54. data/doc/SDM/HTTPBasicAuth.html +330 -0
  55. data/doc/SDM/HTTPNoAuth.html +296 -0
  56. data/doc/SDM/InternalError.html +161 -0
  57. data/doc/SDM/Kubernetes.html +347 -0
  58. data/doc/SDM/KubernetesBasicAuth.html +279 -0
  59. data/doc/SDM/KubernetesServiceAccount.html +262 -0
  60. data/doc/SDM/Maria.html +313 -0
  61. data/doc/SDM/Memcached.html +262 -0
  62. data/doc/SDM/Memsql.html +313 -0
  63. data/doc/SDM/MongoHost.html +330 -0
  64. data/doc/SDM/MongoLegacyHost.html +347 -0
  65. data/doc/SDM/MongoLegacyReplicaset.html +364 -0
  66. data/doc/SDM/MongoReplicaSet.html +364 -0
  67. data/doc/SDM/Mysql.html +313 -0
  68. data/doc/SDM/NodeCreateResponse.html +232 -0
  69. data/doc/SDM/NodeDeleteResponse.html +197 -0
  70. data/doc/SDM/NodeGetResponse.html +214 -0
  71. data/doc/SDM/NodeUpdateResponse.html +214 -0
  72. data/doc/SDM/Nodes.html +493 -0
  73. data/doc/SDM/NotFoundError.html +161 -0
  74. data/doc/SDM/Oracle.html +330 -0
  75. data/doc/SDM/PermissionError.html +161 -0
  76. data/doc/SDM/Plumbing.html +15821 -0
  77. data/doc/SDM/Postgres.html +330 -0
  78. data/doc/SDM/Presto.html +330 -0
  79. data/doc/SDM/RDP.html +296 -0
  80. data/doc/SDM/RPCError.html +182 -0
  81. data/doc/SDM/RateLimitError.html +183 -0
  82. data/doc/SDM/RateLimitMetadata.html +233 -0
  83. data/doc/SDM/Redis.html +279 -0
  84. data/doc/SDM/Redshift.html +330 -0
  85. data/doc/SDM/Relay.html +216 -0
  86. data/doc/SDM/ResourceCreateResponse.html +214 -0
  87. data/doc/SDM/ResourceDeleteResponse.html +197 -0
  88. data/doc/SDM/ResourceGetResponse.html +214 -0
  89. data/doc/SDM/ResourceUpdateResponse.html +215 -0
  90. data/doc/SDM/Resources.html +482 -0
  91. data/doc/SDM/Role.html +216 -0
  92. data/doc/SDM/RoleAttachment.html +216 -0
  93. data/doc/SDM/RoleAttachmentCreateResponse.html +216 -0
  94. data/doc/SDM/RoleAttachmentDeleteResponse.html +199 -0
  95. data/doc/SDM/RoleAttachmentGetResponse.html +214 -0
  96. data/doc/SDM/RoleAttachments.html +427 -0
  97. data/doc/SDM/RoleCreateResponse.html +215 -0
  98. data/doc/SDM/RoleDeleteResponse.html +197 -0
  99. data/doc/SDM/RoleGetResponse.html +214 -0
  100. data/doc/SDM/RoleGrant.html +214 -0
  101. data/doc/SDM/RoleGrantCreateResponse.html +215 -0
  102. data/doc/SDM/RoleGrantDeleteResponse.html +198 -0
  103. data/doc/SDM/RoleGrantGetResponse.html +214 -0
  104. data/doc/SDM/RoleGrants.html +427 -0
  105. data/doc/SDM/RoleUpdateResponse.html +215 -0
  106. data/doc/SDM/Roles.html +490 -0
  107. data/doc/SDM/SQLServer.html +347 -0
  108. data/doc/SDM/SSH.html +296 -0
  109. data/doc/SDM/Service.html +215 -0
  110. data/doc/SDM/Snowflake.html +313 -0
  111. data/doc/SDM/Sybase.html +296 -0
  112. data/doc/SDM/SybaseIQ.html +296 -0
  113. data/doc/SDM/Teradata.html +296 -0
  114. data/doc/SDM/UpdateResponseMetadata.html +156 -0
  115. data/doc/SDM/User.html +248 -0
  116. data/doc/V1.html +864 -0
  117. data/doc/V1/AccountAttachments.html +109 -0
  118. data/doc/V1/AccountAttachments/Service.html +116 -0
  119. data/doc/V1/AccountGrants.html +109 -0
  120. data/doc/V1/AccountGrants/Service.html +117 -0
  121. data/doc/V1/Accounts.html +109 -0
  122. data/doc/V1/Accounts/Service.html +122 -0
  123. data/doc/V1/Nodes.html +109 -0
  124. data/doc/V1/Nodes/Service.html +124 -0
  125. data/doc/V1/Resources.html +109 -0
  126. data/doc/V1/Resources/Service.html +113 -0
  127. data/doc/V1/RoleAttachments.html +109 -0
  128. data/doc/V1/RoleAttachments/Service.html +119 -0
  129. data/doc/V1/RoleGrants.html +109 -0
  130. data/doc/V1/RoleGrants/Service.html +119 -0
  131. data/doc/V1/Roles.html +109 -0
  132. data/doc/V1/Roles/Service.html +120 -0
  133. data/doc/created.rid +37 -0
  134. data/doc/css/fonts.css +167 -0
  135. data/doc/css/rdoc.css +590 -0
  136. data/doc/examples/Gemfile.html +95 -0
  137. data/doc/examples/Gemfile_lock.html +112 -0
  138. data/doc/examples/README_md.html +95 -0
  139. data/doc/fonts/Lato-Light.ttf +0 -0
  140. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  141. data/doc/fonts/Lato-Regular.ttf +0 -0
  142. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  143. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  144. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  145. data/doc/images/add.png +0 -0
  146. data/doc/images/arrow_up.png +0 -0
  147. data/doc/images/brick.png +0 -0
  148. data/doc/images/brick_link.png +0 -0
  149. data/doc/images/bug.png +0 -0
  150. data/doc/images/bullet_black.png +0 -0
  151. data/doc/images/bullet_toggle_minus.png +0 -0
  152. data/doc/images/bullet_toggle_plus.png +0 -0
  153. data/doc/images/date.png +0 -0
  154. data/doc/images/delete.png +0 -0
  155. data/doc/images/find.png +0 -0
  156. data/doc/images/loadingAnimation.gif +0 -0
  157. data/doc/images/macFFBgHack.png +0 -0
  158. data/doc/images/package.png +0 -0
  159. data/doc/images/page_green.png +0 -0
  160. data/doc/images/page_white_text.png +0 -0
  161. data/doc/images/page_white_width.png +0 -0
  162. data/doc/images/plugin.png +0 -0
  163. data/doc/images/ruby.png +0 -0
  164. data/doc/images/tag_blue.png +0 -0
  165. data/doc/images/tag_green.png +0 -0
  166. data/doc/images/transparent.png +0 -0
  167. data/doc/images/wrench.png +0 -0
  168. data/doc/images/wrench_orange.png +0 -0
  169. data/doc/images/zoom.png +0 -0
  170. data/doc/index.html +353 -0
  171. data/doc/js/darkfish.js +161 -0
  172. data/doc/js/jquery.js +4 -0
  173. data/doc/js/navigation.js +142 -0
  174. data/doc/js/navigation.js.gz +0 -0
  175. data/doc/js/search.js +109 -0
  176. data/doc/js/search_index.js +1 -0
  177. data/doc/js/search_index.js.gz +0 -0
  178. data/doc/js/searcher.js +228 -0
  179. data/doc/js/searcher.js.gz +0 -0
  180. data/doc/lib/version.html +98 -0
  181. data/doc/strongdm_gemspec.html +117 -0
  182. data/doc/table_of_contents.html +3002 -0
  183. data/examples/Gemfile +3 -0
  184. data/examples/Gemfile.lock +14 -0
  185. data/examples/README.md +5 -0
  186. data/examples/listUsers.rb +21 -0
  187. data/examples/panicButton.rb +154 -0
  188. data/lib/errors/errors.rb +85 -0
  189. data/lib/grpc/account_attachments_pb.rb +84 -0
  190. data/lib/grpc/account_attachments_services_pb.rb +44 -0
  191. data/lib/grpc/account_grants_pb.rb +82 -0
  192. data/lib/grpc/account_grants_services_pb.rb +44 -0
  193. data/lib/grpc/accounts_pb.rb +107 -0
  194. data/lib/grpc/accounts_services_pb.rb +49 -0
  195. data/lib/grpc/drivers_pb.rb +601 -0
  196. data/lib/grpc/nodes_pb.rb +107 -0
  197. data/lib/grpc/nodes_services_pb.rb +49 -0
  198. data/lib/grpc/options_pb.rb +60 -0
  199. data/lib/grpc/plumbing.rb +4283 -0
  200. data/lib/grpc/protoc-gen-swagger/options/annotations_pb.rb +15 -0
  201. data/lib/grpc/resources_pb.rb +85 -0
  202. data/lib/grpc/resources_services_pb.rb +45 -0
  203. data/lib/grpc/role_attachments_pb.rb +79 -0
  204. data/lib/grpc/role_attachments_services_pb.rb +47 -0
  205. data/lib/grpc/role_grants_pb.rb +79 -0
  206. data/lib/grpc/role_grants_services_pb.rb +47 -0
  207. data/lib/grpc/roles_pb.rb +91 -0
  208. data/lib/grpc/roles_services_pb.rb +50 -0
  209. data/lib/grpc/spec_pb.rb +95 -0
  210. data/lib/models/porcelain.rb +4033 -0
  211. data/lib/strongdm.rb +128 -0
  212. data/lib/svc.rb +1331 -0
  213. data/lib/version +3 -0
  214. data/lib/version.rb +17 -0
  215. data/strongdm.gemspec +23 -0
  216. metadata +318 -0
@@ -0,0 +1,50 @@
1
+ # Copyright 2020 StrongDM Inc
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
16
+ # Source: roles.proto for package 'v1'
17
+
18
+ require 'grpc'
19
+ require 'roles_pb'
20
+
21
+ module V1
22
+ module Roles
23
+ # Roles are tools for controlling user access to resources. Each Role holds a
24
+ # list of resources which they grant access to. Composite roles are a special
25
+ # type of Role which have no resource associations of their own, but instead
26
+ # grant access to the combined resources associated with a set of child roles.
27
+ # Each user can be a member of one Role or composite role.
28
+ class Service
29
+
30
+ include GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'v1.Roles'
35
+
36
+ # Create registers a new Role.
37
+ rpc :Create, RoleCreateRequest, RoleCreateResponse
38
+ # Get reads one Role by ID.
39
+ rpc :Get, RoleGetRequest, RoleGetResponse
40
+ # Update patches a Role by ID.
41
+ rpc :Update, RoleUpdateRequest, RoleUpdateResponse
42
+ # Delete removes a Role by ID.
43
+ rpc :Delete, RoleDeleteRequest, RoleDeleteResponse
44
+ # List gets a list of Roles matching a given set of criteria.
45
+ rpc :List, RoleListRequest, RoleListResponse
46
+ end
47
+
48
+ Stub = Service.rpc_stub_class
49
+ end
50
+ end
@@ -0,0 +1,95 @@
1
+ # Copyright 2020 StrongDM Inc
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
16
+ # source: spec.proto
17
+
18
+ require 'google/protobuf'
19
+
20
+ require 'options_pb'
21
+ require 'protoc-gen-swagger/options/annotations_pb'
22
+ require 'google/protobuf/timestamp_pb'
23
+ Google::Protobuf::DescriptorPool.generated_pool.build do
24
+ add_file("spec.proto", :syntax => :proto3) do
25
+ add_message "v1.AlreadyExistsError" do
26
+ optional :entity, :string, 1
27
+ end
28
+ add_message "v1.NotFoundError" do
29
+ optional :entity, :string, 1
30
+ end
31
+ add_message "v1.BadRequestError" do
32
+ end
33
+ add_message "v1.AuthenticationError" do
34
+ end
35
+ add_message "v1.PermissionError" do
36
+ end
37
+ add_message "v1.InternalError" do
38
+ end
39
+ add_message "v1.RateLimitError" do
40
+ optional :rate_limit, :message, 1, "v1.RateLimitMetadata"
41
+ end
42
+ add_message "v1.CreateRequestMetadata" do
43
+ end
44
+ add_message "v1.CreateResponseMetadata" do
45
+ end
46
+ add_message "v1.GetRequestMetadata" do
47
+ end
48
+ add_message "v1.GetResponseMetadata" do
49
+ end
50
+ add_message "v1.UpdateRequestMetadata" do
51
+ end
52
+ add_message "v1.UpdateResponseMetadata" do
53
+ end
54
+ add_message "v1.DeleteRequestMetadata" do
55
+ end
56
+ add_message "v1.DeleteResponseMetadata" do
57
+ end
58
+ add_message "v1.ListRequestMetadata" do
59
+ optional :cursor, :string, 1
60
+ optional :page, :int32, 2
61
+ optional :limit, :int32, 3
62
+ end
63
+ add_message "v1.ListResponseMetadata" do
64
+ optional :next_cursor, :string, 1
65
+ optional :total, :int32, 2
66
+ end
67
+ add_message "v1.RateLimitMetadata" do
68
+ optional :limit, :int64, 1
69
+ optional :remaining, :int64, 2
70
+ optional :reset_at, :message, 3, "google.protobuf.Timestamp"
71
+ optional :bucket, :string, 4
72
+ end
73
+ end
74
+ end
75
+
76
+ module V1
77
+ AlreadyExistsError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AlreadyExistsError").msgclass
78
+ NotFoundError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.NotFoundError").msgclass
79
+ BadRequestError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.BadRequestError").msgclass
80
+ AuthenticationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AuthenticationError").msgclass
81
+ PermissionError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.PermissionError").msgclass
82
+ InternalError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.InternalError").msgclass
83
+ RateLimitError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RateLimitError").msgclass
84
+ CreateRequestMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.CreateRequestMetadata").msgclass
85
+ CreateResponseMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.CreateResponseMetadata").msgclass
86
+ GetRequestMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.GetRequestMetadata").msgclass
87
+ GetResponseMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.GetResponseMetadata").msgclass
88
+ UpdateRequestMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.UpdateRequestMetadata").msgclass
89
+ UpdateResponseMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.UpdateResponseMetadata").msgclass
90
+ DeleteRequestMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DeleteRequestMetadata").msgclass
91
+ DeleteResponseMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.DeleteResponseMetadata").msgclass
92
+ ListRequestMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ListRequestMetadata").msgclass
93
+ ListResponseMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ListResponseMetadata").msgclass
94
+ RateLimitMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RateLimitMetadata").msgclass
95
+ end
@@ -0,0 +1,4033 @@
1
+ # Copyright 2020 StrongDM Inc
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+
16
+ # This file was generated by protogen. DO NOT EDIT.
17
+
18
+ module SDM
19
+ # CreateResponseMetadata is reserved for future use.
20
+ class CreateResponseMetadata
21
+ def initialize(
22
+ )
23
+ end
24
+ end
25
+ # GetResponseMetadata is reserved for future use.
26
+ class GetResponseMetadata
27
+ def initialize(
28
+ )
29
+ end
30
+ end
31
+ # UpdateResponseMetadata is reserved for future use.
32
+ class UpdateResponseMetadata
33
+ def initialize(
34
+ )
35
+ end
36
+ end
37
+ # DeleteResponseMetadata is reserved for future use.
38
+ class DeleteResponseMetadata
39
+ def initialize(
40
+ )
41
+ end
42
+ end
43
+ # RateLimitMetadata contains information about remaining requests avaialable
44
+ # to the user over some timeframe.
45
+ class RateLimitMetadata
46
+ # How many total requests the user/token is authorized to make before being
47
+ # rate limited.
48
+ attr_accessor :limit
49
+ # How many remaining requests out of the limit are still avaialable.
50
+ attr_accessor :remaining
51
+ # The time when remaining will be reset to limit.
52
+ attr_accessor :reset_at
53
+ # The bucket this user/token is associated with, which may be shared between
54
+ # multiple users/tokens.
55
+ attr_accessor :bucket
56
+ def initialize(
57
+ limit:nil \
58
+ ,
59
+ remaining:nil \
60
+ ,
61
+ reset_at:nil \
62
+ ,
63
+ bucket:nil \
64
+ )
65
+ if limit != nil
66
+ @limit = limit
67
+ end
68
+ if remaining != nil
69
+ @remaining = remaining
70
+ end
71
+ if reset_at != nil
72
+ @reset_at = reset_at
73
+ end
74
+ if bucket != nil
75
+ @bucket = bucket
76
+ end
77
+ end
78
+ end
79
+ # AccountAttachmentCreateOptions specifies extra options for creating an
80
+ # AccountAttachment.
81
+ class AccountAttachmentCreateOptions
82
+ # Overwrite clears all account grants before the attachment.
83
+ attr_accessor :overwrite
84
+ def initialize(
85
+ overwrite:nil \
86
+ )
87
+ if overwrite != nil
88
+ @overwrite = overwrite
89
+ end
90
+ end
91
+ end
92
+ # AccountAttachmentCreateResponse reports how the AccountAttachments were created in the system.
93
+ class AccountAttachmentCreateResponse
94
+ # Reserved for future use.
95
+ attr_accessor :meta
96
+ # The created AccountAttachment.
97
+ attr_accessor :account_attachment
98
+ # Rate limit information.
99
+ attr_accessor :rate_limit
100
+ def initialize(
101
+ meta:nil \
102
+ ,
103
+ account_attachment:nil \
104
+ ,
105
+ rate_limit:nil \
106
+ )
107
+ if meta != nil
108
+ @meta = meta
109
+ end
110
+ if account_attachment != nil
111
+ @account_attachment = account_attachment
112
+ end
113
+ if rate_limit != nil
114
+ @rate_limit = rate_limit
115
+ end
116
+ end
117
+ end
118
+ # AccountAttachmentGetResponse returns a requested AccountAttachment.
119
+ class AccountAttachmentGetResponse
120
+ # Reserved for future use.
121
+ attr_accessor :meta
122
+ # The requested AccountAttachment.
123
+ attr_accessor :account_attachment
124
+ # Rate limit information.
125
+ attr_accessor :rate_limit
126
+ def initialize(
127
+ meta:nil \
128
+ ,
129
+ account_attachment:nil \
130
+ ,
131
+ rate_limit:nil \
132
+ )
133
+ if meta != nil
134
+ @meta = meta
135
+ end
136
+ if account_attachment != nil
137
+ @account_attachment = account_attachment
138
+ end
139
+ if rate_limit != nil
140
+ @rate_limit = rate_limit
141
+ end
142
+ end
143
+ end
144
+ # AccountAttachmentDeleteResponse returns information about a AccountAttachment that was deleted.
145
+ class AccountAttachmentDeleteResponse
146
+ # Reserved for future use.
147
+ attr_accessor :meta
148
+ # Rate limit information.
149
+ attr_accessor :rate_limit
150
+ def initialize(
151
+ meta:nil \
152
+ ,
153
+ rate_limit:nil \
154
+ )
155
+ if meta != nil
156
+ @meta = meta
157
+ end
158
+ if rate_limit != nil
159
+ @rate_limit = rate_limit
160
+ end
161
+ end
162
+ end
163
+ # AccountAttachments assign an account to a role.
164
+ class AccountAttachment
165
+ # Unique identifier of the AccountAttachment.
166
+ attr_accessor :id
167
+ # The id of the account of this AccountAttachment.
168
+ attr_accessor :account_id
169
+ # The id of the attached role of this AccountAttachment.
170
+ attr_accessor :role_id
171
+ def initialize(
172
+ id:nil \
173
+ ,
174
+ account_id:nil \
175
+ ,
176
+ role_id:nil \
177
+ )
178
+ if id != nil
179
+ @id = id
180
+ end
181
+ if account_id != nil
182
+ @account_id = account_id
183
+ end
184
+ if role_id != nil
185
+ @role_id = role_id
186
+ end
187
+ end
188
+ end
189
+ # AccountGrantCreateResponse reports how the AccountGrants were created in the system.
190
+ class AccountGrantCreateResponse
191
+ # Reserved for future use.
192
+ attr_accessor :meta
193
+ # The created AccountGrant.
194
+ attr_accessor :account_grant
195
+ # Rate limit information.
196
+ attr_accessor :rate_limit
197
+ def initialize(
198
+ meta:nil \
199
+ ,
200
+ account_grant:nil \
201
+ ,
202
+ rate_limit:nil \
203
+ )
204
+ if meta != nil
205
+ @meta = meta
206
+ end
207
+ if account_grant != nil
208
+ @account_grant = account_grant
209
+ end
210
+ if rate_limit != nil
211
+ @rate_limit = rate_limit
212
+ end
213
+ end
214
+ end
215
+ # AccountGrantGetResponse returns a requested AccountGrant.
216
+ class AccountGrantGetResponse
217
+ # Reserved for future use.
218
+ attr_accessor :meta
219
+ # The requested AccountGrant.
220
+ attr_accessor :account_grant
221
+ # Rate limit information.
222
+ attr_accessor :rate_limit
223
+ def initialize(
224
+ meta:nil \
225
+ ,
226
+ account_grant:nil \
227
+ ,
228
+ rate_limit:nil \
229
+ )
230
+ if meta != nil
231
+ @meta = meta
232
+ end
233
+ if account_grant != nil
234
+ @account_grant = account_grant
235
+ end
236
+ if rate_limit != nil
237
+ @rate_limit = rate_limit
238
+ end
239
+ end
240
+ end
241
+ # AccountGrantDeleteResponse returns information about a AccountGrant that was deleted.
242
+ class AccountGrantDeleteResponse
243
+ # Reserved for future use.
244
+ attr_accessor :meta
245
+ # Rate limit information.
246
+ attr_accessor :rate_limit
247
+ def initialize(
248
+ meta:nil \
249
+ ,
250
+ rate_limit:nil \
251
+ )
252
+ if meta != nil
253
+ @meta = meta
254
+ end
255
+ if rate_limit != nil
256
+ @rate_limit = rate_limit
257
+ end
258
+ end
259
+ end
260
+ # AccountGrants connect a resource directly to an account, giving the account the permission to connect to that resource.
261
+ class AccountGrant
262
+ # Unique identifier of the AccountGrant.
263
+ attr_accessor :id
264
+ # The id of the composite role of this AccountGrant.
265
+ attr_accessor :resource_id
266
+ # The id of the attached role of this AccountGrant.
267
+ attr_accessor :account_id
268
+ # The timestamp when the resource will be granted. Optional. Both start_at
269
+ # and end_at must be defined together, or not defined at all.
270
+ attr_accessor :start_from
271
+ # The timestamp when the resource grant will expire. Optional. Both
272
+ # start_at and end_at must be defined together, or not defined at all.
273
+ attr_accessor :valid_until
274
+ def initialize(
275
+ id:nil \
276
+ ,
277
+ resource_id:nil \
278
+ ,
279
+ account_id:nil \
280
+ ,
281
+ start_from:nil \
282
+ ,
283
+ valid_until:nil \
284
+ )
285
+ if id != nil
286
+ @id = id
287
+ end
288
+ if resource_id != nil
289
+ @resource_id = resource_id
290
+ end
291
+ if account_id != nil
292
+ @account_id = account_id
293
+ end
294
+ if start_from != nil
295
+ @start_from = start_from
296
+ end
297
+ if valid_until != nil
298
+ @valid_until = valid_until
299
+ end
300
+ end
301
+ end
302
+ # AccountCreateResponse reports how the Accounts were created in the system.
303
+ class AccountCreateResponse
304
+ # Reserved for future use.
305
+ attr_accessor :meta
306
+ # The created Account.
307
+ attr_accessor :account
308
+ # The auth token generated for the Account. The Account will use this token to
309
+ # authenticate with the strongDM API.
310
+ attr_accessor :token
311
+ # Rate limit information.
312
+ attr_accessor :rate_limit
313
+ def initialize(
314
+ meta:nil \
315
+ ,
316
+ account:nil \
317
+ ,
318
+ token:nil \
319
+ ,
320
+ rate_limit:nil \
321
+ )
322
+ if meta != nil
323
+ @meta = meta
324
+ end
325
+ if account != nil
326
+ @account = account
327
+ end
328
+ if token != nil
329
+ @token = token
330
+ end
331
+ if rate_limit != nil
332
+ @rate_limit = rate_limit
333
+ end
334
+ end
335
+ end
336
+ # AccountGetResponse returns a requested Account.
337
+ class AccountGetResponse
338
+ # Reserved for future use.
339
+ attr_accessor :meta
340
+ # The requested Account.
341
+ attr_accessor :account
342
+ # Rate limit information.
343
+ attr_accessor :rate_limit
344
+ def initialize(
345
+ meta:nil \
346
+ ,
347
+ account:nil \
348
+ ,
349
+ rate_limit:nil \
350
+ )
351
+ if meta != nil
352
+ @meta = meta
353
+ end
354
+ if account != nil
355
+ @account = account
356
+ end
357
+ if rate_limit != nil
358
+ @rate_limit = rate_limit
359
+ end
360
+ end
361
+ end
362
+ # AccountUpdateResponse returns the fields of a Account after it has been updated by
363
+ # a AccountUpdateRequest.
364
+ class AccountUpdateResponse
365
+ # Reserved for future use.
366
+ attr_accessor :meta
367
+ # The updated Account.
368
+ attr_accessor :account
369
+ # Rate limit information.
370
+ attr_accessor :rate_limit
371
+ def initialize(
372
+ meta:nil \
373
+ ,
374
+ account:nil \
375
+ ,
376
+ rate_limit:nil \
377
+ )
378
+ if meta != nil
379
+ @meta = meta
380
+ end
381
+ if account != nil
382
+ @account = account
383
+ end
384
+ if rate_limit != nil
385
+ @rate_limit = rate_limit
386
+ end
387
+ end
388
+ end
389
+ # AccountDeleteResponse returns information about a Account that was deleted.
390
+ class AccountDeleteResponse
391
+ # Reserved for future use.
392
+ attr_accessor :meta
393
+ # Rate limit information.
394
+ attr_accessor :rate_limit
395
+ def initialize(
396
+ meta:nil \
397
+ ,
398
+ rate_limit:nil \
399
+ )
400
+ if meta != nil
401
+ @meta = meta
402
+ end
403
+ if rate_limit != nil
404
+ @rate_limit = rate_limit
405
+ end
406
+ end
407
+ end
408
+ # A User can connect to resources they are granted directly, or granted
409
+ # via roles.
410
+ class User
411
+ # Unique identifier of the User.
412
+ attr_accessor :id
413
+ # The User's email address. Must be unique.
414
+ attr_accessor :email
415
+ # The User's first name.
416
+ attr_accessor :first_name
417
+ # The User's last name.
418
+ attr_accessor :last_name
419
+ # The User's suspended state.
420
+ attr_accessor :suspended
421
+ def initialize(
422
+ id:nil \
423
+ ,
424
+ email:nil \
425
+ ,
426
+ first_name:nil \
427
+ ,
428
+ last_name:nil \
429
+ ,
430
+ suspended:nil \
431
+ )
432
+ if id != nil
433
+ @id = id
434
+ end
435
+ if email != nil
436
+ @email = email
437
+ end
438
+ if first_name != nil
439
+ @first_name = first_name
440
+ end
441
+ if last_name != nil
442
+ @last_name = last_name
443
+ end
444
+ if suspended != nil
445
+ @suspended = suspended
446
+ end
447
+ end
448
+ end
449
+ # A Service is a service account that can connect to resources they are granted
450
+ # directly, or granted via roles. Services are typically automated jobs.
451
+ class Service
452
+ # Unique identifier of the Service.
453
+ attr_accessor :id
454
+ # Unique human-readable name of the Service.
455
+ attr_accessor :name
456
+ # The Service's suspended state.
457
+ attr_accessor :suspended
458
+ def initialize(
459
+ id:nil \
460
+ ,
461
+ name:nil \
462
+ ,
463
+ suspended:nil \
464
+ )
465
+ if id != nil
466
+ @id = id
467
+ end
468
+ if name != nil
469
+ @name = name
470
+ end
471
+ if suspended != nil
472
+ @suspended = suspended
473
+ end
474
+ end
475
+ end
476
+
477
+ class Athena
478
+ # Unique identifier of the Resource.
479
+ attr_accessor :id
480
+ # Unique human-readable name of the Resource.
481
+ attr_accessor :name
482
+ # True if the datasource is reachable and the credentials are valid.
483
+ attr_accessor :healthy
484
+
485
+ attr_accessor :access_key
486
+
487
+ attr_accessor :secret_access_key
488
+
489
+ attr_accessor :output
490
+
491
+ attr_accessor :port_override
492
+
493
+ attr_accessor :region
494
+ def initialize(
495
+ id:nil \
496
+ ,
497
+ name:nil \
498
+ ,
499
+ healthy:nil \
500
+ ,
501
+ access_key:nil \
502
+ ,
503
+ secret_access_key:nil \
504
+ ,
505
+ output:nil \
506
+ ,
507
+ port_override:nil \
508
+ ,
509
+ region:nil \
510
+ )
511
+ if id != nil
512
+ @id = id
513
+ end
514
+ if name != nil
515
+ @name = name
516
+ end
517
+ if healthy != nil
518
+ @healthy = healthy
519
+ end
520
+ if access_key != nil
521
+ @access_key = access_key
522
+ end
523
+ if secret_access_key != nil
524
+ @secret_access_key = secret_access_key
525
+ end
526
+ if output != nil
527
+ @output = output
528
+ end
529
+ if port_override != nil
530
+ @port_override = port_override
531
+ end
532
+ if region != nil
533
+ @region = region
534
+ end
535
+ end
536
+ end
537
+
538
+ class BigQuery
539
+ # Unique identifier of the Resource.
540
+ attr_accessor :id
541
+ # Unique human-readable name of the Resource.
542
+ attr_accessor :name
543
+ # True if the datasource is reachable and the credentials are valid.
544
+ attr_accessor :healthy
545
+
546
+ attr_accessor :private_key
547
+
548
+ attr_accessor :project
549
+
550
+ attr_accessor :port_override
551
+
552
+ attr_accessor :endpoint
553
+
554
+ attr_accessor :username
555
+ def initialize(
556
+ id:nil \
557
+ ,
558
+ name:nil \
559
+ ,
560
+ healthy:nil \
561
+ ,
562
+ private_key:nil \
563
+ ,
564
+ project:nil \
565
+ ,
566
+ port_override:nil \
567
+ ,
568
+ endpoint:nil \
569
+ ,
570
+ username:nil \
571
+ )
572
+ if id != nil
573
+ @id = id
574
+ end
575
+ if name != nil
576
+ @name = name
577
+ end
578
+ if healthy != nil
579
+ @healthy = healthy
580
+ end
581
+ if private_key != nil
582
+ @private_key = private_key
583
+ end
584
+ if project != nil
585
+ @project = project
586
+ end
587
+ if port_override != nil
588
+ @port_override = port_override
589
+ end
590
+ if endpoint != nil
591
+ @endpoint = endpoint
592
+ end
593
+ if username != nil
594
+ @username = username
595
+ end
596
+ end
597
+ end
598
+
599
+ class Cassandra
600
+ # Unique identifier of the Resource.
601
+ attr_accessor :id
602
+ # Unique human-readable name of the Resource.
603
+ attr_accessor :name
604
+ # True if the datasource is reachable and the credentials are valid.
605
+ attr_accessor :healthy
606
+
607
+ attr_accessor :hostname
608
+
609
+ attr_accessor :username
610
+
611
+ attr_accessor :password
612
+
613
+ attr_accessor :port_override
614
+
615
+ attr_accessor :port
616
+
617
+ attr_accessor :tls_required
618
+ def initialize(
619
+ id:nil \
620
+ ,
621
+ name:nil \
622
+ ,
623
+ healthy:nil \
624
+ ,
625
+ hostname:nil \
626
+ ,
627
+ username:nil \
628
+ ,
629
+ password:nil \
630
+ ,
631
+ port_override:nil \
632
+ ,
633
+ port:nil \
634
+ ,
635
+ tls_required:nil \
636
+ )
637
+ if id != nil
638
+ @id = id
639
+ end
640
+ if name != nil
641
+ @name = name
642
+ end
643
+ if healthy != nil
644
+ @healthy = healthy
645
+ end
646
+ if hostname != nil
647
+ @hostname = hostname
648
+ end
649
+ if username != nil
650
+ @username = username
651
+ end
652
+ if password != nil
653
+ @password = password
654
+ end
655
+ if port_override != nil
656
+ @port_override = port_override
657
+ end
658
+ if port != nil
659
+ @port = port
660
+ end
661
+ if tls_required != nil
662
+ @tls_required = tls_required
663
+ end
664
+ end
665
+ end
666
+
667
+ class Druid
668
+ # Unique identifier of the Resource.
669
+ attr_accessor :id
670
+ # Unique human-readable name of the Resource.
671
+ attr_accessor :name
672
+ # True if the datasource is reachable and the credentials are valid.
673
+ attr_accessor :healthy
674
+
675
+ attr_accessor :hostname
676
+
677
+ attr_accessor :port_override
678
+
679
+ attr_accessor :username
680
+
681
+ attr_accessor :password
682
+
683
+ attr_accessor :port
684
+ def initialize(
685
+ id:nil \
686
+ ,
687
+ name:nil \
688
+ ,
689
+ healthy:nil \
690
+ ,
691
+ hostname:nil \
692
+ ,
693
+ port_override:nil \
694
+ ,
695
+ username:nil \
696
+ ,
697
+ password:nil \
698
+ ,
699
+ port:nil \
700
+ )
701
+ if id != nil
702
+ @id = id
703
+ end
704
+ if name != nil
705
+ @name = name
706
+ end
707
+ if healthy != nil
708
+ @healthy = healthy
709
+ end
710
+ if hostname != nil
711
+ @hostname = hostname
712
+ end
713
+ if port_override != nil
714
+ @port_override = port_override
715
+ end
716
+ if username != nil
717
+ @username = username
718
+ end
719
+ if password != nil
720
+ @password = password
721
+ end
722
+ if port != nil
723
+ @port = port
724
+ end
725
+ end
726
+ end
727
+
728
+ class DynamoDB
729
+ # Unique identifier of the Resource.
730
+ attr_accessor :id
731
+ # Unique human-readable name of the Resource.
732
+ attr_accessor :name
733
+ # True if the datasource is reachable and the credentials are valid.
734
+ attr_accessor :healthy
735
+
736
+ attr_accessor :access_key
737
+
738
+ attr_accessor :secret_access_key
739
+
740
+ attr_accessor :region
741
+
742
+ attr_accessor :endpoint
743
+
744
+ attr_accessor :port_override
745
+ def initialize(
746
+ id:nil \
747
+ ,
748
+ name:nil \
749
+ ,
750
+ healthy:nil \
751
+ ,
752
+ access_key:nil \
753
+ ,
754
+ secret_access_key:nil \
755
+ ,
756
+ region:nil \
757
+ ,
758
+ endpoint:nil \
759
+ ,
760
+ port_override:nil \
761
+ )
762
+ if id != nil
763
+ @id = id
764
+ end
765
+ if name != nil
766
+ @name = name
767
+ end
768
+ if healthy != nil
769
+ @healthy = healthy
770
+ end
771
+ if access_key != nil
772
+ @access_key = access_key
773
+ end
774
+ if secret_access_key != nil
775
+ @secret_access_key = secret_access_key
776
+ end
777
+ if region != nil
778
+ @region = region
779
+ end
780
+ if endpoint != nil
781
+ @endpoint = endpoint
782
+ end
783
+ if port_override != nil
784
+ @port_override = port_override
785
+ end
786
+ end
787
+ end
788
+
789
+ class AmazonES
790
+ # Unique identifier of the Resource.
791
+ attr_accessor :id
792
+ # Unique human-readable name of the Resource.
793
+ attr_accessor :name
794
+ # True if the datasource is reachable and the credentials are valid.
795
+ attr_accessor :healthy
796
+
797
+ attr_accessor :region
798
+
799
+ attr_accessor :secret_access_key
800
+
801
+ attr_accessor :endpoint
802
+
803
+ attr_accessor :access_key
804
+
805
+ attr_accessor :port_override
806
+ def initialize(
807
+ id:nil \
808
+ ,
809
+ name:nil \
810
+ ,
811
+ healthy:nil \
812
+ ,
813
+ region:nil \
814
+ ,
815
+ secret_access_key:nil \
816
+ ,
817
+ endpoint:nil \
818
+ ,
819
+ access_key:nil \
820
+ ,
821
+ port_override:nil \
822
+ )
823
+ if id != nil
824
+ @id = id
825
+ end
826
+ if name != nil
827
+ @name = name
828
+ end
829
+ if healthy != nil
830
+ @healthy = healthy
831
+ end
832
+ if region != nil
833
+ @region = region
834
+ end
835
+ if secret_access_key != nil
836
+ @secret_access_key = secret_access_key
837
+ end
838
+ if endpoint != nil
839
+ @endpoint = endpoint
840
+ end
841
+ if access_key != nil
842
+ @access_key = access_key
843
+ end
844
+ if port_override != nil
845
+ @port_override = port_override
846
+ end
847
+ end
848
+ end
849
+
850
+ class Elastic
851
+ # Unique identifier of the Resource.
852
+ attr_accessor :id
853
+ # Unique human-readable name of the Resource.
854
+ attr_accessor :name
855
+ # True if the datasource is reachable and the credentials are valid.
856
+ attr_accessor :healthy
857
+
858
+ attr_accessor :hostname
859
+
860
+ attr_accessor :username
861
+
862
+ attr_accessor :password
863
+
864
+ attr_accessor :port_override
865
+
866
+ attr_accessor :port
867
+
868
+ attr_accessor :tls_required
869
+ def initialize(
870
+ id:nil \
871
+ ,
872
+ name:nil \
873
+ ,
874
+ healthy:nil \
875
+ ,
876
+ hostname:nil \
877
+ ,
878
+ username:nil \
879
+ ,
880
+ password:nil \
881
+ ,
882
+ port_override:nil \
883
+ ,
884
+ port:nil \
885
+ ,
886
+ tls_required:nil \
887
+ )
888
+ if id != nil
889
+ @id = id
890
+ end
891
+ if name != nil
892
+ @name = name
893
+ end
894
+ if healthy != nil
895
+ @healthy = healthy
896
+ end
897
+ if hostname != nil
898
+ @hostname = hostname
899
+ end
900
+ if username != nil
901
+ @username = username
902
+ end
903
+ if password != nil
904
+ @password = password
905
+ end
906
+ if port_override != nil
907
+ @port_override = port_override
908
+ end
909
+ if port != nil
910
+ @port = port
911
+ end
912
+ if tls_required != nil
913
+ @tls_required = tls_required
914
+ end
915
+ end
916
+ end
917
+
918
+ class HTTPBasicAuth
919
+ # Unique identifier of the Resource.
920
+ attr_accessor :id
921
+ # Unique human-readable name of the Resource.
922
+ attr_accessor :name
923
+ # True if the datasource is reachable and the credentials are valid.
924
+ attr_accessor :healthy
925
+
926
+ attr_accessor :url
927
+
928
+ attr_accessor :healthcheck_path
929
+
930
+ attr_accessor :username
931
+
932
+ attr_accessor :password
933
+
934
+ attr_accessor :headers_blacklist
935
+
936
+ attr_accessor :default_path
937
+
938
+ attr_accessor :subdomain
939
+ def initialize(
940
+ id:nil \
941
+ ,
942
+ name:nil \
943
+ ,
944
+ healthy:nil \
945
+ ,
946
+ url:nil \
947
+ ,
948
+ healthcheck_path:nil \
949
+ ,
950
+ username:nil \
951
+ ,
952
+ password:nil \
953
+ ,
954
+ headers_blacklist:nil \
955
+ ,
956
+ default_path:nil \
957
+ ,
958
+ subdomain:nil \
959
+ )
960
+ if id != nil
961
+ @id = id
962
+ end
963
+ if name != nil
964
+ @name = name
965
+ end
966
+ if healthy != nil
967
+ @healthy = healthy
968
+ end
969
+ if url != nil
970
+ @url = url
971
+ end
972
+ if healthcheck_path != nil
973
+ @healthcheck_path = healthcheck_path
974
+ end
975
+ if username != nil
976
+ @username = username
977
+ end
978
+ if password != nil
979
+ @password = password
980
+ end
981
+ if headers_blacklist != nil
982
+ @headers_blacklist = headers_blacklist
983
+ end
984
+ if default_path != nil
985
+ @default_path = default_path
986
+ end
987
+ if subdomain != nil
988
+ @subdomain = subdomain
989
+ end
990
+ end
991
+ end
992
+
993
+ class HTTPNoAuth
994
+ # Unique identifier of the Resource.
995
+ attr_accessor :id
996
+ # Unique human-readable name of the Resource.
997
+ attr_accessor :name
998
+ # True if the datasource is reachable and the credentials are valid.
999
+ attr_accessor :healthy
1000
+
1001
+ attr_accessor :url
1002
+
1003
+ attr_accessor :healthcheck_path
1004
+
1005
+ attr_accessor :headers_blacklist
1006
+
1007
+ attr_accessor :default_path
1008
+
1009
+ attr_accessor :subdomain
1010
+ def initialize(
1011
+ id:nil \
1012
+ ,
1013
+ name:nil \
1014
+ ,
1015
+ healthy:nil \
1016
+ ,
1017
+ url:nil \
1018
+ ,
1019
+ healthcheck_path:nil \
1020
+ ,
1021
+ headers_blacklist:nil \
1022
+ ,
1023
+ default_path:nil \
1024
+ ,
1025
+ subdomain:nil \
1026
+ )
1027
+ if id != nil
1028
+ @id = id
1029
+ end
1030
+ if name != nil
1031
+ @name = name
1032
+ end
1033
+ if healthy != nil
1034
+ @healthy = healthy
1035
+ end
1036
+ if url != nil
1037
+ @url = url
1038
+ end
1039
+ if healthcheck_path != nil
1040
+ @healthcheck_path = healthcheck_path
1041
+ end
1042
+ if headers_blacklist != nil
1043
+ @headers_blacklist = headers_blacklist
1044
+ end
1045
+ if default_path != nil
1046
+ @default_path = default_path
1047
+ end
1048
+ if subdomain != nil
1049
+ @subdomain = subdomain
1050
+ end
1051
+ end
1052
+ end
1053
+
1054
+ class HTTPAuth
1055
+ # Unique identifier of the Resource.
1056
+ attr_accessor :id
1057
+ # Unique human-readable name of the Resource.
1058
+ attr_accessor :name
1059
+ # True if the datasource is reachable and the credentials are valid.
1060
+ attr_accessor :healthy
1061
+
1062
+ attr_accessor :url
1063
+
1064
+ attr_accessor :healthcheck_path
1065
+
1066
+ attr_accessor :auth_header
1067
+
1068
+ attr_accessor :headers_blacklist
1069
+
1070
+ attr_accessor :default_path
1071
+
1072
+ attr_accessor :subdomain
1073
+ def initialize(
1074
+ id:nil \
1075
+ ,
1076
+ name:nil \
1077
+ ,
1078
+ healthy:nil \
1079
+ ,
1080
+ url:nil \
1081
+ ,
1082
+ healthcheck_path:nil \
1083
+ ,
1084
+ auth_header:nil \
1085
+ ,
1086
+ headers_blacklist:nil \
1087
+ ,
1088
+ default_path:nil \
1089
+ ,
1090
+ subdomain:nil \
1091
+ )
1092
+ if id != nil
1093
+ @id = id
1094
+ end
1095
+ if name != nil
1096
+ @name = name
1097
+ end
1098
+ if healthy != nil
1099
+ @healthy = healthy
1100
+ end
1101
+ if url != nil
1102
+ @url = url
1103
+ end
1104
+ if healthcheck_path != nil
1105
+ @healthcheck_path = healthcheck_path
1106
+ end
1107
+ if auth_header != nil
1108
+ @auth_header = auth_header
1109
+ end
1110
+ if headers_blacklist != nil
1111
+ @headers_blacklist = headers_blacklist
1112
+ end
1113
+ if default_path != nil
1114
+ @default_path = default_path
1115
+ end
1116
+ if subdomain != nil
1117
+ @subdomain = subdomain
1118
+ end
1119
+ end
1120
+ end
1121
+
1122
+ class Kubernetes
1123
+ # Unique identifier of the Resource.
1124
+ attr_accessor :id
1125
+ # Unique human-readable name of the Resource.
1126
+ attr_accessor :name
1127
+ # True if the datasource is reachable and the credentials are valid.
1128
+ attr_accessor :healthy
1129
+
1130
+ attr_accessor :hostname
1131
+
1132
+ attr_accessor :port
1133
+
1134
+ attr_accessor :certificate_authority
1135
+
1136
+ attr_accessor :certificate_authority_filename
1137
+
1138
+ attr_accessor :client_certificate
1139
+
1140
+ attr_accessor :client_certificate_filename
1141
+
1142
+ attr_accessor :client_key
1143
+
1144
+ attr_accessor :client_key_filename
1145
+ def initialize(
1146
+ id:nil \
1147
+ ,
1148
+ name:nil \
1149
+ ,
1150
+ healthy:nil \
1151
+ ,
1152
+ hostname:nil \
1153
+ ,
1154
+ port:nil \
1155
+ ,
1156
+ certificate_authority:nil \
1157
+ ,
1158
+ certificate_authority_filename:nil \
1159
+ ,
1160
+ client_certificate:nil \
1161
+ ,
1162
+ client_certificate_filename:nil \
1163
+ ,
1164
+ client_key:nil \
1165
+ ,
1166
+ client_key_filename:nil \
1167
+ )
1168
+ if id != nil
1169
+ @id = id
1170
+ end
1171
+ if name != nil
1172
+ @name = name
1173
+ end
1174
+ if healthy != nil
1175
+ @healthy = healthy
1176
+ end
1177
+ if hostname != nil
1178
+ @hostname = hostname
1179
+ end
1180
+ if port != nil
1181
+ @port = port
1182
+ end
1183
+ if certificate_authority != nil
1184
+ @certificate_authority = certificate_authority
1185
+ end
1186
+ if certificate_authority_filename != nil
1187
+ @certificate_authority_filename = certificate_authority_filename
1188
+ end
1189
+ if client_certificate != nil
1190
+ @client_certificate = client_certificate
1191
+ end
1192
+ if client_certificate_filename != nil
1193
+ @client_certificate_filename = client_certificate_filename
1194
+ end
1195
+ if client_key != nil
1196
+ @client_key = client_key
1197
+ end
1198
+ if client_key_filename != nil
1199
+ @client_key_filename = client_key_filename
1200
+ end
1201
+ end
1202
+ end
1203
+
1204
+ class KubernetesBasicAuth
1205
+ # Unique identifier of the Resource.
1206
+ attr_accessor :id
1207
+ # Unique human-readable name of the Resource.
1208
+ attr_accessor :name
1209
+ # True if the datasource is reachable and the credentials are valid.
1210
+ attr_accessor :healthy
1211
+
1212
+ attr_accessor :hostname
1213
+
1214
+ attr_accessor :port
1215
+
1216
+ attr_accessor :username
1217
+
1218
+ attr_accessor :password
1219
+ def initialize(
1220
+ id:nil \
1221
+ ,
1222
+ name:nil \
1223
+ ,
1224
+ healthy:nil \
1225
+ ,
1226
+ hostname:nil \
1227
+ ,
1228
+ port:nil \
1229
+ ,
1230
+ username:nil \
1231
+ ,
1232
+ password:nil \
1233
+ )
1234
+ if id != nil
1235
+ @id = id
1236
+ end
1237
+ if name != nil
1238
+ @name = name
1239
+ end
1240
+ if healthy != nil
1241
+ @healthy = healthy
1242
+ end
1243
+ if hostname != nil
1244
+ @hostname = hostname
1245
+ end
1246
+ if port != nil
1247
+ @port = port
1248
+ end
1249
+ if username != nil
1250
+ @username = username
1251
+ end
1252
+ if password != nil
1253
+ @password = password
1254
+ end
1255
+ end
1256
+ end
1257
+
1258
+ class KubernetesServiceAccount
1259
+ # Unique identifier of the Resource.
1260
+ attr_accessor :id
1261
+ # Unique human-readable name of the Resource.
1262
+ attr_accessor :name
1263
+ # True if the datasource is reachable and the credentials are valid.
1264
+ attr_accessor :healthy
1265
+
1266
+ attr_accessor :hostname
1267
+
1268
+ attr_accessor :port
1269
+
1270
+ attr_accessor :token
1271
+ def initialize(
1272
+ id:nil \
1273
+ ,
1274
+ name:nil \
1275
+ ,
1276
+ healthy:nil \
1277
+ ,
1278
+ hostname:nil \
1279
+ ,
1280
+ port:nil \
1281
+ ,
1282
+ token:nil \
1283
+ )
1284
+ if id != nil
1285
+ @id = id
1286
+ end
1287
+ if name != nil
1288
+ @name = name
1289
+ end
1290
+ if healthy != nil
1291
+ @healthy = healthy
1292
+ end
1293
+ if hostname != nil
1294
+ @hostname = hostname
1295
+ end
1296
+ if port != nil
1297
+ @port = port
1298
+ end
1299
+ if token != nil
1300
+ @token = token
1301
+ end
1302
+ end
1303
+ end
1304
+
1305
+ class AmazonEKS
1306
+ # Unique identifier of the Resource.
1307
+ attr_accessor :id
1308
+ # Unique human-readable name of the Resource.
1309
+ attr_accessor :name
1310
+ # True if the datasource is reachable and the credentials are valid.
1311
+ attr_accessor :healthy
1312
+
1313
+ attr_accessor :endpoint
1314
+
1315
+ attr_accessor :access_key
1316
+
1317
+ attr_accessor :secret_access_key
1318
+
1319
+ attr_accessor :certificate_authority
1320
+
1321
+ attr_accessor :certificate_authority_filename
1322
+
1323
+ attr_accessor :region
1324
+
1325
+ attr_accessor :cluster_name
1326
+ def initialize(
1327
+ id:nil \
1328
+ ,
1329
+ name:nil \
1330
+ ,
1331
+ healthy:nil \
1332
+ ,
1333
+ endpoint:nil \
1334
+ ,
1335
+ access_key:nil \
1336
+ ,
1337
+ secret_access_key:nil \
1338
+ ,
1339
+ certificate_authority:nil \
1340
+ ,
1341
+ certificate_authority_filename:nil \
1342
+ ,
1343
+ region:nil \
1344
+ ,
1345
+ cluster_name:nil \
1346
+ )
1347
+ if id != nil
1348
+ @id = id
1349
+ end
1350
+ if name != nil
1351
+ @name = name
1352
+ end
1353
+ if healthy != nil
1354
+ @healthy = healthy
1355
+ end
1356
+ if endpoint != nil
1357
+ @endpoint = endpoint
1358
+ end
1359
+ if access_key != nil
1360
+ @access_key = access_key
1361
+ end
1362
+ if secret_access_key != nil
1363
+ @secret_access_key = secret_access_key
1364
+ end
1365
+ if certificate_authority != nil
1366
+ @certificate_authority = certificate_authority
1367
+ end
1368
+ if certificate_authority_filename != nil
1369
+ @certificate_authority_filename = certificate_authority_filename
1370
+ end
1371
+ if region != nil
1372
+ @region = region
1373
+ end
1374
+ if cluster_name != nil
1375
+ @cluster_name = cluster_name
1376
+ end
1377
+ end
1378
+ end
1379
+
1380
+ class GoogleGKE
1381
+ # Unique identifier of the Resource.
1382
+ attr_accessor :id
1383
+ # Unique human-readable name of the Resource.
1384
+ attr_accessor :name
1385
+ # True if the datasource is reachable and the credentials are valid.
1386
+ attr_accessor :healthy
1387
+
1388
+ attr_accessor :endpoint
1389
+
1390
+ attr_accessor :certificate_authority
1391
+
1392
+ attr_accessor :certificate_authority_filename
1393
+
1394
+ attr_accessor :service_account_key
1395
+
1396
+ attr_accessor :service_account_key_filename
1397
+ def initialize(
1398
+ id:nil \
1399
+ ,
1400
+ name:nil \
1401
+ ,
1402
+ healthy:nil \
1403
+ ,
1404
+ endpoint:nil \
1405
+ ,
1406
+ certificate_authority:nil \
1407
+ ,
1408
+ certificate_authority_filename:nil \
1409
+ ,
1410
+ service_account_key:nil \
1411
+ ,
1412
+ service_account_key_filename:nil \
1413
+ )
1414
+ if id != nil
1415
+ @id = id
1416
+ end
1417
+ if name != nil
1418
+ @name = name
1419
+ end
1420
+ if healthy != nil
1421
+ @healthy = healthy
1422
+ end
1423
+ if endpoint != nil
1424
+ @endpoint = endpoint
1425
+ end
1426
+ if certificate_authority != nil
1427
+ @certificate_authority = certificate_authority
1428
+ end
1429
+ if certificate_authority_filename != nil
1430
+ @certificate_authority_filename = certificate_authority_filename
1431
+ end
1432
+ if service_account_key != nil
1433
+ @service_account_key = service_account_key
1434
+ end
1435
+ if service_account_key_filename != nil
1436
+ @service_account_key_filename = service_account_key_filename
1437
+ end
1438
+ end
1439
+ end
1440
+
1441
+ class AKS
1442
+ # Unique identifier of the Resource.
1443
+ attr_accessor :id
1444
+ # Unique human-readable name of the Resource.
1445
+ attr_accessor :name
1446
+ # True if the datasource is reachable and the credentials are valid.
1447
+ attr_accessor :healthy
1448
+
1449
+ attr_accessor :hostname
1450
+
1451
+ attr_accessor :port
1452
+
1453
+ attr_accessor :certificate_authority
1454
+
1455
+ attr_accessor :certificate_authority_filename
1456
+
1457
+ attr_accessor :client_certificate
1458
+
1459
+ attr_accessor :client_certificate_filename
1460
+
1461
+ attr_accessor :client_key
1462
+
1463
+ attr_accessor :client_key_filename
1464
+ def initialize(
1465
+ id:nil \
1466
+ ,
1467
+ name:nil \
1468
+ ,
1469
+ healthy:nil \
1470
+ ,
1471
+ hostname:nil \
1472
+ ,
1473
+ port:nil \
1474
+ ,
1475
+ certificate_authority:nil \
1476
+ ,
1477
+ certificate_authority_filename:nil \
1478
+ ,
1479
+ client_certificate:nil \
1480
+ ,
1481
+ client_certificate_filename:nil \
1482
+ ,
1483
+ client_key:nil \
1484
+ ,
1485
+ client_key_filename:nil \
1486
+ )
1487
+ if id != nil
1488
+ @id = id
1489
+ end
1490
+ if name != nil
1491
+ @name = name
1492
+ end
1493
+ if healthy != nil
1494
+ @healthy = healthy
1495
+ end
1496
+ if hostname != nil
1497
+ @hostname = hostname
1498
+ end
1499
+ if port != nil
1500
+ @port = port
1501
+ end
1502
+ if certificate_authority != nil
1503
+ @certificate_authority = certificate_authority
1504
+ end
1505
+ if certificate_authority_filename != nil
1506
+ @certificate_authority_filename = certificate_authority_filename
1507
+ end
1508
+ if client_certificate != nil
1509
+ @client_certificate = client_certificate
1510
+ end
1511
+ if client_certificate_filename != nil
1512
+ @client_certificate_filename = client_certificate_filename
1513
+ end
1514
+ if client_key != nil
1515
+ @client_key = client_key
1516
+ end
1517
+ if client_key_filename != nil
1518
+ @client_key_filename = client_key_filename
1519
+ end
1520
+ end
1521
+ end
1522
+
1523
+ class AKSBasicAuth
1524
+ # Unique identifier of the Resource.
1525
+ attr_accessor :id
1526
+ # Unique human-readable name of the Resource.
1527
+ attr_accessor :name
1528
+ # True if the datasource is reachable and the credentials are valid.
1529
+ attr_accessor :healthy
1530
+
1531
+ attr_accessor :hostname
1532
+
1533
+ attr_accessor :port
1534
+
1535
+ attr_accessor :username
1536
+
1537
+ attr_accessor :password
1538
+ def initialize(
1539
+ id:nil \
1540
+ ,
1541
+ name:nil \
1542
+ ,
1543
+ healthy:nil \
1544
+ ,
1545
+ hostname:nil \
1546
+ ,
1547
+ port:nil \
1548
+ ,
1549
+ username:nil \
1550
+ ,
1551
+ password:nil \
1552
+ )
1553
+ if id != nil
1554
+ @id = id
1555
+ end
1556
+ if name != nil
1557
+ @name = name
1558
+ end
1559
+ if healthy != nil
1560
+ @healthy = healthy
1561
+ end
1562
+ if hostname != nil
1563
+ @hostname = hostname
1564
+ end
1565
+ if port != nil
1566
+ @port = port
1567
+ end
1568
+ if username != nil
1569
+ @username = username
1570
+ end
1571
+ if password != nil
1572
+ @password = password
1573
+ end
1574
+ end
1575
+ end
1576
+
1577
+ class AKSServiceAccount
1578
+ # Unique identifier of the Resource.
1579
+ attr_accessor :id
1580
+ # Unique human-readable name of the Resource.
1581
+ attr_accessor :name
1582
+ # True if the datasource is reachable and the credentials are valid.
1583
+ attr_accessor :healthy
1584
+
1585
+ attr_accessor :hostname
1586
+
1587
+ attr_accessor :port
1588
+
1589
+ attr_accessor :token
1590
+ def initialize(
1591
+ id:nil \
1592
+ ,
1593
+ name:nil \
1594
+ ,
1595
+ healthy:nil \
1596
+ ,
1597
+ hostname:nil \
1598
+ ,
1599
+ port:nil \
1600
+ ,
1601
+ token:nil \
1602
+ )
1603
+ if id != nil
1604
+ @id = id
1605
+ end
1606
+ if name != nil
1607
+ @name = name
1608
+ end
1609
+ if healthy != nil
1610
+ @healthy = healthy
1611
+ end
1612
+ if hostname != nil
1613
+ @hostname = hostname
1614
+ end
1615
+ if port != nil
1616
+ @port = port
1617
+ end
1618
+ if token != nil
1619
+ @token = token
1620
+ end
1621
+ end
1622
+ end
1623
+
1624
+ class Memcached
1625
+ # Unique identifier of the Resource.
1626
+ attr_accessor :id
1627
+ # Unique human-readable name of the Resource.
1628
+ attr_accessor :name
1629
+ # True if the datasource is reachable and the credentials are valid.
1630
+ attr_accessor :healthy
1631
+
1632
+ attr_accessor :hostname
1633
+
1634
+ attr_accessor :port_override
1635
+
1636
+ attr_accessor :port
1637
+ def initialize(
1638
+ id:nil \
1639
+ ,
1640
+ name:nil \
1641
+ ,
1642
+ healthy:nil \
1643
+ ,
1644
+ hostname:nil \
1645
+ ,
1646
+ port_override:nil \
1647
+ ,
1648
+ port:nil \
1649
+ )
1650
+ if id != nil
1651
+ @id = id
1652
+ end
1653
+ if name != nil
1654
+ @name = name
1655
+ end
1656
+ if healthy != nil
1657
+ @healthy = healthy
1658
+ end
1659
+ if hostname != nil
1660
+ @hostname = hostname
1661
+ end
1662
+ if port_override != nil
1663
+ @port_override = port_override
1664
+ end
1665
+ if port != nil
1666
+ @port = port
1667
+ end
1668
+ end
1669
+ end
1670
+
1671
+ class MongoLegacyHost
1672
+ # Unique identifier of the Resource.
1673
+ attr_accessor :id
1674
+ # Unique human-readable name of the Resource.
1675
+ attr_accessor :name
1676
+ # True if the datasource is reachable and the credentials are valid.
1677
+ attr_accessor :healthy
1678
+
1679
+ attr_accessor :hostname
1680
+
1681
+ attr_accessor :auth_database
1682
+
1683
+ attr_accessor :port_override
1684
+
1685
+ attr_accessor :username
1686
+
1687
+ attr_accessor :password
1688
+
1689
+ attr_accessor :port
1690
+
1691
+ attr_accessor :replica_set
1692
+
1693
+ attr_accessor :tls_required
1694
+ def initialize(
1695
+ id:nil \
1696
+ ,
1697
+ name:nil \
1698
+ ,
1699
+ healthy:nil \
1700
+ ,
1701
+ hostname:nil \
1702
+ ,
1703
+ auth_database:nil \
1704
+ ,
1705
+ port_override:nil \
1706
+ ,
1707
+ username:nil \
1708
+ ,
1709
+ password:nil \
1710
+ ,
1711
+ port:nil \
1712
+ ,
1713
+ replica_set:nil \
1714
+ ,
1715
+ tls_required:nil \
1716
+ )
1717
+ if id != nil
1718
+ @id = id
1719
+ end
1720
+ if name != nil
1721
+ @name = name
1722
+ end
1723
+ if healthy != nil
1724
+ @healthy = healthy
1725
+ end
1726
+ if hostname != nil
1727
+ @hostname = hostname
1728
+ end
1729
+ if auth_database != nil
1730
+ @auth_database = auth_database
1731
+ end
1732
+ if port_override != nil
1733
+ @port_override = port_override
1734
+ end
1735
+ if username != nil
1736
+ @username = username
1737
+ end
1738
+ if password != nil
1739
+ @password = password
1740
+ end
1741
+ if port != nil
1742
+ @port = port
1743
+ end
1744
+ if replica_set != nil
1745
+ @replica_set = replica_set
1746
+ end
1747
+ if tls_required != nil
1748
+ @tls_required = tls_required
1749
+ end
1750
+ end
1751
+ end
1752
+
1753
+ class MongoLegacyReplicaset
1754
+ # Unique identifier of the Resource.
1755
+ attr_accessor :id
1756
+ # Unique human-readable name of the Resource.
1757
+ attr_accessor :name
1758
+ # True if the datasource is reachable and the credentials are valid.
1759
+ attr_accessor :healthy
1760
+
1761
+ attr_accessor :hostname
1762
+
1763
+ attr_accessor :auth_database
1764
+
1765
+ attr_accessor :port_override
1766
+
1767
+ attr_accessor :username
1768
+
1769
+ attr_accessor :password
1770
+
1771
+ attr_accessor :port
1772
+
1773
+ attr_accessor :replica_set
1774
+
1775
+ attr_accessor :connect_to_replica
1776
+
1777
+ attr_accessor :tls_required
1778
+ def initialize(
1779
+ id:nil \
1780
+ ,
1781
+ name:nil \
1782
+ ,
1783
+ healthy:nil \
1784
+ ,
1785
+ hostname:nil \
1786
+ ,
1787
+ auth_database:nil \
1788
+ ,
1789
+ port_override:nil \
1790
+ ,
1791
+ username:nil \
1792
+ ,
1793
+ password:nil \
1794
+ ,
1795
+ port:nil \
1796
+ ,
1797
+ replica_set:nil \
1798
+ ,
1799
+ connect_to_replica:nil \
1800
+ ,
1801
+ tls_required:nil \
1802
+ )
1803
+ if id != nil
1804
+ @id = id
1805
+ end
1806
+ if name != nil
1807
+ @name = name
1808
+ end
1809
+ if healthy != nil
1810
+ @healthy = healthy
1811
+ end
1812
+ if hostname != nil
1813
+ @hostname = hostname
1814
+ end
1815
+ if auth_database != nil
1816
+ @auth_database = auth_database
1817
+ end
1818
+ if port_override != nil
1819
+ @port_override = port_override
1820
+ end
1821
+ if username != nil
1822
+ @username = username
1823
+ end
1824
+ if password != nil
1825
+ @password = password
1826
+ end
1827
+ if port != nil
1828
+ @port = port
1829
+ end
1830
+ if replica_set != nil
1831
+ @replica_set = replica_set
1832
+ end
1833
+ if connect_to_replica != nil
1834
+ @connect_to_replica = connect_to_replica
1835
+ end
1836
+ if tls_required != nil
1837
+ @tls_required = tls_required
1838
+ end
1839
+ end
1840
+ end
1841
+
1842
+ class MongoHost
1843
+ # Unique identifier of the Resource.
1844
+ attr_accessor :id
1845
+ # Unique human-readable name of the Resource.
1846
+ attr_accessor :name
1847
+ # True if the datasource is reachable and the credentials are valid.
1848
+ attr_accessor :healthy
1849
+
1850
+ attr_accessor :hostname
1851
+
1852
+ attr_accessor :auth_database
1853
+
1854
+ attr_accessor :port_override
1855
+
1856
+ attr_accessor :username
1857
+
1858
+ attr_accessor :password
1859
+
1860
+ attr_accessor :port
1861
+
1862
+ attr_accessor :tls_required
1863
+ def initialize(
1864
+ id:nil \
1865
+ ,
1866
+ name:nil \
1867
+ ,
1868
+ healthy:nil \
1869
+ ,
1870
+ hostname:nil \
1871
+ ,
1872
+ auth_database:nil \
1873
+ ,
1874
+ port_override:nil \
1875
+ ,
1876
+ username:nil \
1877
+ ,
1878
+ password:nil \
1879
+ ,
1880
+ port:nil \
1881
+ ,
1882
+ tls_required:nil \
1883
+ )
1884
+ if id != nil
1885
+ @id = id
1886
+ end
1887
+ if name != nil
1888
+ @name = name
1889
+ end
1890
+ if healthy != nil
1891
+ @healthy = healthy
1892
+ end
1893
+ if hostname != nil
1894
+ @hostname = hostname
1895
+ end
1896
+ if auth_database != nil
1897
+ @auth_database = auth_database
1898
+ end
1899
+ if port_override != nil
1900
+ @port_override = port_override
1901
+ end
1902
+ if username != nil
1903
+ @username = username
1904
+ end
1905
+ if password != nil
1906
+ @password = password
1907
+ end
1908
+ if port != nil
1909
+ @port = port
1910
+ end
1911
+ if tls_required != nil
1912
+ @tls_required = tls_required
1913
+ end
1914
+ end
1915
+ end
1916
+
1917
+ class MongoReplicaSet
1918
+ # Unique identifier of the Resource.
1919
+ attr_accessor :id
1920
+ # Unique human-readable name of the Resource.
1921
+ attr_accessor :name
1922
+ # True if the datasource is reachable and the credentials are valid.
1923
+ attr_accessor :healthy
1924
+
1925
+ attr_accessor :hostname
1926
+
1927
+ attr_accessor :auth_database
1928
+
1929
+ attr_accessor :port_override
1930
+
1931
+ attr_accessor :username
1932
+
1933
+ attr_accessor :password
1934
+
1935
+ attr_accessor :port
1936
+
1937
+ attr_accessor :replica_set
1938
+
1939
+ attr_accessor :connect_to_replica
1940
+
1941
+ attr_accessor :tls_required
1942
+ def initialize(
1943
+ id:nil \
1944
+ ,
1945
+ name:nil \
1946
+ ,
1947
+ healthy:nil \
1948
+ ,
1949
+ hostname:nil \
1950
+ ,
1951
+ auth_database:nil \
1952
+ ,
1953
+ port_override:nil \
1954
+ ,
1955
+ username:nil \
1956
+ ,
1957
+ password:nil \
1958
+ ,
1959
+ port:nil \
1960
+ ,
1961
+ replica_set:nil \
1962
+ ,
1963
+ connect_to_replica:nil \
1964
+ ,
1965
+ tls_required:nil \
1966
+ )
1967
+ if id != nil
1968
+ @id = id
1969
+ end
1970
+ if name != nil
1971
+ @name = name
1972
+ end
1973
+ if healthy != nil
1974
+ @healthy = healthy
1975
+ end
1976
+ if hostname != nil
1977
+ @hostname = hostname
1978
+ end
1979
+ if auth_database != nil
1980
+ @auth_database = auth_database
1981
+ end
1982
+ if port_override != nil
1983
+ @port_override = port_override
1984
+ end
1985
+ if username != nil
1986
+ @username = username
1987
+ end
1988
+ if password != nil
1989
+ @password = password
1990
+ end
1991
+ if port != nil
1992
+ @port = port
1993
+ end
1994
+ if replica_set != nil
1995
+ @replica_set = replica_set
1996
+ end
1997
+ if connect_to_replica != nil
1998
+ @connect_to_replica = connect_to_replica
1999
+ end
2000
+ if tls_required != nil
2001
+ @tls_required = tls_required
2002
+ end
2003
+ end
2004
+ end
2005
+
2006
+ class Mysql
2007
+ # Unique identifier of the Resource.
2008
+ attr_accessor :id
2009
+ # Unique human-readable name of the Resource.
2010
+ attr_accessor :name
2011
+ # True if the datasource is reachable and the credentials are valid.
2012
+ attr_accessor :healthy
2013
+
2014
+ attr_accessor :hostname
2015
+
2016
+ attr_accessor :username
2017
+
2018
+ attr_accessor :password
2019
+
2020
+ attr_accessor :database
2021
+
2022
+ attr_accessor :port_override
2023
+
2024
+ attr_accessor :port
2025
+ def initialize(
2026
+ id:nil \
2027
+ ,
2028
+ name:nil \
2029
+ ,
2030
+ healthy:nil \
2031
+ ,
2032
+ hostname:nil \
2033
+ ,
2034
+ username:nil \
2035
+ ,
2036
+ password:nil \
2037
+ ,
2038
+ database:nil \
2039
+ ,
2040
+ port_override:nil \
2041
+ ,
2042
+ port:nil \
2043
+ )
2044
+ if id != nil
2045
+ @id = id
2046
+ end
2047
+ if name != nil
2048
+ @name = name
2049
+ end
2050
+ if healthy != nil
2051
+ @healthy = healthy
2052
+ end
2053
+ if hostname != nil
2054
+ @hostname = hostname
2055
+ end
2056
+ if username != nil
2057
+ @username = username
2058
+ end
2059
+ if password != nil
2060
+ @password = password
2061
+ end
2062
+ if database != nil
2063
+ @database = database
2064
+ end
2065
+ if port_override != nil
2066
+ @port_override = port_override
2067
+ end
2068
+ if port != nil
2069
+ @port = port
2070
+ end
2071
+ end
2072
+ end
2073
+
2074
+ class AuroraMysql
2075
+ # Unique identifier of the Resource.
2076
+ attr_accessor :id
2077
+ # Unique human-readable name of the Resource.
2078
+ attr_accessor :name
2079
+ # True if the datasource is reachable and the credentials are valid.
2080
+ attr_accessor :healthy
2081
+
2082
+ attr_accessor :hostname
2083
+
2084
+ attr_accessor :username
2085
+
2086
+ attr_accessor :password
2087
+
2088
+ attr_accessor :database
2089
+
2090
+ attr_accessor :port_override
2091
+
2092
+ attr_accessor :port
2093
+ def initialize(
2094
+ id:nil \
2095
+ ,
2096
+ name:nil \
2097
+ ,
2098
+ healthy:nil \
2099
+ ,
2100
+ hostname:nil \
2101
+ ,
2102
+ username:nil \
2103
+ ,
2104
+ password:nil \
2105
+ ,
2106
+ database:nil \
2107
+ ,
2108
+ port_override:nil \
2109
+ ,
2110
+ port:nil \
2111
+ )
2112
+ if id != nil
2113
+ @id = id
2114
+ end
2115
+ if name != nil
2116
+ @name = name
2117
+ end
2118
+ if healthy != nil
2119
+ @healthy = healthy
2120
+ end
2121
+ if hostname != nil
2122
+ @hostname = hostname
2123
+ end
2124
+ if username != nil
2125
+ @username = username
2126
+ end
2127
+ if password != nil
2128
+ @password = password
2129
+ end
2130
+ if database != nil
2131
+ @database = database
2132
+ end
2133
+ if port_override != nil
2134
+ @port_override = port_override
2135
+ end
2136
+ if port != nil
2137
+ @port = port
2138
+ end
2139
+ end
2140
+ end
2141
+
2142
+ class Clustrix
2143
+ # Unique identifier of the Resource.
2144
+ attr_accessor :id
2145
+ # Unique human-readable name of the Resource.
2146
+ attr_accessor :name
2147
+ # True if the datasource is reachable and the credentials are valid.
2148
+ attr_accessor :healthy
2149
+
2150
+ attr_accessor :hostname
2151
+
2152
+ attr_accessor :username
2153
+
2154
+ attr_accessor :password
2155
+
2156
+ attr_accessor :database
2157
+
2158
+ attr_accessor :port_override
2159
+
2160
+ attr_accessor :port
2161
+ def initialize(
2162
+ id:nil \
2163
+ ,
2164
+ name:nil \
2165
+ ,
2166
+ healthy:nil \
2167
+ ,
2168
+ hostname:nil \
2169
+ ,
2170
+ username:nil \
2171
+ ,
2172
+ password:nil \
2173
+ ,
2174
+ database:nil \
2175
+ ,
2176
+ port_override:nil \
2177
+ ,
2178
+ port:nil \
2179
+ )
2180
+ if id != nil
2181
+ @id = id
2182
+ end
2183
+ if name != nil
2184
+ @name = name
2185
+ end
2186
+ if healthy != nil
2187
+ @healthy = healthy
2188
+ end
2189
+ if hostname != nil
2190
+ @hostname = hostname
2191
+ end
2192
+ if username != nil
2193
+ @username = username
2194
+ end
2195
+ if password != nil
2196
+ @password = password
2197
+ end
2198
+ if database != nil
2199
+ @database = database
2200
+ end
2201
+ if port_override != nil
2202
+ @port_override = port_override
2203
+ end
2204
+ if port != nil
2205
+ @port = port
2206
+ end
2207
+ end
2208
+ end
2209
+
2210
+ class Maria
2211
+ # Unique identifier of the Resource.
2212
+ attr_accessor :id
2213
+ # Unique human-readable name of the Resource.
2214
+ attr_accessor :name
2215
+ # True if the datasource is reachable and the credentials are valid.
2216
+ attr_accessor :healthy
2217
+
2218
+ attr_accessor :hostname
2219
+
2220
+ attr_accessor :username
2221
+
2222
+ attr_accessor :password
2223
+
2224
+ attr_accessor :database
2225
+
2226
+ attr_accessor :port_override
2227
+
2228
+ attr_accessor :port
2229
+ def initialize(
2230
+ id:nil \
2231
+ ,
2232
+ name:nil \
2233
+ ,
2234
+ healthy:nil \
2235
+ ,
2236
+ hostname:nil \
2237
+ ,
2238
+ username:nil \
2239
+ ,
2240
+ password:nil \
2241
+ ,
2242
+ database:nil \
2243
+ ,
2244
+ port_override:nil \
2245
+ ,
2246
+ port:nil \
2247
+ )
2248
+ if id != nil
2249
+ @id = id
2250
+ end
2251
+ if name != nil
2252
+ @name = name
2253
+ end
2254
+ if healthy != nil
2255
+ @healthy = healthy
2256
+ end
2257
+ if hostname != nil
2258
+ @hostname = hostname
2259
+ end
2260
+ if username != nil
2261
+ @username = username
2262
+ end
2263
+ if password != nil
2264
+ @password = password
2265
+ end
2266
+ if database != nil
2267
+ @database = database
2268
+ end
2269
+ if port_override != nil
2270
+ @port_override = port_override
2271
+ end
2272
+ if port != nil
2273
+ @port = port
2274
+ end
2275
+ end
2276
+ end
2277
+
2278
+ class Memsql
2279
+ # Unique identifier of the Resource.
2280
+ attr_accessor :id
2281
+ # Unique human-readable name of the Resource.
2282
+ attr_accessor :name
2283
+ # True if the datasource is reachable and the credentials are valid.
2284
+ attr_accessor :healthy
2285
+
2286
+ attr_accessor :hostname
2287
+
2288
+ attr_accessor :username
2289
+
2290
+ attr_accessor :password
2291
+
2292
+ attr_accessor :database
2293
+
2294
+ attr_accessor :port_override
2295
+
2296
+ attr_accessor :port
2297
+ def initialize(
2298
+ id:nil \
2299
+ ,
2300
+ name:nil \
2301
+ ,
2302
+ healthy:nil \
2303
+ ,
2304
+ hostname:nil \
2305
+ ,
2306
+ username:nil \
2307
+ ,
2308
+ password:nil \
2309
+ ,
2310
+ database:nil \
2311
+ ,
2312
+ port_override:nil \
2313
+ ,
2314
+ port:nil \
2315
+ )
2316
+ if id != nil
2317
+ @id = id
2318
+ end
2319
+ if name != nil
2320
+ @name = name
2321
+ end
2322
+ if healthy != nil
2323
+ @healthy = healthy
2324
+ end
2325
+ if hostname != nil
2326
+ @hostname = hostname
2327
+ end
2328
+ if username != nil
2329
+ @username = username
2330
+ end
2331
+ if password != nil
2332
+ @password = password
2333
+ end
2334
+ if database != nil
2335
+ @database = database
2336
+ end
2337
+ if port_override != nil
2338
+ @port_override = port_override
2339
+ end
2340
+ if port != nil
2341
+ @port = port
2342
+ end
2343
+ end
2344
+ end
2345
+
2346
+ class Oracle
2347
+ # Unique identifier of the Resource.
2348
+ attr_accessor :id
2349
+ # Unique human-readable name of the Resource.
2350
+ attr_accessor :name
2351
+ # True if the datasource is reachable and the credentials are valid.
2352
+ attr_accessor :healthy
2353
+
2354
+ attr_accessor :hostname
2355
+
2356
+ attr_accessor :username
2357
+
2358
+ attr_accessor :password
2359
+
2360
+ attr_accessor :database
2361
+
2362
+ attr_accessor :port
2363
+
2364
+ attr_accessor :port_override
2365
+
2366
+ attr_accessor :tls_required
2367
+ def initialize(
2368
+ id:nil \
2369
+ ,
2370
+ name:nil \
2371
+ ,
2372
+ healthy:nil \
2373
+ ,
2374
+ hostname:nil \
2375
+ ,
2376
+ username:nil \
2377
+ ,
2378
+ password:nil \
2379
+ ,
2380
+ database:nil \
2381
+ ,
2382
+ port:nil \
2383
+ ,
2384
+ port_override:nil \
2385
+ ,
2386
+ tls_required:nil \
2387
+ )
2388
+ if id != nil
2389
+ @id = id
2390
+ end
2391
+ if name != nil
2392
+ @name = name
2393
+ end
2394
+ if healthy != nil
2395
+ @healthy = healthy
2396
+ end
2397
+ if hostname != nil
2398
+ @hostname = hostname
2399
+ end
2400
+ if username != nil
2401
+ @username = username
2402
+ end
2403
+ if password != nil
2404
+ @password = password
2405
+ end
2406
+ if database != nil
2407
+ @database = database
2408
+ end
2409
+ if port != nil
2410
+ @port = port
2411
+ end
2412
+ if port_override != nil
2413
+ @port_override = port_override
2414
+ end
2415
+ if tls_required != nil
2416
+ @tls_required = tls_required
2417
+ end
2418
+ end
2419
+ end
2420
+
2421
+ class Postgres
2422
+ # Unique identifier of the Resource.
2423
+ attr_accessor :id
2424
+ # Unique human-readable name of the Resource.
2425
+ attr_accessor :name
2426
+ # True if the datasource is reachable and the credentials are valid.
2427
+ attr_accessor :healthy
2428
+
2429
+ attr_accessor :hostname
2430
+
2431
+ attr_accessor :username
2432
+
2433
+ attr_accessor :password
2434
+
2435
+ attr_accessor :database
2436
+
2437
+ attr_accessor :port_override
2438
+
2439
+ attr_accessor :port
2440
+
2441
+ attr_accessor :override_database
2442
+ def initialize(
2443
+ id:nil \
2444
+ ,
2445
+ name:nil \
2446
+ ,
2447
+ healthy:nil \
2448
+ ,
2449
+ hostname:nil \
2450
+ ,
2451
+ username:nil \
2452
+ ,
2453
+ password:nil \
2454
+ ,
2455
+ database:nil \
2456
+ ,
2457
+ port_override:nil \
2458
+ ,
2459
+ port:nil \
2460
+ ,
2461
+ override_database:nil \
2462
+ )
2463
+ if id != nil
2464
+ @id = id
2465
+ end
2466
+ if name != nil
2467
+ @name = name
2468
+ end
2469
+ if healthy != nil
2470
+ @healthy = healthy
2471
+ end
2472
+ if hostname != nil
2473
+ @hostname = hostname
2474
+ end
2475
+ if username != nil
2476
+ @username = username
2477
+ end
2478
+ if password != nil
2479
+ @password = password
2480
+ end
2481
+ if database != nil
2482
+ @database = database
2483
+ end
2484
+ if port_override != nil
2485
+ @port_override = port_override
2486
+ end
2487
+ if port != nil
2488
+ @port = port
2489
+ end
2490
+ if override_database != nil
2491
+ @override_database = override_database
2492
+ end
2493
+ end
2494
+ end
2495
+
2496
+ class AuroraPostgres
2497
+ # Unique identifier of the Resource.
2498
+ attr_accessor :id
2499
+ # Unique human-readable name of the Resource.
2500
+ attr_accessor :name
2501
+ # True if the datasource is reachable and the credentials are valid.
2502
+ attr_accessor :healthy
2503
+
2504
+ attr_accessor :hostname
2505
+
2506
+ attr_accessor :username
2507
+
2508
+ attr_accessor :password
2509
+
2510
+ attr_accessor :database
2511
+
2512
+ attr_accessor :port_override
2513
+
2514
+ attr_accessor :port
2515
+
2516
+ attr_accessor :override_database
2517
+ def initialize(
2518
+ id:nil \
2519
+ ,
2520
+ name:nil \
2521
+ ,
2522
+ healthy:nil \
2523
+ ,
2524
+ hostname:nil \
2525
+ ,
2526
+ username:nil \
2527
+ ,
2528
+ password:nil \
2529
+ ,
2530
+ database:nil \
2531
+ ,
2532
+ port_override:nil \
2533
+ ,
2534
+ port:nil \
2535
+ ,
2536
+ override_database:nil \
2537
+ )
2538
+ if id != nil
2539
+ @id = id
2540
+ end
2541
+ if name != nil
2542
+ @name = name
2543
+ end
2544
+ if healthy != nil
2545
+ @healthy = healthy
2546
+ end
2547
+ if hostname != nil
2548
+ @hostname = hostname
2549
+ end
2550
+ if username != nil
2551
+ @username = username
2552
+ end
2553
+ if password != nil
2554
+ @password = password
2555
+ end
2556
+ if database != nil
2557
+ @database = database
2558
+ end
2559
+ if port_override != nil
2560
+ @port_override = port_override
2561
+ end
2562
+ if port != nil
2563
+ @port = port
2564
+ end
2565
+ if override_database != nil
2566
+ @override_database = override_database
2567
+ end
2568
+ end
2569
+ end
2570
+
2571
+ class Greenplum
2572
+ # Unique identifier of the Resource.
2573
+ attr_accessor :id
2574
+ # Unique human-readable name of the Resource.
2575
+ attr_accessor :name
2576
+ # True if the datasource is reachable and the credentials are valid.
2577
+ attr_accessor :healthy
2578
+
2579
+ attr_accessor :hostname
2580
+
2581
+ attr_accessor :username
2582
+
2583
+ attr_accessor :password
2584
+
2585
+ attr_accessor :database
2586
+
2587
+ attr_accessor :port_override
2588
+
2589
+ attr_accessor :port
2590
+
2591
+ attr_accessor :override_database
2592
+ def initialize(
2593
+ id:nil \
2594
+ ,
2595
+ name:nil \
2596
+ ,
2597
+ healthy:nil \
2598
+ ,
2599
+ hostname:nil \
2600
+ ,
2601
+ username:nil \
2602
+ ,
2603
+ password:nil \
2604
+ ,
2605
+ database:nil \
2606
+ ,
2607
+ port_override:nil \
2608
+ ,
2609
+ port:nil \
2610
+ ,
2611
+ override_database:nil \
2612
+ )
2613
+ if id != nil
2614
+ @id = id
2615
+ end
2616
+ if name != nil
2617
+ @name = name
2618
+ end
2619
+ if healthy != nil
2620
+ @healthy = healthy
2621
+ end
2622
+ if hostname != nil
2623
+ @hostname = hostname
2624
+ end
2625
+ if username != nil
2626
+ @username = username
2627
+ end
2628
+ if password != nil
2629
+ @password = password
2630
+ end
2631
+ if database != nil
2632
+ @database = database
2633
+ end
2634
+ if port_override != nil
2635
+ @port_override = port_override
2636
+ end
2637
+ if port != nil
2638
+ @port = port
2639
+ end
2640
+ if override_database != nil
2641
+ @override_database = override_database
2642
+ end
2643
+ end
2644
+ end
2645
+
2646
+ class Cockroach
2647
+ # Unique identifier of the Resource.
2648
+ attr_accessor :id
2649
+ # Unique human-readable name of the Resource.
2650
+ attr_accessor :name
2651
+ # True if the datasource is reachable and the credentials are valid.
2652
+ attr_accessor :healthy
2653
+
2654
+ attr_accessor :hostname
2655
+
2656
+ attr_accessor :username
2657
+
2658
+ attr_accessor :password
2659
+
2660
+ attr_accessor :database
2661
+
2662
+ attr_accessor :port_override
2663
+
2664
+ attr_accessor :port
2665
+
2666
+ attr_accessor :override_database
2667
+ def initialize(
2668
+ id:nil \
2669
+ ,
2670
+ name:nil \
2671
+ ,
2672
+ healthy:nil \
2673
+ ,
2674
+ hostname:nil \
2675
+ ,
2676
+ username:nil \
2677
+ ,
2678
+ password:nil \
2679
+ ,
2680
+ database:nil \
2681
+ ,
2682
+ port_override:nil \
2683
+ ,
2684
+ port:nil \
2685
+ ,
2686
+ override_database:nil \
2687
+ )
2688
+ if id != nil
2689
+ @id = id
2690
+ end
2691
+ if name != nil
2692
+ @name = name
2693
+ end
2694
+ if healthy != nil
2695
+ @healthy = healthy
2696
+ end
2697
+ if hostname != nil
2698
+ @hostname = hostname
2699
+ end
2700
+ if username != nil
2701
+ @username = username
2702
+ end
2703
+ if password != nil
2704
+ @password = password
2705
+ end
2706
+ if database != nil
2707
+ @database = database
2708
+ end
2709
+ if port_override != nil
2710
+ @port_override = port_override
2711
+ end
2712
+ if port != nil
2713
+ @port = port
2714
+ end
2715
+ if override_database != nil
2716
+ @override_database = override_database
2717
+ end
2718
+ end
2719
+ end
2720
+
2721
+ class Redshift
2722
+ # Unique identifier of the Resource.
2723
+ attr_accessor :id
2724
+ # Unique human-readable name of the Resource.
2725
+ attr_accessor :name
2726
+ # True if the datasource is reachable and the credentials are valid.
2727
+ attr_accessor :healthy
2728
+
2729
+ attr_accessor :hostname
2730
+
2731
+ attr_accessor :username
2732
+
2733
+ attr_accessor :password
2734
+
2735
+ attr_accessor :database
2736
+
2737
+ attr_accessor :port_override
2738
+
2739
+ attr_accessor :port
2740
+
2741
+ attr_accessor :override_database
2742
+ def initialize(
2743
+ id:nil \
2744
+ ,
2745
+ name:nil \
2746
+ ,
2747
+ healthy:nil \
2748
+ ,
2749
+ hostname:nil \
2750
+ ,
2751
+ username:nil \
2752
+ ,
2753
+ password:nil \
2754
+ ,
2755
+ database:nil \
2756
+ ,
2757
+ port_override:nil \
2758
+ ,
2759
+ port:nil \
2760
+ ,
2761
+ override_database:nil \
2762
+ )
2763
+ if id != nil
2764
+ @id = id
2765
+ end
2766
+ if name != nil
2767
+ @name = name
2768
+ end
2769
+ if healthy != nil
2770
+ @healthy = healthy
2771
+ end
2772
+ if hostname != nil
2773
+ @hostname = hostname
2774
+ end
2775
+ if username != nil
2776
+ @username = username
2777
+ end
2778
+ if password != nil
2779
+ @password = password
2780
+ end
2781
+ if database != nil
2782
+ @database = database
2783
+ end
2784
+ if port_override != nil
2785
+ @port_override = port_override
2786
+ end
2787
+ if port != nil
2788
+ @port = port
2789
+ end
2790
+ if override_database != nil
2791
+ @override_database = override_database
2792
+ end
2793
+ end
2794
+ end
2795
+
2796
+ class Presto
2797
+ # Unique identifier of the Resource.
2798
+ attr_accessor :id
2799
+ # Unique human-readable name of the Resource.
2800
+ attr_accessor :name
2801
+ # True if the datasource is reachable and the credentials are valid.
2802
+ attr_accessor :healthy
2803
+
2804
+ attr_accessor :hostname
2805
+
2806
+ attr_accessor :password
2807
+
2808
+ attr_accessor :database
2809
+
2810
+ attr_accessor :port_override
2811
+
2812
+ attr_accessor :port
2813
+
2814
+ attr_accessor :username
2815
+
2816
+ attr_accessor :tls_required
2817
+ def initialize(
2818
+ id:nil \
2819
+ ,
2820
+ name:nil \
2821
+ ,
2822
+ healthy:nil \
2823
+ ,
2824
+ hostname:nil \
2825
+ ,
2826
+ password:nil \
2827
+ ,
2828
+ database:nil \
2829
+ ,
2830
+ port_override:nil \
2831
+ ,
2832
+ port:nil \
2833
+ ,
2834
+ username:nil \
2835
+ ,
2836
+ tls_required:nil \
2837
+ )
2838
+ if id != nil
2839
+ @id = id
2840
+ end
2841
+ if name != nil
2842
+ @name = name
2843
+ end
2844
+ if healthy != nil
2845
+ @healthy = healthy
2846
+ end
2847
+ if hostname != nil
2848
+ @hostname = hostname
2849
+ end
2850
+ if password != nil
2851
+ @password = password
2852
+ end
2853
+ if database != nil
2854
+ @database = database
2855
+ end
2856
+ if port_override != nil
2857
+ @port_override = port_override
2858
+ end
2859
+ if port != nil
2860
+ @port = port
2861
+ end
2862
+ if username != nil
2863
+ @username = username
2864
+ end
2865
+ if tls_required != nil
2866
+ @tls_required = tls_required
2867
+ end
2868
+ end
2869
+ end
2870
+
2871
+ class RDP
2872
+ # Unique identifier of the Resource.
2873
+ attr_accessor :id
2874
+ # Unique human-readable name of the Resource.
2875
+ attr_accessor :name
2876
+ # True if the datasource is reachable and the credentials are valid.
2877
+ attr_accessor :healthy
2878
+
2879
+ attr_accessor :hostname
2880
+
2881
+ attr_accessor :username
2882
+
2883
+ attr_accessor :password
2884
+
2885
+ attr_accessor :port_override
2886
+
2887
+ attr_accessor :port
2888
+ def initialize(
2889
+ id:nil \
2890
+ ,
2891
+ name:nil \
2892
+ ,
2893
+ healthy:nil \
2894
+ ,
2895
+ hostname:nil \
2896
+ ,
2897
+ username:nil \
2898
+ ,
2899
+ password:nil \
2900
+ ,
2901
+ port_override:nil \
2902
+ ,
2903
+ port:nil \
2904
+ )
2905
+ if id != nil
2906
+ @id = id
2907
+ end
2908
+ if name != nil
2909
+ @name = name
2910
+ end
2911
+ if healthy != nil
2912
+ @healthy = healthy
2913
+ end
2914
+ if hostname != nil
2915
+ @hostname = hostname
2916
+ end
2917
+ if username != nil
2918
+ @username = username
2919
+ end
2920
+ if password != nil
2921
+ @password = password
2922
+ end
2923
+ if port_override != nil
2924
+ @port_override = port_override
2925
+ end
2926
+ if port != nil
2927
+ @port = port
2928
+ end
2929
+ end
2930
+ end
2931
+
2932
+ class Redis
2933
+ # Unique identifier of the Resource.
2934
+ attr_accessor :id
2935
+ # Unique human-readable name of the Resource.
2936
+ attr_accessor :name
2937
+ # True if the datasource is reachable and the credentials are valid.
2938
+ attr_accessor :healthy
2939
+
2940
+ attr_accessor :hostname
2941
+
2942
+ attr_accessor :port_override
2943
+
2944
+ attr_accessor :password
2945
+
2946
+ attr_accessor :port
2947
+ def initialize(
2948
+ id:nil \
2949
+ ,
2950
+ name:nil \
2951
+ ,
2952
+ healthy:nil \
2953
+ ,
2954
+ hostname:nil \
2955
+ ,
2956
+ port_override:nil \
2957
+ ,
2958
+ password:nil \
2959
+ ,
2960
+ port:nil \
2961
+ )
2962
+ if id != nil
2963
+ @id = id
2964
+ end
2965
+ if name != nil
2966
+ @name = name
2967
+ end
2968
+ if healthy != nil
2969
+ @healthy = healthy
2970
+ end
2971
+ if hostname != nil
2972
+ @hostname = hostname
2973
+ end
2974
+ if port_override != nil
2975
+ @port_override = port_override
2976
+ end
2977
+ if password != nil
2978
+ @password = password
2979
+ end
2980
+ if port != nil
2981
+ @port = port
2982
+ end
2983
+ end
2984
+ end
2985
+
2986
+ class ElasticacheRedis
2987
+ # Unique identifier of the Resource.
2988
+ attr_accessor :id
2989
+ # Unique human-readable name of the Resource.
2990
+ attr_accessor :name
2991
+ # True if the datasource is reachable and the credentials are valid.
2992
+ attr_accessor :healthy
2993
+
2994
+ attr_accessor :hostname
2995
+
2996
+ attr_accessor :port_override
2997
+
2998
+ attr_accessor :password
2999
+
3000
+ attr_accessor :port
3001
+
3002
+ attr_accessor :tls_required
3003
+ def initialize(
3004
+ id:nil \
3005
+ ,
3006
+ name:nil \
3007
+ ,
3008
+ healthy:nil \
3009
+ ,
3010
+ hostname:nil \
3011
+ ,
3012
+ port_override:nil \
3013
+ ,
3014
+ password:nil \
3015
+ ,
3016
+ port:nil \
3017
+ ,
3018
+ tls_required:nil \
3019
+ )
3020
+ if id != nil
3021
+ @id = id
3022
+ end
3023
+ if name != nil
3024
+ @name = name
3025
+ end
3026
+ if healthy != nil
3027
+ @healthy = healthy
3028
+ end
3029
+ if hostname != nil
3030
+ @hostname = hostname
3031
+ end
3032
+ if port_override != nil
3033
+ @port_override = port_override
3034
+ end
3035
+ if password != nil
3036
+ @password = password
3037
+ end
3038
+ if port != nil
3039
+ @port = port
3040
+ end
3041
+ if tls_required != nil
3042
+ @tls_required = tls_required
3043
+ end
3044
+ end
3045
+ end
3046
+
3047
+ class Snowflake
3048
+ # Unique identifier of the Resource.
3049
+ attr_accessor :id
3050
+ # Unique human-readable name of the Resource.
3051
+ attr_accessor :name
3052
+ # True if the datasource is reachable and the credentials are valid.
3053
+ attr_accessor :healthy
3054
+
3055
+ attr_accessor :hostname
3056
+
3057
+ attr_accessor :username
3058
+
3059
+ attr_accessor :password
3060
+
3061
+ attr_accessor :database
3062
+
3063
+ attr_accessor :schema
3064
+
3065
+ attr_accessor :port_override
3066
+ def initialize(
3067
+ id:nil \
3068
+ ,
3069
+ name:nil \
3070
+ ,
3071
+ healthy:nil \
3072
+ ,
3073
+ hostname:nil \
3074
+ ,
3075
+ username:nil \
3076
+ ,
3077
+ password:nil \
3078
+ ,
3079
+ database:nil \
3080
+ ,
3081
+ schema:nil \
3082
+ ,
3083
+ port_override:nil \
3084
+ )
3085
+ if id != nil
3086
+ @id = id
3087
+ end
3088
+ if name != nil
3089
+ @name = name
3090
+ end
3091
+ if healthy != nil
3092
+ @healthy = healthy
3093
+ end
3094
+ if hostname != nil
3095
+ @hostname = hostname
3096
+ end
3097
+ if username != nil
3098
+ @username = username
3099
+ end
3100
+ if password != nil
3101
+ @password = password
3102
+ end
3103
+ if database != nil
3104
+ @database = database
3105
+ end
3106
+ if schema != nil
3107
+ @schema = schema
3108
+ end
3109
+ if port_override != nil
3110
+ @port_override = port_override
3111
+ end
3112
+ end
3113
+ end
3114
+
3115
+ class SQLServer
3116
+ # Unique identifier of the Resource.
3117
+ attr_accessor :id
3118
+ # Unique human-readable name of the Resource.
3119
+ attr_accessor :name
3120
+ # True if the datasource is reachable and the credentials are valid.
3121
+ attr_accessor :healthy
3122
+
3123
+ attr_accessor :hostname
3124
+
3125
+ attr_accessor :username
3126
+
3127
+ attr_accessor :password
3128
+
3129
+ attr_accessor :database
3130
+
3131
+ attr_accessor :port_override
3132
+
3133
+ attr_accessor :schema
3134
+
3135
+ attr_accessor :port
3136
+
3137
+ attr_accessor :override_database
3138
+ def initialize(
3139
+ id:nil \
3140
+ ,
3141
+ name:nil \
3142
+ ,
3143
+ healthy:nil \
3144
+ ,
3145
+ hostname:nil \
3146
+ ,
3147
+ username:nil \
3148
+ ,
3149
+ password:nil \
3150
+ ,
3151
+ database:nil \
3152
+ ,
3153
+ port_override:nil \
3154
+ ,
3155
+ schema:nil \
3156
+ ,
3157
+ port:nil \
3158
+ ,
3159
+ override_database:nil \
3160
+ )
3161
+ if id != nil
3162
+ @id = id
3163
+ end
3164
+ if name != nil
3165
+ @name = name
3166
+ end
3167
+ if healthy != nil
3168
+ @healthy = healthy
3169
+ end
3170
+ if hostname != nil
3171
+ @hostname = hostname
3172
+ end
3173
+ if username != nil
3174
+ @username = username
3175
+ end
3176
+ if password != nil
3177
+ @password = password
3178
+ end
3179
+ if database != nil
3180
+ @database = database
3181
+ end
3182
+ if port_override != nil
3183
+ @port_override = port_override
3184
+ end
3185
+ if schema != nil
3186
+ @schema = schema
3187
+ end
3188
+ if port != nil
3189
+ @port = port
3190
+ end
3191
+ if override_database != nil
3192
+ @override_database = override_database
3193
+ end
3194
+ end
3195
+ end
3196
+
3197
+ class SSH
3198
+ # Unique identifier of the Resource.
3199
+ attr_accessor :id
3200
+ # Unique human-readable name of the Resource.
3201
+ attr_accessor :name
3202
+ # True if the datasource is reachable and the credentials are valid.
3203
+ attr_accessor :healthy
3204
+
3205
+ attr_accessor :hostname
3206
+
3207
+ attr_accessor :username
3208
+
3209
+ attr_accessor :port
3210
+
3211
+ attr_accessor :public_key
3212
+
3213
+ attr_accessor :port_forwarding
3214
+ def initialize(
3215
+ id:nil \
3216
+ ,
3217
+ name:nil \
3218
+ ,
3219
+ healthy:nil \
3220
+ ,
3221
+ hostname:nil \
3222
+ ,
3223
+ username:nil \
3224
+ ,
3225
+ port:nil \
3226
+ ,
3227
+ public_key:nil \
3228
+ ,
3229
+ port_forwarding:nil \
3230
+ )
3231
+ if id != nil
3232
+ @id = id
3233
+ end
3234
+ if name != nil
3235
+ @name = name
3236
+ end
3237
+ if healthy != nil
3238
+ @healthy = healthy
3239
+ end
3240
+ if hostname != nil
3241
+ @hostname = hostname
3242
+ end
3243
+ if username != nil
3244
+ @username = username
3245
+ end
3246
+ if port != nil
3247
+ @port = port
3248
+ end
3249
+ if public_key != nil
3250
+ @public_key = public_key
3251
+ end
3252
+ if port_forwarding != nil
3253
+ @port_forwarding = port_forwarding
3254
+ end
3255
+ end
3256
+ end
3257
+
3258
+ class Sybase
3259
+ # Unique identifier of the Resource.
3260
+ attr_accessor :id
3261
+ # Unique human-readable name of the Resource.
3262
+ attr_accessor :name
3263
+ # True if the datasource is reachable and the credentials are valid.
3264
+ attr_accessor :healthy
3265
+
3266
+ attr_accessor :hostname
3267
+
3268
+ attr_accessor :username
3269
+
3270
+ attr_accessor :port_override
3271
+
3272
+ attr_accessor :port
3273
+
3274
+ attr_accessor :password
3275
+ def initialize(
3276
+ id:nil \
3277
+ ,
3278
+ name:nil \
3279
+ ,
3280
+ healthy:nil \
3281
+ ,
3282
+ hostname:nil \
3283
+ ,
3284
+ username:nil \
3285
+ ,
3286
+ port_override:nil \
3287
+ ,
3288
+ port:nil \
3289
+ ,
3290
+ password:nil \
3291
+ )
3292
+ if id != nil
3293
+ @id = id
3294
+ end
3295
+ if name != nil
3296
+ @name = name
3297
+ end
3298
+ if healthy != nil
3299
+ @healthy = healthy
3300
+ end
3301
+ if hostname != nil
3302
+ @hostname = hostname
3303
+ end
3304
+ if username != nil
3305
+ @username = username
3306
+ end
3307
+ if port_override != nil
3308
+ @port_override = port_override
3309
+ end
3310
+ if port != nil
3311
+ @port = port
3312
+ end
3313
+ if password != nil
3314
+ @password = password
3315
+ end
3316
+ end
3317
+ end
3318
+
3319
+ class SybaseIQ
3320
+ # Unique identifier of the Resource.
3321
+ attr_accessor :id
3322
+ # Unique human-readable name of the Resource.
3323
+ attr_accessor :name
3324
+ # True if the datasource is reachable and the credentials are valid.
3325
+ attr_accessor :healthy
3326
+
3327
+ attr_accessor :hostname
3328
+
3329
+ attr_accessor :username
3330
+
3331
+ attr_accessor :port_override
3332
+
3333
+ attr_accessor :port
3334
+
3335
+ attr_accessor :password
3336
+ def initialize(
3337
+ id:nil \
3338
+ ,
3339
+ name:nil \
3340
+ ,
3341
+ healthy:nil \
3342
+ ,
3343
+ hostname:nil \
3344
+ ,
3345
+ username:nil \
3346
+ ,
3347
+ port_override:nil \
3348
+ ,
3349
+ port:nil \
3350
+ ,
3351
+ password:nil \
3352
+ )
3353
+ if id != nil
3354
+ @id = id
3355
+ end
3356
+ if name != nil
3357
+ @name = name
3358
+ end
3359
+ if healthy != nil
3360
+ @healthy = healthy
3361
+ end
3362
+ if hostname != nil
3363
+ @hostname = hostname
3364
+ end
3365
+ if username != nil
3366
+ @username = username
3367
+ end
3368
+ if port_override != nil
3369
+ @port_override = port_override
3370
+ end
3371
+ if port != nil
3372
+ @port = port
3373
+ end
3374
+ if password != nil
3375
+ @password = password
3376
+ end
3377
+ end
3378
+ end
3379
+
3380
+ class Teradata
3381
+ # Unique identifier of the Resource.
3382
+ attr_accessor :id
3383
+ # Unique human-readable name of the Resource.
3384
+ attr_accessor :name
3385
+ # True if the datasource is reachable and the credentials are valid.
3386
+ attr_accessor :healthy
3387
+
3388
+ attr_accessor :hostname
3389
+
3390
+ attr_accessor :username
3391
+
3392
+ attr_accessor :password
3393
+
3394
+ attr_accessor :port_override
3395
+
3396
+ attr_accessor :port
3397
+ def initialize(
3398
+ id:nil \
3399
+ ,
3400
+ name:nil \
3401
+ ,
3402
+ healthy:nil \
3403
+ ,
3404
+ hostname:nil \
3405
+ ,
3406
+ username:nil \
3407
+ ,
3408
+ password:nil \
3409
+ ,
3410
+ port_override:nil \
3411
+ ,
3412
+ port:nil \
3413
+ )
3414
+ if id != nil
3415
+ @id = id
3416
+ end
3417
+ if name != nil
3418
+ @name = name
3419
+ end
3420
+ if healthy != nil
3421
+ @healthy = healthy
3422
+ end
3423
+ if hostname != nil
3424
+ @hostname = hostname
3425
+ end
3426
+ if username != nil
3427
+ @username = username
3428
+ end
3429
+ if password != nil
3430
+ @password = password
3431
+ end
3432
+ if port_override != nil
3433
+ @port_override = port_override
3434
+ end
3435
+ if port != nil
3436
+ @port = port
3437
+ end
3438
+ end
3439
+ end
3440
+ # NodeCreateResponse reports how the Nodes were created in the system.
3441
+ class NodeCreateResponse
3442
+ # Reserved for future use.
3443
+ attr_accessor :meta
3444
+ # The created Node.
3445
+ attr_accessor :node
3446
+ # The auth token generated for the Node. The Node will use this token to
3447
+ # authenticate with the strongDM API.
3448
+ attr_accessor :token
3449
+ # Rate limit information.
3450
+ attr_accessor :rate_limit
3451
+ def initialize(
3452
+ meta:nil \
3453
+ ,
3454
+ node:nil \
3455
+ ,
3456
+ token:nil \
3457
+ ,
3458
+ rate_limit:nil \
3459
+ )
3460
+ if meta != nil
3461
+ @meta = meta
3462
+ end
3463
+ if node != nil
3464
+ @node = node
3465
+ end
3466
+ if token != nil
3467
+ @token = token
3468
+ end
3469
+ if rate_limit != nil
3470
+ @rate_limit = rate_limit
3471
+ end
3472
+ end
3473
+ end
3474
+ # NodeGetResponse returns a requested Node.
3475
+ class NodeGetResponse
3476
+ # Reserved for future use.
3477
+ attr_accessor :meta
3478
+ # The requested Node.
3479
+ attr_accessor :node
3480
+ # Rate limit information.
3481
+ attr_accessor :rate_limit
3482
+ def initialize(
3483
+ meta:nil \
3484
+ ,
3485
+ node:nil \
3486
+ ,
3487
+ rate_limit:nil \
3488
+ )
3489
+ if meta != nil
3490
+ @meta = meta
3491
+ end
3492
+ if node != nil
3493
+ @node = node
3494
+ end
3495
+ if rate_limit != nil
3496
+ @rate_limit = rate_limit
3497
+ end
3498
+ end
3499
+ end
3500
+ # NodeUpdateResponse returns the fields of a Node after it has been updated by
3501
+ # a NodeUpdateRequest.
3502
+ class NodeUpdateResponse
3503
+ # Reserved for future use.
3504
+ attr_accessor :meta
3505
+ # The updated Node.
3506
+ attr_accessor :node
3507
+ # Rate limit information.
3508
+ attr_accessor :rate_limit
3509
+ def initialize(
3510
+ meta:nil \
3511
+ ,
3512
+ node:nil \
3513
+ ,
3514
+ rate_limit:nil \
3515
+ )
3516
+ if meta != nil
3517
+ @meta = meta
3518
+ end
3519
+ if node != nil
3520
+ @node = node
3521
+ end
3522
+ if rate_limit != nil
3523
+ @rate_limit = rate_limit
3524
+ end
3525
+ end
3526
+ end
3527
+ # NodeDeleteResponse returns information about a Node that was deleted.
3528
+ class NodeDeleteResponse
3529
+ # Reserved for future use.
3530
+ attr_accessor :meta
3531
+ # Rate limit information.
3532
+ attr_accessor :rate_limit
3533
+ def initialize(
3534
+ meta:nil \
3535
+ ,
3536
+ rate_limit:nil \
3537
+ )
3538
+ if meta != nil
3539
+ @meta = meta
3540
+ end
3541
+ if rate_limit != nil
3542
+ @rate_limit = rate_limit
3543
+ end
3544
+ end
3545
+ end
3546
+ # Relay represents a StrongDM CLI installation running in relay mode.
3547
+ class Relay
3548
+ # Unique identifier of the Relay.
3549
+ attr_accessor :id
3550
+ # Unique human-readable name of the Relay. Generated if not provided on create.
3551
+ attr_accessor :name
3552
+ # The current state of the relay. One of: "new", "verifying_restart",
3553
+ # "restarting", "started", "stopped", "dead", "unknown",
3554
+ attr_accessor :state
3555
+ def initialize(
3556
+ id:nil \
3557
+ ,
3558
+ name:nil \
3559
+ ,
3560
+ state:nil \
3561
+ )
3562
+ if id != nil
3563
+ @id = id
3564
+ end
3565
+ if name != nil
3566
+ @name = name
3567
+ end
3568
+ if state != nil
3569
+ @state = state
3570
+ end
3571
+ end
3572
+ end
3573
+ # Gateway represents a StrongDM CLI installation running in gateway mode.
3574
+ class Gateway
3575
+ # Unique identifier of the Gateway.
3576
+ attr_accessor :id
3577
+ # Unique human-readable name of the Gateway. Generated if not provided on create.
3578
+ attr_accessor :name
3579
+ # The current state of the gateway. One of: "new", "verifying_restart",
3580
+ # "restarting", "started", "stopped", "dead", "unknown"
3581
+ attr_accessor :state
3582
+ # The public hostname/port tuple at which the gateway will be accessible to clients.
3583
+ attr_accessor :listen_address
3584
+ # The hostname/port tuple which the gateway daemon will bind to.
3585
+ # If not provided on create, set to "0.0.0.0:<listen_address_port>".
3586
+ attr_accessor :bind_address
3587
+ def initialize(
3588
+ id:nil \
3589
+ ,
3590
+ name:nil \
3591
+ ,
3592
+ state:nil \
3593
+ ,
3594
+ listen_address:nil \
3595
+ ,
3596
+ bind_address:nil \
3597
+ )
3598
+ if id != nil
3599
+ @id = id
3600
+ end
3601
+ if name != nil
3602
+ @name = name
3603
+ end
3604
+ if state != nil
3605
+ @state = state
3606
+ end
3607
+ if listen_address != nil
3608
+ @listen_address = listen_address
3609
+ end
3610
+ if bind_address != nil
3611
+ @bind_address = bind_address
3612
+ end
3613
+ end
3614
+ end
3615
+ # ResourceCreateResponse reports how the Resources were created in the system.
3616
+ class ResourceCreateResponse
3617
+ # Reserved for future use.
3618
+ attr_accessor :meta
3619
+ # The created Resource.
3620
+ attr_accessor :resource
3621
+ # Rate limit information.
3622
+ attr_accessor :rate_limit
3623
+ def initialize(
3624
+ meta:nil \
3625
+ ,
3626
+ resource:nil \
3627
+ ,
3628
+ rate_limit:nil \
3629
+ )
3630
+ if meta != nil
3631
+ @meta = meta
3632
+ end
3633
+ if resource != nil
3634
+ @resource = resource
3635
+ end
3636
+ if rate_limit != nil
3637
+ @rate_limit = rate_limit
3638
+ end
3639
+ end
3640
+ end
3641
+ # ResourceGetResponse returns a requested Resource.
3642
+ class ResourceGetResponse
3643
+ # Reserved for future use.
3644
+ attr_accessor :meta
3645
+ # The requested Resource.
3646
+ attr_accessor :resource
3647
+ # Rate limit information.
3648
+ attr_accessor :rate_limit
3649
+ def initialize(
3650
+ meta:nil \
3651
+ ,
3652
+ resource:nil \
3653
+ ,
3654
+ rate_limit:nil \
3655
+ )
3656
+ if meta != nil
3657
+ @meta = meta
3658
+ end
3659
+ if resource != nil
3660
+ @resource = resource
3661
+ end
3662
+ if rate_limit != nil
3663
+ @rate_limit = rate_limit
3664
+ end
3665
+ end
3666
+ end
3667
+ # ResourceUpdateResponse returns the fields of a Resource after it has been updated by
3668
+ # a ResourceUpdateRequest.
3669
+ class ResourceUpdateResponse
3670
+ # Reserved for future use.
3671
+ attr_accessor :meta
3672
+ # The updated Resource.
3673
+ attr_accessor :resource
3674
+ # Rate limit information.
3675
+ attr_accessor :rate_limit
3676
+ def initialize(
3677
+ meta:nil \
3678
+ ,
3679
+ resource:nil \
3680
+ ,
3681
+ rate_limit:nil \
3682
+ )
3683
+ if meta != nil
3684
+ @meta = meta
3685
+ end
3686
+ if resource != nil
3687
+ @resource = resource
3688
+ end
3689
+ if rate_limit != nil
3690
+ @rate_limit = rate_limit
3691
+ end
3692
+ end
3693
+ end
3694
+ # ResourceDeleteResponse returns information about a Resource that was deleted.
3695
+ class ResourceDeleteResponse
3696
+ # Reserved for future use.
3697
+ attr_accessor :meta
3698
+ # Rate limit information.
3699
+ attr_accessor :rate_limit
3700
+ def initialize(
3701
+ meta:nil \
3702
+ ,
3703
+ rate_limit:nil \
3704
+ )
3705
+ if meta != nil
3706
+ @meta = meta
3707
+ end
3708
+ if rate_limit != nil
3709
+ @rate_limit = rate_limit
3710
+ end
3711
+ end
3712
+ end
3713
+ # RoleAttachmentCreateResponse reports how the RoleAttachments were created in the system.
3714
+ class RoleAttachmentCreateResponse
3715
+ # Reserved for future use.
3716
+ attr_accessor :meta
3717
+ # The created RoleAttachment.
3718
+ attr_accessor :role_attachment
3719
+ # Rate limit information.
3720
+ attr_accessor :rate_limit
3721
+ def initialize(
3722
+ meta:nil \
3723
+ ,
3724
+ role_attachment:nil \
3725
+ ,
3726
+ rate_limit:nil \
3727
+ )
3728
+ if meta != nil
3729
+ @meta = meta
3730
+ end
3731
+ if role_attachment != nil
3732
+ @role_attachment = role_attachment
3733
+ end
3734
+ if rate_limit != nil
3735
+ @rate_limit = rate_limit
3736
+ end
3737
+ end
3738
+ end
3739
+ # RoleAttachmentGetResponse returns a requested RoleAttachment.
3740
+ class RoleAttachmentGetResponse
3741
+ # Reserved for future use.
3742
+ attr_accessor :meta
3743
+ # The requested RoleAttachment.
3744
+ attr_accessor :role_attachment
3745
+ # Rate limit information.
3746
+ attr_accessor :rate_limit
3747
+ def initialize(
3748
+ meta:nil \
3749
+ ,
3750
+ role_attachment:nil \
3751
+ ,
3752
+ rate_limit:nil \
3753
+ )
3754
+ if meta != nil
3755
+ @meta = meta
3756
+ end
3757
+ if role_attachment != nil
3758
+ @role_attachment = role_attachment
3759
+ end
3760
+ if rate_limit != nil
3761
+ @rate_limit = rate_limit
3762
+ end
3763
+ end
3764
+ end
3765
+ # RoleAttachmentDeleteResponse returns information about a RoleAttachment that was deleted.
3766
+ class RoleAttachmentDeleteResponse
3767
+ # Reserved for future use.
3768
+ attr_accessor :meta
3769
+ # Rate limit information.
3770
+ attr_accessor :rate_limit
3771
+ def initialize(
3772
+ meta:nil \
3773
+ ,
3774
+ rate_limit:nil \
3775
+ )
3776
+ if meta != nil
3777
+ @meta = meta
3778
+ end
3779
+ if rate_limit != nil
3780
+ @rate_limit = rate_limit
3781
+ end
3782
+ end
3783
+ end
3784
+ # A RoleAttachment assigns a role to a composite role.
3785
+ class RoleAttachment
3786
+ # Unique identifier of the RoleAttachment.
3787
+ attr_accessor :id
3788
+ # The id of the composite role of this RoleAttachment.
3789
+ attr_accessor :composite_role_id
3790
+ # The id of the attached role of this RoleAttachment.
3791
+ attr_accessor :attached_role_id
3792
+ def initialize(
3793
+ id:nil \
3794
+ ,
3795
+ composite_role_id:nil \
3796
+ ,
3797
+ attached_role_id:nil \
3798
+ )
3799
+ if id != nil
3800
+ @id = id
3801
+ end
3802
+ if composite_role_id != nil
3803
+ @composite_role_id = composite_role_id
3804
+ end
3805
+ if attached_role_id != nil
3806
+ @attached_role_id = attached_role_id
3807
+ end
3808
+ end
3809
+ end
3810
+ # RoleGrantCreateResponse reports how the RoleGrants were created in the system.
3811
+ class RoleGrantCreateResponse
3812
+ # Reserved for future use.
3813
+ attr_accessor :meta
3814
+ # The created RoleGrant.
3815
+ attr_accessor :role_grant
3816
+ # Rate limit information.
3817
+ attr_accessor :rate_limit
3818
+ def initialize(
3819
+ meta:nil \
3820
+ ,
3821
+ role_grant:nil \
3822
+ ,
3823
+ rate_limit:nil \
3824
+ )
3825
+ if meta != nil
3826
+ @meta = meta
3827
+ end
3828
+ if role_grant != nil
3829
+ @role_grant = role_grant
3830
+ end
3831
+ if rate_limit != nil
3832
+ @rate_limit = rate_limit
3833
+ end
3834
+ end
3835
+ end
3836
+ # RoleGrantGetResponse returns a requested RoleGrant.
3837
+ class RoleGrantGetResponse
3838
+ # Reserved for future use.
3839
+ attr_accessor :meta
3840
+ # The requested RoleGrant.
3841
+ attr_accessor :role_grant
3842
+ # Rate limit information.
3843
+ attr_accessor :rate_limit
3844
+ def initialize(
3845
+ meta:nil \
3846
+ ,
3847
+ role_grant:nil \
3848
+ ,
3849
+ rate_limit:nil \
3850
+ )
3851
+ if meta != nil
3852
+ @meta = meta
3853
+ end
3854
+ if role_grant != nil
3855
+ @role_grant = role_grant
3856
+ end
3857
+ if rate_limit != nil
3858
+ @rate_limit = rate_limit
3859
+ end
3860
+ end
3861
+ end
3862
+ # RoleGrantDeleteResponse returns information about a RoleGrant that was deleted.
3863
+ class RoleGrantDeleteResponse
3864
+ # Reserved for future use.
3865
+ attr_accessor :meta
3866
+ # Rate limit information.
3867
+ attr_accessor :rate_limit
3868
+ def initialize(
3869
+ meta:nil \
3870
+ ,
3871
+ rate_limit:nil \
3872
+ )
3873
+ if meta != nil
3874
+ @meta = meta
3875
+ end
3876
+ if rate_limit != nil
3877
+ @rate_limit = rate_limit
3878
+ end
3879
+ end
3880
+ end
3881
+ # A RoleGrant connects a resource to a role, granting members of the role
3882
+ # access to that resource.
3883
+ class RoleGrant
3884
+ # Unique identifier of the RoleGrant.
3885
+ attr_accessor :id
3886
+ # The id of the resource of this RoleGrant.
3887
+ attr_accessor :resource_id
3888
+ # The id of the attached role of this RoleGrant.
3889
+ attr_accessor :role_id
3890
+ def initialize(
3891
+ id:nil \
3892
+ ,
3893
+ resource_id:nil \
3894
+ ,
3895
+ role_id:nil \
3896
+ )
3897
+ if id != nil
3898
+ @id = id
3899
+ end
3900
+ if resource_id != nil
3901
+ @resource_id = resource_id
3902
+ end
3903
+ if role_id != nil
3904
+ @role_id = role_id
3905
+ end
3906
+ end
3907
+ end
3908
+ # RoleCreateResponse reports how the Roles were created in the system. It can
3909
+ # communicate partial successes or failures.
3910
+ class RoleCreateResponse
3911
+ # Reserved for future use.
3912
+ attr_accessor :meta
3913
+ # The created Role.
3914
+ attr_accessor :role
3915
+ # Rate limit information.
3916
+ attr_accessor :rate_limit
3917
+ def initialize(
3918
+ meta:nil \
3919
+ ,
3920
+ role:nil \
3921
+ ,
3922
+ rate_limit:nil \
3923
+ )
3924
+ if meta != nil
3925
+ @meta = meta
3926
+ end
3927
+ if role != nil
3928
+ @role = role
3929
+ end
3930
+ if rate_limit != nil
3931
+ @rate_limit = rate_limit
3932
+ end
3933
+ end
3934
+ end
3935
+ # RoleGetResponse returns a requested Role.
3936
+ class RoleGetResponse
3937
+ # Reserved for future use.
3938
+ attr_accessor :meta
3939
+ # The requested Role.
3940
+ attr_accessor :role
3941
+ # Rate limit information.
3942
+ attr_accessor :rate_limit
3943
+ def initialize(
3944
+ meta:nil \
3945
+ ,
3946
+ role:nil \
3947
+ ,
3948
+ rate_limit:nil \
3949
+ )
3950
+ if meta != nil
3951
+ @meta = meta
3952
+ end
3953
+ if role != nil
3954
+ @role = role
3955
+ end
3956
+ if rate_limit != nil
3957
+ @rate_limit = rate_limit
3958
+ end
3959
+ end
3960
+ end
3961
+ # RoleUpdateResponse returns the fields of a Role after it has been updated by
3962
+ # a RoleUpdateRequest.
3963
+ class RoleUpdateResponse
3964
+ # Reserved for future use.
3965
+ attr_accessor :meta
3966
+ # The updated Role.
3967
+ attr_accessor :role
3968
+ # Rate limit information.
3969
+ attr_accessor :rate_limit
3970
+ def initialize(
3971
+ meta:nil \
3972
+ ,
3973
+ role:nil \
3974
+ ,
3975
+ rate_limit:nil \
3976
+ )
3977
+ if meta != nil
3978
+ @meta = meta
3979
+ end
3980
+ if role != nil
3981
+ @role = role
3982
+ end
3983
+ if rate_limit != nil
3984
+ @rate_limit = rate_limit
3985
+ end
3986
+ end
3987
+ end
3988
+ # RoleDeleteResponse returns information about a Role that was deleted.
3989
+ class RoleDeleteResponse
3990
+ # Reserved for future use.
3991
+ attr_accessor :meta
3992
+ # Rate limit information.
3993
+ attr_accessor :rate_limit
3994
+ def initialize(
3995
+ meta:nil \
3996
+ ,
3997
+ rate_limit:nil \
3998
+ )
3999
+ if meta != nil
4000
+ @meta = meta
4001
+ end
4002
+ if rate_limit != nil
4003
+ @rate_limit = rate_limit
4004
+ end
4005
+ end
4006
+ end
4007
+ # 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.
4008
+ class Role
4009
+ # Unique identifier of the Role.
4010
+ attr_accessor :id
4011
+ # Unique human-readable name of the Role.
4012
+ attr_accessor :name
4013
+ # True if the Role is a composite role.
4014
+ attr_accessor :composite
4015
+ def initialize(
4016
+ id:nil \
4017
+ ,
4018
+ name:nil \
4019
+ ,
4020
+ composite:nil \
4021
+ )
4022
+ if id != nil
4023
+ @id = id
4024
+ end
4025
+ if name != nil
4026
+ @name = name
4027
+ end
4028
+ if composite != nil
4029
+ @composite = composite
4030
+ end
4031
+ end
4032
+ end
4033
+ end