strongdm 11.1.0 → 11.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d70b29d849fdc661aadcb64d420575985750b357b25288b12efaad1795d043fb
4
- data.tar.gz: b20940f982484ca33120e5115749a70ccdaa8f0b3efcb22bdcf34d7b1012bf76
3
+ metadata.gz: cf112f2b666ab279d047be8f65c315b23a0b82abb1d1f7586e3eb745050081ec
4
+ data.tar.gz: a4b198597ac8841e6cb9c4e0c3804c547e9c2f4e46f4c98066e33475c670d510
5
5
  SHA512:
6
- metadata.gz: '05283fd04c6cff175ebf116d6f2e6d959d54a3758e60c2f00442c11e89f4462ae613cb66984901a83e21be3bbacd25984212ce447d5827ce7d5fb41663eb41bb'
7
- data.tar.gz: 6b23dd77c57954c34ae02a7295338f358c15b73a07fec6c00c681af26c24840f26e79541e91c26c6e2fd3e921f8ad027d9ebe58e45c2f12d54e4cea9e42d1f62
6
+ metadata.gz: 17595f2178daab0a890b0dfb30379dcdc8d39dff683916dc7b1fb49ecbd0502291405951d417c83fb435c3d1dbc39924b7e2128db689a91d9930692e3182c154
7
+ data.tar.gz: ad4e1c80993118c981396e2c31da4ecb5b3d460b95562f18d504a3895c4fdb004c29f0282c7fbc58635176c705263405c2be4ed38e1b24bb35673543bba28864
data/.git/ORIG_HEAD CHANGED
@@ -1 +1 @@
1
- 3a2a67e03f5b2f1bbcc8d2fa9dffcba764d76196
1
+ be8c2d87c98f8febe52ace473a9d3382d59d8ad2
data/.git/index CHANGED
Binary file
data/.git/logs/HEAD CHANGED
@@ -1,3 +1,3 @@
1
- 0000000000000000000000000000000000000000 3a2a67e03f5b2f1bbcc8d2fa9dffcba764d76196 root <root@45cacd354dc7.(none)> 1721234743 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
2
- 3a2a67e03f5b2f1bbcc8d2fa9dffcba764d76196 3a2a67e03f5b2f1bbcc8d2fa9dffcba764d76196 root <root@45cacd354dc7.(none)> 1721234743 +0000 checkout: moving from master to master
3
- 3a2a67e03f5b2f1bbcc8d2fa9dffcba764d76196 be8c2d87c98f8febe52ace473a9d3382d59d8ad2 root <root@45cacd354dc7.(none)> 1721234743 +0000 merge origin/development: Fast-forward
1
+ 0000000000000000000000000000000000000000 be8c2d87c98f8febe52ace473a9d3382d59d8ad2 root <root@8af2e41185c1.(none)> 1722535894 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
2
+ be8c2d87c98f8febe52ace473a9d3382d59d8ad2 be8c2d87c98f8febe52ace473a9d3382d59d8ad2 root <root@8af2e41185c1.(none)> 1722535894 +0000 checkout: moving from master to master
3
+ be8c2d87c98f8febe52ace473a9d3382d59d8ad2 9103d7d0e3104e99edb3d9a188d231ae0ce3947f root <root@8af2e41185c1.(none)> 1722535894 +0000 merge origin/development: Fast-forward
@@ -1,2 +1,2 @@
1
- 0000000000000000000000000000000000000000 3a2a67e03f5b2f1bbcc8d2fa9dffcba764d76196 root <root@45cacd354dc7.(none)> 1721234743 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
2
- 3a2a67e03f5b2f1bbcc8d2fa9dffcba764d76196 be8c2d87c98f8febe52ace473a9d3382d59d8ad2 root <root@45cacd354dc7.(none)> 1721234743 +0000 merge origin/development: Fast-forward
1
+ 0000000000000000000000000000000000000000 be8c2d87c98f8febe52ace473a9d3382d59d8ad2 root <root@8af2e41185c1.(none)> 1722535894 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
2
+ be8c2d87c98f8febe52ace473a9d3382d59d8ad2 9103d7d0e3104e99edb3d9a188d231ae0ce3947f root <root@8af2e41185c1.(none)> 1722535894 +0000 merge origin/development: Fast-forward
@@ -1 +1 @@
1
- 0000000000000000000000000000000000000000 3a2a67e03f5b2f1bbcc8d2fa9dffcba764d76196 root <root@45cacd354dc7.(none)> 1721234743 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
1
+ 0000000000000000000000000000000000000000 be8c2d87c98f8febe52ace473a9d3382d59d8ad2 root <root@8af2e41185c1.(none)> 1722535894 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
data/.git/packed-refs CHANGED
@@ -1,6 +1,6 @@
1
1
  # pack-refs with: peeled fully-peeled sorted
2
- be8c2d87c98f8febe52ace473a9d3382d59d8ad2 refs/remotes/origin/development
3
- 3a2a67e03f5b2f1bbcc8d2fa9dffcba764d76196 refs/remotes/origin/master
2
+ 9103d7d0e3104e99edb3d9a188d231ae0ce3947f refs/remotes/origin/development
3
+ be8c2d87c98f8febe52ace473a9d3382d59d8ad2 refs/remotes/origin/master
4
4
  2e4fe8087177ddea9b3991ca499f758384839c89 refs/tags/untagged-84fd83a4484c785cce63
5
5
  04f604866214fab4d5663b5171a3e596331577bd refs/tags/v0.9.4
6
6
  6f9a7b75b345c65fb554884907b7060680c807b7 refs/tags/v0.9.5
@@ -34,6 +34,7 @@ f05d3be5bc992d5a37ba13bc4ce092056769d9c8 refs/tags/v1.0.4
34
34
  d035aa3acb4c3a0935121bc00bfbb0a9e999d410 refs/tags/v1.0.7
35
35
  5b01475679f3312831a0fa1009e7cf90889effa8 refs/tags/v1.0.8
36
36
  3a2a67e03f5b2f1bbcc8d2fa9dffcba764d76196 refs/tags/v11.0.0
37
+ be8c2d87c98f8febe52ace473a9d3382d59d8ad2 refs/tags/v11.1.0
37
38
  e0b1ec0134c7015ccb8c14464cc713c20034159e refs/tags/v2.0.0
38
39
  62a146d9d56852b2ad14ec5d2796cad158d66e1c refs/tags/v2.1.0
39
40
  9de04e628082f4ad0eb9511311479a089d302008 refs/tags/v2.2.0
@@ -1 +1 @@
1
- be8c2d87c98f8febe52ace473a9d3382d59d8ad2
1
+ 9103d7d0e3104e99edb3d9a188d231ae0ce3947f
data/lib/constants.rb CHANGED
@@ -342,6 +342,7 @@ module SDM
342
342
  ORG_AUDIT_WORKFLOWS = "audit:workflows"
343
343
  ORG_AUDIT_APPROVAL_FLOWS = "audit:approvalflows"
344
344
  ORG_AUDIT_ACCESS_REQUESTS = "audit:accessrequests"
345
+ ORG_AUDIT_POLICIES = "audit:policies"
345
346
  WORKFLOW_LIST = "workflow:list"
346
347
  WORKFLOW_EDIT = "workflow:edit"
347
348
  ACCESS_REQUEST_EDIT = "accessrequest:edit"
@@ -453,5 +454,6 @@ module SDM
453
454
  SENTINEL_ONE = "sentinelone"
454
455
  CROWD_STRIKE = "crowdstrike"
455
456
  MICROSOFT_DEFENDER = "microsoftdefender"
457
+ DUO = "duo"
456
458
  end
457
459
  end
@@ -120,6 +120,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
120
120
  optional :egress_filter, :string, 32773
121
121
  optional :bind_interface, :string, 32774
122
122
  optional :subdomain, :string, 32775
123
+ optional :allow_resource_role_bypass, :bool, 19
123
124
  optional :certificate_authority, :string, 3
124
125
  optional :client_certificate, :string, 5
125
126
  optional :client_key, :string, 7
@@ -157,6 +158,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
157
158
  optional :egress_filter, :string, 32773
158
159
  optional :bind_interface, :string, 32774
159
160
  optional :subdomain, :string, 32775
161
+ optional :allow_resource_role_bypass, :bool, 13
160
162
  optional :discovery_enabled, :bool, 11
161
163
  optional :discovery_username, :string, 12
162
164
  optional :healthcheck_namespace, :string, 4
@@ -262,6 +264,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
262
264
  optional :bind_interface, :string, 32774
263
265
  optional :subdomain, :string, 32775
264
266
  optional :access_key, :string, 2
267
+ optional :allow_resource_role_bypass, :bool, 18
265
268
  optional :certificate_authority, :string, 4
266
269
  optional :cluster_name, :string, 7
267
270
  optional :discovery_enabled, :bool, 16
@@ -285,6 +288,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
285
288
  optional :egress_filter, :string, 32773
286
289
  optional :bind_interface, :string, 32774
287
290
  optional :subdomain, :string, 32775
291
+ optional :allow_resource_role_bypass, :bool, 18
288
292
  optional :certificate_authority, :string, 2
289
293
  optional :cluster_name, :string, 5
290
294
  optional :discovery_enabled, :bool, 16
@@ -754,6 +758,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
754
758
  optional :egress_filter, :string, 32773
755
759
  optional :bind_interface, :string, 32774
756
760
  optional :subdomain, :string, 32775
761
+ optional :allow_resource_role_bypass, :bool, 17
757
762
  optional :certificate_authority, :string, 2
758
763
  optional :discovery_enabled, :bool, 15
759
764
  optional :discovery_username, :string, 16
@@ -853,6 +858,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
853
858
  optional :egress_filter, :string, 32773
854
859
  optional :bind_interface, :string, 32774
855
860
  optional :subdomain, :string, 32775
861
+ optional :allow_resource_role_bypass, :bool, 19
856
862
  optional :certificate_authority, :string, 3
857
863
  optional :client_certificate, :string, 5
858
864
  optional :client_key, :string, 7
@@ -890,6 +896,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
890
896
  optional :egress_filter, :string, 32773
891
897
  optional :bind_interface, :string, 32774
892
898
  optional :subdomain, :string, 32775
899
+ optional :allow_resource_role_bypass, :bool, 13
893
900
  optional :discovery_enabled, :bool, 11
894
901
  optional :discovery_username, :string, 12
895
902
  optional :healthcheck_namespace, :string, 4
@@ -30,6 +30,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
30
30
  repeated :targets, :string, 1941401
31
31
  optional :disable_snapshot_vertical, :bool, 1941403
32
32
  optional :skip_cli_generation, :bool, 1941404
33
+ optional :json_gateway_register_with_constructor, :bool, 1941405
33
34
  end
34
35
  add_message "v1.MethodOptions" do
35
36
  optional :method, :string, 1941300
data/lib/grpc/plumbing.rb CHANGED
@@ -53,6 +53,8 @@ require_relative "./peering_group_nodes_pb"
53
53
  require_relative "./peering_group_peers_pb"
54
54
  require_relative "./peering_group_resources_pb"
55
55
  require_relative "./peering_groups_pb"
56
+ require_relative "./policies_pb"
57
+ require_relative "./policies_history_pb"
56
58
  require_relative "./queries_pb"
57
59
  require_relative "./remote_identities_pb"
58
60
  require_relative "./remote_identities_history_pb"
@@ -174,6 +176,7 @@ module SDM
174
176
  return nil
175
177
  end
176
178
  porcelain = AKS.new()
179
+ porcelain.allow_resource_role_bypass = (plumbing.allow_resource_role_bypass)
177
180
  porcelain.bind_interface = (plumbing.bind_interface)
178
181
  porcelain.certificate_authority = (plumbing.certificate_authority)
179
182
  porcelain.client_certificate = (plumbing.client_certificate)
@@ -201,6 +204,7 @@ module SDM
201
204
  return nil
202
205
  end
203
206
  plumbing = V1::AKS.new()
207
+ plumbing.allow_resource_role_bypass = (porcelain.allow_resource_role_bypass)
204
208
  plumbing.bind_interface = (porcelain.bind_interface)
205
209
  plumbing.certificate_authority = (porcelain.certificate_authority)
206
210
  plumbing.client_certificate = (porcelain.client_certificate)
@@ -304,6 +308,7 @@ module SDM
304
308
  return nil
305
309
  end
306
310
  porcelain = AKSServiceAccount.new()
311
+ porcelain.allow_resource_role_bypass = (plumbing.allow_resource_role_bypass)
307
312
  porcelain.bind_interface = (plumbing.bind_interface)
308
313
  porcelain.discovery_enabled = (plumbing.discovery_enabled)
309
314
  porcelain.discovery_username = (plumbing.discovery_username)
@@ -329,6 +334,7 @@ module SDM
329
334
  return nil
330
335
  end
331
336
  plumbing = V1::AKSServiceAccount.new()
337
+ plumbing.allow_resource_role_bypass = (porcelain.allow_resource_role_bypass)
332
338
  plumbing.bind_interface = (porcelain.bind_interface)
333
339
  plumbing.discovery_enabled = (porcelain.discovery_enabled)
334
340
  plumbing.discovery_username = (porcelain.discovery_username)
@@ -2018,6 +2024,7 @@ module SDM
2018
2024
  end
2019
2025
  porcelain = AmazonEKS.new()
2020
2026
  porcelain.access_key = (plumbing.access_key)
2027
+ porcelain.allow_resource_role_bypass = (plumbing.allow_resource_role_bypass)
2021
2028
  porcelain.bind_interface = (plumbing.bind_interface)
2022
2029
  porcelain.certificate_authority = (plumbing.certificate_authority)
2023
2030
  porcelain.cluster_name = (plumbing.cluster_name)
@@ -2048,6 +2055,7 @@ module SDM
2048
2055
  end
2049
2056
  plumbing = V1::AmazonEKS.new()
2050
2057
  plumbing.access_key = (porcelain.access_key)
2058
+ plumbing.allow_resource_role_bypass = (porcelain.allow_resource_role_bypass)
2051
2059
  plumbing.bind_interface = (porcelain.bind_interface)
2052
2060
  plumbing.certificate_authority = (porcelain.certificate_authority)
2053
2061
  plumbing.cluster_name = (porcelain.cluster_name)
@@ -2093,6 +2101,7 @@ module SDM
2093
2101
  return nil
2094
2102
  end
2095
2103
  porcelain = AmazonEKSInstanceProfile.new()
2104
+ porcelain.allow_resource_role_bypass = (plumbing.allow_resource_role_bypass)
2096
2105
  porcelain.bind_interface = (plumbing.bind_interface)
2097
2106
  porcelain.certificate_authority = (plumbing.certificate_authority)
2098
2107
  porcelain.cluster_name = (plumbing.cluster_name)
@@ -2121,6 +2130,7 @@ module SDM
2121
2130
  return nil
2122
2131
  end
2123
2132
  plumbing = V1::AmazonEKSInstanceProfile.new()
2133
+ plumbing.allow_resource_role_bypass = (porcelain.allow_resource_role_bypass)
2124
2134
  plumbing.bind_interface = (porcelain.bind_interface)
2125
2135
  plumbing.certificate_authority = (porcelain.certificate_authority)
2126
2136
  plumbing.cluster_name = (porcelain.cluster_name)
@@ -5075,6 +5085,7 @@ module SDM
5075
5085
  return nil
5076
5086
  end
5077
5087
  porcelain = GoogleGKE.new()
5088
+ porcelain.allow_resource_role_bypass = (plumbing.allow_resource_role_bypass)
5078
5089
  porcelain.bind_interface = (plumbing.bind_interface)
5079
5090
  porcelain.certificate_authority = (plumbing.certificate_authority)
5080
5091
  porcelain.discovery_enabled = (plumbing.discovery_enabled)
@@ -5100,6 +5111,7 @@ module SDM
5100
5111
  return nil
5101
5112
  end
5102
5113
  plumbing = V1::GoogleGKE.new()
5114
+ plumbing.allow_resource_role_bypass = (porcelain.allow_resource_role_bypass)
5103
5115
  plumbing.bind_interface = (porcelain.bind_interface)
5104
5116
  plumbing.certificate_authority = (porcelain.certificate_authority)
5105
5117
  plumbing.discovery_enabled = (porcelain.discovery_enabled)
@@ -6009,6 +6021,7 @@ module SDM
6009
6021
  return nil
6010
6022
  end
6011
6023
  porcelain = Kubernetes.new()
6024
+ porcelain.allow_resource_role_bypass = (plumbing.allow_resource_role_bypass)
6012
6025
  porcelain.bind_interface = (plumbing.bind_interface)
6013
6026
  porcelain.certificate_authority = (plumbing.certificate_authority)
6014
6027
  porcelain.client_certificate = (plumbing.client_certificate)
@@ -6036,6 +6049,7 @@ module SDM
6036
6049
  return nil
6037
6050
  end
6038
6051
  plumbing = V1::Kubernetes.new()
6052
+ plumbing.allow_resource_role_bypass = (porcelain.allow_resource_role_bypass)
6039
6053
  plumbing.bind_interface = (porcelain.bind_interface)
6040
6054
  plumbing.certificate_authority = (porcelain.certificate_authority)
6041
6055
  plumbing.client_certificate = (porcelain.client_certificate)
@@ -6139,6 +6153,7 @@ module SDM
6139
6153
  return nil
6140
6154
  end
6141
6155
  porcelain = KubernetesServiceAccount.new()
6156
+ porcelain.allow_resource_role_bypass = (plumbing.allow_resource_role_bypass)
6142
6157
  porcelain.bind_interface = (plumbing.bind_interface)
6143
6158
  porcelain.discovery_enabled = (plumbing.discovery_enabled)
6144
6159
  porcelain.discovery_username = (plumbing.discovery_username)
@@ -6164,6 +6179,7 @@ module SDM
6164
6179
  return nil
6165
6180
  end
6166
6181
  plumbing = V1::KubernetesServiceAccount.new()
6182
+ plumbing.allow_resource_role_bypass = (porcelain.allow_resource_role_bypass)
6167
6183
  plumbing.bind_interface = (porcelain.bind_interface)
6168
6184
  plumbing.discovery_enabled = (porcelain.discovery_enabled)
6169
6185
  plumbing.discovery_username = (porcelain.discovery_username)
@@ -8197,6 +8213,264 @@ module SDM
8197
8213
  end
8198
8214
  items
8199
8215
  end
8216
+ def self.convert_policy_to_porcelain(plumbing)
8217
+ if plumbing == nil
8218
+ return nil
8219
+ end
8220
+ porcelain = Policy.new()
8221
+ porcelain.description = (plumbing.description)
8222
+ porcelain.id = (plumbing.id)
8223
+ porcelain.name = (plumbing.name)
8224
+ porcelain.policy = (plumbing.policy)
8225
+ porcelain
8226
+ end
8227
+
8228
+ def self.convert_policy_to_plumbing(porcelain)
8229
+ if porcelain == nil
8230
+ return nil
8231
+ end
8232
+ plumbing = V1::Policy.new()
8233
+ plumbing.description = (porcelain.description)
8234
+ plumbing.id = (porcelain.id)
8235
+ plumbing.name = (porcelain.name)
8236
+ plumbing.policy = (porcelain.policy)
8237
+ plumbing
8238
+ end
8239
+ def self.convert_repeated_policy_to_plumbing(porcelains)
8240
+ items = Array.new
8241
+ porcelains.each do |porcelain|
8242
+ plumbing = convert_policy_to_plumbing(porcelain)
8243
+ items.append(plumbing)
8244
+ end
8245
+ items
8246
+ end
8247
+
8248
+ def self.convert_repeated_policy_to_porcelain(plumbings)
8249
+ items = Array.new
8250
+ plumbings.each do |plumbing|
8251
+ porcelain = convert_policy_to_porcelain(plumbing)
8252
+ items.append(porcelain)
8253
+ end
8254
+ items
8255
+ end
8256
+ def self.convert_policy_create_response_to_porcelain(plumbing)
8257
+ if plumbing == nil
8258
+ return nil
8259
+ end
8260
+ porcelain = PolicyCreateResponse.new()
8261
+ porcelain.policy = convert_policy_to_porcelain(plumbing.policy)
8262
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
8263
+ porcelain
8264
+ end
8265
+
8266
+ def self.convert_policy_create_response_to_plumbing(porcelain)
8267
+ if porcelain == nil
8268
+ return nil
8269
+ end
8270
+ plumbing = V1::PolicyCreateResponse.new()
8271
+ plumbing.policy = convert_policy_to_plumbing(porcelain.policy)
8272
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
8273
+ plumbing
8274
+ end
8275
+ def self.convert_repeated_policy_create_response_to_plumbing(porcelains)
8276
+ items = Array.new
8277
+ porcelains.each do |porcelain|
8278
+ plumbing = convert_policy_create_response_to_plumbing(porcelain)
8279
+ items.append(plumbing)
8280
+ end
8281
+ items
8282
+ end
8283
+
8284
+ def self.convert_repeated_policy_create_response_to_porcelain(plumbings)
8285
+ items = Array.new
8286
+ plumbings.each do |plumbing|
8287
+ porcelain = convert_policy_create_response_to_porcelain(plumbing)
8288
+ items.append(porcelain)
8289
+ end
8290
+ items
8291
+ end
8292
+ def self.convert_policy_delete_response_to_porcelain(plumbing)
8293
+ if plumbing == nil
8294
+ return nil
8295
+ end
8296
+ porcelain = PolicyDeleteResponse.new()
8297
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
8298
+ porcelain
8299
+ end
8300
+
8301
+ def self.convert_policy_delete_response_to_plumbing(porcelain)
8302
+ if porcelain == nil
8303
+ return nil
8304
+ end
8305
+ plumbing = V1::PolicyDeleteResponse.new()
8306
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
8307
+ plumbing
8308
+ end
8309
+ def self.convert_repeated_policy_delete_response_to_plumbing(porcelains)
8310
+ items = Array.new
8311
+ porcelains.each do |porcelain|
8312
+ plumbing = convert_policy_delete_response_to_plumbing(porcelain)
8313
+ items.append(plumbing)
8314
+ end
8315
+ items
8316
+ end
8317
+
8318
+ def self.convert_repeated_policy_delete_response_to_porcelain(plumbings)
8319
+ items = Array.new
8320
+ plumbings.each do |plumbing|
8321
+ porcelain = convert_policy_delete_response_to_porcelain(plumbing)
8322
+ items.append(porcelain)
8323
+ end
8324
+ items
8325
+ end
8326
+ def self.convert_policy_get_response_to_porcelain(plumbing)
8327
+ if plumbing == nil
8328
+ return nil
8329
+ end
8330
+ porcelain = PolicyGetResponse.new()
8331
+ porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
8332
+ porcelain.policy = convert_policy_to_porcelain(plumbing.policy)
8333
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
8334
+ porcelain
8335
+ end
8336
+
8337
+ def self.convert_policy_get_response_to_plumbing(porcelain)
8338
+ if porcelain == nil
8339
+ return nil
8340
+ end
8341
+ plumbing = V1::PolicyGetResponse.new()
8342
+ plumbing.meta = convert_get_response_metadata_to_plumbing(porcelain.meta)
8343
+ plumbing.policy = convert_policy_to_plumbing(porcelain.policy)
8344
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
8345
+ plumbing
8346
+ end
8347
+ def self.convert_repeated_policy_get_response_to_plumbing(porcelains)
8348
+ items = Array.new
8349
+ porcelains.each do |porcelain|
8350
+ plumbing = convert_policy_get_response_to_plumbing(porcelain)
8351
+ items.append(plumbing)
8352
+ end
8353
+ items
8354
+ end
8355
+
8356
+ def self.convert_repeated_policy_get_response_to_porcelain(plumbings)
8357
+ items = Array.new
8358
+ plumbings.each do |plumbing|
8359
+ porcelain = convert_policy_get_response_to_porcelain(plumbing)
8360
+ items.append(porcelain)
8361
+ end
8362
+ items
8363
+ end
8364
+ def self.convert_policy_history_to_porcelain(plumbing)
8365
+ if plumbing == nil
8366
+ return nil
8367
+ end
8368
+ porcelain = PolicyHistory.new()
8369
+ porcelain.activity_id = (plumbing.activity_id)
8370
+ porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
8371
+ porcelain.policy = convert_policy_to_porcelain(plumbing.policy)
8372
+ porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
8373
+ porcelain
8374
+ end
8375
+
8376
+ def self.convert_policy_history_to_plumbing(porcelain)
8377
+ if porcelain == nil
8378
+ return nil
8379
+ end
8380
+ plumbing = V1::PolicyHistory.new()
8381
+ plumbing.activity_id = (porcelain.activity_id)
8382
+ plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
8383
+ plumbing.policy = convert_policy_to_plumbing(porcelain.policy)
8384
+ plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
8385
+ plumbing
8386
+ end
8387
+ def self.convert_repeated_policy_history_to_plumbing(porcelains)
8388
+ items = Array.new
8389
+ porcelains.each do |porcelain|
8390
+ plumbing = convert_policy_history_to_plumbing(porcelain)
8391
+ items.append(plumbing)
8392
+ end
8393
+ items
8394
+ end
8395
+
8396
+ def self.convert_repeated_policy_history_to_porcelain(plumbings)
8397
+ items = Array.new
8398
+ plumbings.each do |plumbing|
8399
+ porcelain = convert_policy_history_to_porcelain(plumbing)
8400
+ items.append(porcelain)
8401
+ end
8402
+ items
8403
+ end
8404
+ def self.convert_policy_list_response_to_porcelain(plumbing)
8405
+ if plumbing == nil
8406
+ return nil
8407
+ end
8408
+ porcelain = PolicyListResponse.new()
8409
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
8410
+ porcelain
8411
+ end
8412
+
8413
+ def self.convert_policy_list_response_to_plumbing(porcelain)
8414
+ if porcelain == nil
8415
+ return nil
8416
+ end
8417
+ plumbing = V1::PolicyListResponse.new()
8418
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
8419
+ plumbing
8420
+ end
8421
+ def self.convert_repeated_policy_list_response_to_plumbing(porcelains)
8422
+ items = Array.new
8423
+ porcelains.each do |porcelain|
8424
+ plumbing = convert_policy_list_response_to_plumbing(porcelain)
8425
+ items.append(plumbing)
8426
+ end
8427
+ items
8428
+ end
8429
+
8430
+ def self.convert_repeated_policy_list_response_to_porcelain(plumbings)
8431
+ items = Array.new
8432
+ plumbings.each do |plumbing|
8433
+ porcelain = convert_policy_list_response_to_porcelain(plumbing)
8434
+ items.append(porcelain)
8435
+ end
8436
+ items
8437
+ end
8438
+ def self.convert_policy_update_response_to_porcelain(plumbing)
8439
+ if plumbing == nil
8440
+ return nil
8441
+ end
8442
+ porcelain = PolicyUpdateResponse.new()
8443
+ porcelain.policy = convert_policy_to_porcelain(plumbing.policy)
8444
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
8445
+ porcelain
8446
+ end
8447
+
8448
+ def self.convert_policy_update_response_to_plumbing(porcelain)
8449
+ if porcelain == nil
8450
+ return nil
8451
+ end
8452
+ plumbing = V1::PolicyUpdateResponse.new()
8453
+ plumbing.policy = convert_policy_to_plumbing(porcelain.policy)
8454
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
8455
+ plumbing
8456
+ end
8457
+ def self.convert_repeated_policy_update_response_to_plumbing(porcelains)
8458
+ items = Array.new
8459
+ porcelains.each do |porcelain|
8460
+ plumbing = convert_policy_update_response_to_plumbing(porcelain)
8461
+ items.append(plumbing)
8462
+ end
8463
+ items
8464
+ end
8465
+
8466
+ def self.convert_repeated_policy_update_response_to_porcelain(plumbings)
8467
+ items = Array.new
8468
+ plumbings.each do |plumbing|
8469
+ porcelain = convert_policy_update_response_to_porcelain(plumbing)
8470
+ items.append(porcelain)
8471
+ end
8472
+ items
8473
+ end
8200
8474
  def self.convert_postgres_to_porcelain(plumbing)
8201
8475
  if plumbing == nil
8202
8476
  return nil
@@ -0,0 +1,49 @@
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: policies_history.proto
17
+
18
+ require "google/protobuf"
19
+
20
+ require "google/protobuf/timestamp_pb"
21
+ require "policies_pb"
22
+ require "options_pb"
23
+ require "spec_pb"
24
+
25
+ Google::Protobuf::DescriptorPool.generated_pool.build do
26
+ add_file("policies_history.proto", :syntax => :proto3) do
27
+ add_message "v1.PoliciesHistoryListRequest" do
28
+ optional :meta, :message, 1, "v1.ListRequestMetadata"
29
+ optional :filter, :string, 2
30
+ end
31
+ add_message "v1.PoliciesHistoryListResponse" do
32
+ optional :meta, :message, 1, "v1.ListResponseMetadata"
33
+ repeated :history, :message, 2, "v1.PolicyHistory"
34
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
35
+ end
36
+ add_message "v1.PolicyHistory" do
37
+ optional :activity_id, :string, 1
38
+ optional :timestamp, :message, 2, "google.protobuf.Timestamp"
39
+ optional :policy, :message, 3, "v1.Policy"
40
+ optional :deleted_at, :message, 4, "google.protobuf.Timestamp"
41
+ end
42
+ end
43
+ end
44
+
45
+ module V1
46
+ PoliciesHistoryListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.PoliciesHistoryListRequest").msgclass
47
+ PoliciesHistoryListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.PoliciesHistoryListResponse").msgclass
48
+ PolicyHistory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.PolicyHistory").msgclass
49
+ end
@@ -0,0 +1,37 @@
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: policies_history.proto for package 'v1'
17
+
18
+ require "grpc"
19
+ require "policies_history_pb"
20
+
21
+ module V1
22
+ module PoliciesHistory
23
+ # PoliciesHistory records all changes to the state of a Policy.
24
+ class Service
25
+ include ::GRPC::GenericService
26
+
27
+ self.marshal_class_method = :encode
28
+ self.unmarshal_class_method = :decode
29
+ self.service_name = "v1.PoliciesHistory"
30
+
31
+ # List gets a list of PolicyHistory records matching a given set of criteria.
32
+ rpc :List, ::V1::PoliciesHistoryListRequest, ::V1::PoliciesHistoryListResponse
33
+ end
34
+
35
+ Stub = Service.rpc_stub_class
36
+ end
37
+ end