strongdm 11.0.0__zip → 11.3.0__zip

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. {strongdm-11.0.0 → strongdm-11.3.0}/PKG-INFO +2 -2
  2. {strongdm-11.0.0 → strongdm-11.3.0}/setup.py +2 -2
  3. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/access_request_events_history_pb2.py +3 -3
  4. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/access_requests_history_pb2.py +3 -3
  5. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/access_requests_pb2.py +3 -3
  6. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/approval_workflow_approvers_history_pb2.py +3 -3
  7. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/approval_workflow_approvers_pb2.py +3 -3
  8. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/approval_workflow_steps_history_pb2.py +3 -3
  9. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/approval_workflow_steps_pb2.py +3 -3
  10. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/approval_workflows_history_pb2.py +3 -3
  11. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/approval_workflows_pb2.py +3 -3
  12. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/client.py +22 -1
  13. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/constants.py +2 -0
  14. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/drivers_pb2.py +188 -174
  15. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/models.py +408 -8
  16. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/options_pb2.py +24 -24
  17. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/plumbing.py +266 -0
  18. strongdm-11.3.0/strongdm/policies_history_pb2.py +100 -0
  19. strongdm-11.3.0/strongdm/policies_history_pb2_grpc.py +84 -0
  20. strongdm-11.3.0/strongdm/policies_pb2.py +226 -0
  21. strongdm-11.3.0/strongdm/policies_pb2_grpc.py +223 -0
  22. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/svc.py +245 -0
  23. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/workflow_approvers_history_pb2.py +3 -3
  24. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/workflow_approvers_pb2.py +3 -3
  25. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/workflow_assignments_history_pb2.py +3 -3
  26. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/workflow_assignments_pb2.py +3 -3
  27. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/workflow_roles_history_pb2.py +3 -3
  28. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/workflow_roles_pb2.py +3 -3
  29. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/workflows_history_pb2.py +3 -3
  30. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/workflows_pb2.py +3 -3
  31. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm.egg-info/PKG-INFO +2 -2
  32. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm.egg-info/SOURCES.txt +4 -0
  33. {strongdm-11.0.0 → strongdm-11.3.0}/LICENSE +0 -0
  34. {strongdm-11.0.0 → strongdm-11.3.0}/README.md +0 -0
  35. {strongdm-11.0.0 → strongdm-11.3.0}/setup.cfg +0 -0
  36. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/__init__.py +0 -0
  37. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/access_request_events_history_pb2_grpc.py +0 -0
  38. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/access_requests_history_pb2_grpc.py +0 -0
  39. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/access_requests_pb2_grpc.py +0 -0
  40. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/account_attachments_history_pb2.py +0 -0
  41. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/account_attachments_history_pb2_grpc.py +0 -0
  42. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/account_attachments_pb2.py +0 -0
  43. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/account_attachments_pb2_grpc.py +0 -0
  44. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/account_grants_history_pb2.py +0 -0
  45. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/account_grants_history_pb2_grpc.py +0 -0
  46. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/account_grants_pb2.py +0 -0
  47. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/account_grants_pb2_grpc.py +0 -0
  48. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/account_permissions_pb2.py +0 -0
  49. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/account_permissions_pb2_grpc.py +0 -0
  50. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/account_resources_history_pb2.py +0 -0
  51. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/account_resources_history_pb2_grpc.py +0 -0
  52. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/account_resources_pb2.py +0 -0
  53. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/account_resources_pb2_grpc.py +0 -0
  54. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/accounts_history_pb2.py +0 -0
  55. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/accounts_history_pb2_grpc.py +0 -0
  56. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/accounts_pb2.py +0 -0
  57. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/accounts_pb2_grpc.py +0 -0
  58. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/activities_pb2.py +0 -0
  59. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/activities_pb2_grpc.py +0 -0
  60. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/approval_workflow_approvers_history_pb2_grpc.py +0 -0
  61. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/approval_workflow_approvers_pb2_grpc.py +0 -0
  62. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/approval_workflow_steps_history_pb2_grpc.py +0 -0
  63. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/approval_workflow_steps_pb2_grpc.py +0 -0
  64. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/approval_workflows_history_pb2_grpc.py +0 -0
  65. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/approval_workflows_pb2_grpc.py +0 -0
  66. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/control_panel_pb2.py +0 -0
  67. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/control_panel_pb2_grpc.py +0 -0
  68. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/drivers_pb2_grpc.py +0 -0
  69. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/errors.py +0 -0
  70. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/identity_aliases_history_pb2.py +0 -0
  71. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/identity_aliases_history_pb2_grpc.py +0 -0
  72. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/identity_aliases_pb2.py +0 -0
  73. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/identity_aliases_pb2_grpc.py +0 -0
  74. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/identity_sets_history_pb2.py +0 -0
  75. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/identity_sets_history_pb2_grpc.py +0 -0
  76. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/identity_sets_pb2.py +0 -0
  77. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/identity_sets_pb2_grpc.py +0 -0
  78. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/nodes_history_pb2.py +0 -0
  79. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/nodes_history_pb2_grpc.py +0 -0
  80. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/nodes_pb2.py +0 -0
  81. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/nodes_pb2_grpc.py +0 -0
  82. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/options_pb2_grpc.py +0 -0
  83. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/organization_history_pb2.py +0 -0
  84. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/organization_history_pb2_grpc.py +0 -0
  85. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/peering_group_nodes_pb2.py +0 -0
  86. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/peering_group_nodes_pb2_grpc.py +0 -0
  87. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/peering_group_peers_pb2.py +0 -0
  88. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/peering_group_peers_pb2_grpc.py +0 -0
  89. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/peering_group_resources_pb2.py +0 -0
  90. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/peering_group_resources_pb2_grpc.py +0 -0
  91. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/peering_groups_pb2.py +0 -0
  92. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/peering_groups_pb2_grpc.py +0 -0
  93. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/queries_pb2.py +0 -0
  94. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/queries_pb2_grpc.py +0 -0
  95. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/remote_identities_history_pb2.py +0 -0
  96. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/remote_identities_history_pb2_grpc.py +0 -0
  97. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/remote_identities_pb2.py +0 -0
  98. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/remote_identities_pb2_grpc.py +0 -0
  99. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/remote_identity_groups_history_pb2.py +0 -0
  100. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/remote_identity_groups_history_pb2_grpc.py +0 -0
  101. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/remote_identity_groups_pb2.py +0 -0
  102. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/remote_identity_groups_pb2_grpc.py +0 -0
  103. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/replays_pb2.py +0 -0
  104. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/replays_pb2_grpc.py +0 -0
  105. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/resources_history_pb2.py +0 -0
  106. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/resources_history_pb2_grpc.py +0 -0
  107. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/resources_pb2.py +0 -0
  108. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/resources_pb2_grpc.py +0 -0
  109. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/role_resources_history_pb2.py +0 -0
  110. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/role_resources_history_pb2_grpc.py +0 -0
  111. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/role_resources_pb2.py +0 -0
  112. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/role_resources_pb2_grpc.py +0 -0
  113. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/roles_history_pb2.py +0 -0
  114. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/roles_history_pb2_grpc.py +0 -0
  115. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/roles_pb2.py +0 -0
  116. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/roles_pb2_grpc.py +0 -0
  117. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/secret_store_healths_pb2.py +0 -0
  118. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/secret_store_healths_pb2_grpc.py +0 -0
  119. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/secret_store_types_pb2.py +0 -0
  120. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/secret_store_types_pb2_grpc.py +0 -0
  121. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/secret_stores_history_pb2.py +0 -0
  122. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/secret_stores_history_pb2_grpc.py +0 -0
  123. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/secret_stores_pb2.py +0 -0
  124. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/secret_stores_pb2_grpc.py +0 -0
  125. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/spec_pb2.py +0 -0
  126. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/spec_pb2_grpc.py +0 -0
  127. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/tags_pb2.py +0 -0
  128. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/tags_pb2_grpc.py +0 -0
  129. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/workflow_approvers_history_pb2_grpc.py +0 -0
  130. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/workflow_approvers_pb2_grpc.py +0 -0
  131. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/workflow_assignments_history_pb2_grpc.py +0 -0
  132. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/workflow_assignments_pb2_grpc.py +0 -0
  133. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/workflow_roles_history_pb2_grpc.py +0 -0
  134. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/workflow_roles_pb2_grpc.py +0 -0
  135. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/workflows_history_pb2_grpc.py +0 -0
  136. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm/workflows_pb2_grpc.py +0 -0
  137. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm.egg-info/dependency_links.txt +0 -0
  138. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm.egg-info/requires.txt +0 -0
  139. {strongdm-11.0.0 → strongdm-11.3.0}/strongdm.egg-info/top_level.txt +0 -0
@@ -0,0 +1,226 @@
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
+ # -*- coding: utf-8 -*-
16
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
17
+ # source: policies.proto
18
+ """Generated protocol buffer code."""
19
+ from google.protobuf import descriptor as _descriptor
20
+ from google.protobuf import descriptor_pool as _descriptor_pool
21
+ from google.protobuf import message as _message
22
+ from google.protobuf import reflection as _reflection
23
+ from google.protobuf import symbol_database as _symbol_database
24
+ # @@protoc_insertion_point(imports)
25
+
26
+ _sym_db = _symbol_database.Default()
27
+
28
+
29
+ from . import options_pb2 as options__pb2
30
+ from . import spec_pb2 as spec__pb2
31
+
32
+
33
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0epolicies.proto\x12\x02v1\x1a\roptions.proto\x1a\nspec.proto\"\x90\x01\n\x13PolicyCreateRequest\x12\'\n\x04meta\x18\x01 \x01(\x0b\x32\x19.v1.CreateRequestMetadata\x12&\n\x06policy\x18\x02 \x01(\x0b\x32\n.v1.PolicyB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01:(\xfa\xf8\xb3\x07\x06\xd2\xf3\xb3\x07\x01*\xfa\xf8\xb3\x07\x18\xd2\xf3\xb3\x07\x13!terraform-provider\"\x92\x02\n\x14PolicyCreateResponse\x12(\n\x04meta\x18\x01 \x01(\x0b\x32\x1a.v1.CreateResponseMetadata\x12&\n\x06policy\x18\x02 \x01(\x0b\x32\n.v1.PolicyB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12t\n\nrate_limit\x18\x03 \x01(\x0b\x32\x15.v1.RateLimitMetadataBI\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\xf2\xf8\xb3\x07\x06\xb2\xf4\xb3\x07\x01*\xf2\xf8\xb3\x07\x12\xb2\xf4\xb3\x07\r!json_gateway\xf2\xf8\xb3\x07\x18\xb2\xf4\xb3\x07\x13!terraform-provider:2\xfa\xf8\xb3\x07\x06\xd2\xf3\xb3\x07\x01*\xfa\xf8\xb3\x07\x18\xd2\xf3\xb3\x07\x13!terraform-provider\xfa\xf8\xb3\x07\x05\xa8\xf3\xb3\x07\x01\"\x9c\x01\n\x13PolicyUpdateRequest\x12\'\n\x04meta\x18\x01 \x01(\x0b\x32\x19.v1.UpdateRequestMetadata\x12\n\n\x02id\x18\x02 \x01(\t\x12&\n\x06policy\x18\x03 \x01(\x0b\x32\n.v1.PolicyB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01:(\xfa\xf8\xb3\x07\x06\xd2\xf3\xb3\x07\x01*\xfa\xf8\xb3\x07\x18\xd2\xf3\xb3\x07\x13!terraform-provider\"\x92\x02\n\x14PolicyUpdateResponse\x12(\n\x04meta\x18\x01 \x01(\x0b\x32\x1a.v1.UpdateResponseMetadata\x12&\n\x06policy\x18\x02 \x01(\x0b\x32\n.v1.PolicyB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12t\n\nrate_limit\x18\x03 \x01(\x0b\x32\x15.v1.RateLimitMetadataBI\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\xf2\xf8\xb3\x07\x06\xb2\xf4\xb3\x07\x01*\xf2\xf8\xb3\x07\x12\xb2\xf4\xb3\x07\r!json_gateway\xf2\xf8\xb3\x07\x18\xb2\xf4\xb3\x07\x13!terraform-provider:2\xfa\xf8\xb3\x07\x06\xd2\xf3\xb3\x07\x01*\xfa\xf8\xb3\x07\x18\xd2\xf3\xb3\x07\x13!terraform-provider\xfa\xf8\xb3\x07\x05\xa8\xf3\xb3\x07\x01\"\x80\x01\n\x13PolicyDeleteRequest\x12\'\n\x04meta\x18\x01 \x01(\x0b\x32\x19.v1.DeleteRequestMetadata\x12\x16\n\x02id\x18\x02 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01:(\xfa\xf8\xb3\x07\x06\xd2\xf3\xb3\x07\x01*\xfa\xf8\xb3\x07\x18\xd2\xf3\xb3\x07\x13!terraform-provider\"\xea\x01\n\x14PolicyDeleteResponse\x12(\n\x04meta\x18\x01 \x01(\x0b\x32\x1a.v1.DeleteResponseMetadata\x12t\n\nrate_limit\x18\x02 \x01(\x0b\x32\x15.v1.RateLimitMetadataBI\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\xf2\xf8\xb3\x07\x06\xb2\xf4\xb3\x07\x01*\xf2\xf8\xb3\x07\x12\xb2\xf4\xb3\x07\r!json_gateway\xf2\xf8\xb3\x07\x18\xb2\xf4\xb3\x07\x13!terraform-provider:2\xfa\xf8\xb3\x07\x06\xd2\xf3\xb3\x07\x01*\xfa\xf8\xb3\x07\x18\xd2\xf3\xb3\x07\x13!terraform-provider\xfa\xf8\xb3\x07\x05\xa8\xf3\xb3\x07\x01\"z\n\x10PolicyGetRequest\x12$\n\x04meta\x18\x01 \x01(\x0b\x32\x16.v1.GetRequestMetadata\x12\x16\n\x02id\x18\x02 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01:(\xfa\xf8\xb3\x07\x06\xd2\xf3\xb3\x07\x01*\xfa\xf8\xb3\x07\x18\xd2\xf3\xb3\x07\x13!terraform-provider\"\x98\x02\n\x11PolicyGetResponse\x12\x31\n\x04meta\x18\x01 \x01(\x0b\x32\x17.v1.GetResponseMetadataB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12&\n\x06policy\x18\x02 \x01(\x0b\x32\n.v1.PolicyB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12t\n\nrate_limit\x18\x03 \x01(\x0b\x32\x15.v1.RateLimitMetadataBI\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\xf2\xf8\xb3\x07\x06\xb2\xf4\xb3\x07\x01*\xf2\xf8\xb3\x07\x12\xb2\xf4\xb3\x07\r!json_gateway\xf2\xf8\xb3\x07\x18\xb2\xf4\xb3\x07\x13!terraform-provider:2\xfa\xf8\xb3\x07\x05\xa8\xf3\xb3\x07\x01\xfa\xf8\xb3\x07\x06\xd2\xf3\xb3\x07\x01*\xfa\xf8\xb3\x07\x18\xd2\xf3\xb3\x07\x13!terraform-provider\"\x80\x01\n\x11PolicyListRequest\x12%\n\x04meta\x18\x01 \x01(\x0b\x32\x17.v1.ListRequestMetadata\x12\x1a\n\x06\x66ilter\x18\x02 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01:(\xfa\xf8\xb3\x07\x06\xd2\xf3\xb3\x07\x01*\xfa\xf8\xb3\x07\x18\xd2\xf3\xb3\x07\x13!terraform-provider\"\x90\x02\n\x12PolicyListResponse\x12&\n\x04meta\x18\x01 \x01(\x0b\x32\x18.v1.ListResponseMetadata\x12(\n\x08policies\x18\x02 \x03(\x0b\x32\n.v1.PolicyB\n\xf2\xf8\xb3\x07\x05\xb8\xf3\xb3\x07\x01\x12t\n\nrate_limit\x18\x03 \x01(\x0b\x32\x15.v1.RateLimitMetadataBI\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\xf2\xf8\xb3\x07\x06\xb2\xf4\xb3\x07\x01*\xf2\xf8\xb3\x07\x12\xb2\xf4\xb3\x07\r!json_gateway\xf2\xf8\xb3\x07\x18\xb2\xf4\xb3\x07\x13!terraform-provider:2\xfa\xf8\xb3\x07\x06\xd2\xf3\xb3\x07\x01*\xfa\xf8\xb3\x07\x18\xd2\xf3\xb3\x07\x13!terraform-provider\xfa\xf8\xb3\x07\x05\xa8\xf3\xb3\x07\x01\"\xa6\x01\n\x06Policy\x12\x16\n\x02id\x18\x01 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12\x1d\n\x04name\x18\x02 \x01(\tB\x0f\xf2\xf8\xb3\x07\n\xb0\xf3\xb3\x07\x01\xc0\xf3\xb3\x07\x01\x12\x1f\n\x0b\x64\x65scription\x18\x03 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12\x1a\n\x06policy\x18\x04 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01:(\xfa\xf8\xb3\x07#\xa8\xf3\xb3\x07\x01\xd2\xf3\xb3\x07\x01*\xd2\xf3\xb3\x07\x13!terraform-provider2\xd3\x04\n\x08Policies\x12\x61\n\x06\x43reate\x12\x17.v1.PolicyCreateRequest\x1a\x18.v1.PolicyCreateResponse\"$\x82\xf9\xb3\x07\t\xa2\xf3\xb3\x07\x04post\x82\xf9\xb3\x07\x11\xaa\xf3\xb3\x07\x0c/v1/policies\x12h\n\x06\x44\x65lete\x12\x17.v1.PolicyDeleteRequest\x1a\x18.v1.PolicyDeleteResponse\"+\x82\xf9\xb3\x07\x0b\xa2\xf3\xb3\x07\x06\x64\x65lete\x82\xf9\xb3\x07\x16\xaa\xf3\xb3\x07\x11/v1/policies/{id}\x12\x65\n\x06Update\x12\x17.v1.PolicyUpdateRequest\x1a\x18.v1.PolicyUpdateResponse\"(\x82\xf9\xb3\x07\x08\xa2\xf3\xb3\x07\x03put\x82\xf9\xb3\x07\x16\xaa\xf3\xb3\x07\x11/v1/policies/{id}\x12\\\n\x03Get\x12\x14.v1.PolicyGetRequest\x1a\x15.v1.PolicyGetResponse\"(\x82\xf9\xb3\x07\x08\xa2\xf3\xb3\x07\x03get\x82\xf9\xb3\x07\x16\xaa\xf3\xb3\x07\x11/v1/policies/{id}\x12Z\n\x04List\x12\x15.v1.PolicyListRequest\x1a\x16.v1.PolicyListResponse\"#\x82\xf9\xb3\x07\x08\xa2\xf3\xb3\x07\x03get\x82\xf9\xb3\x07\x11\xaa\xf3\xb3\x07\x0c/v1/policies\x1aY\xca\xf9\xb3\x07\x0b\xc2\xf9\xb3\x07\x06Policy\xca\xf9\xb3\x07\x08\xd2\xf9\xb3\x07\x03po-\xca\xf9\xb3\x07\x06\xca\xf9\xb3\x07\x01*\xca\xf9\xb3\x07\x18\xca\xf9\xb3\x07\x13!terraform-provider\xca\xf9\xb3\x07\x05\xe0\xf9\xb3\x07\x01\xca\xf9\xb3\x07\x05\xe8\xf9\xb3\x07\x01\x42\x8c\x01\n\x19\x63om.strongdm.api.plumbingB\x10PoliciesPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1\xc2\x92\xb4\x07\x06\xa2\x8c\xb4\x07\x01*\xc2\x92\xb4\x07\x18\xa2\x8c\xb4\x07\x13!terraform-providerb\x06proto3')
34
+
35
+
36
+
37
+ _POLICYCREATEREQUEST = DESCRIPTOR.message_types_by_name['PolicyCreateRequest']
38
+ _POLICYCREATERESPONSE = DESCRIPTOR.message_types_by_name['PolicyCreateResponse']
39
+ _POLICYUPDATEREQUEST = DESCRIPTOR.message_types_by_name['PolicyUpdateRequest']
40
+ _POLICYUPDATERESPONSE = DESCRIPTOR.message_types_by_name['PolicyUpdateResponse']
41
+ _POLICYDELETEREQUEST = DESCRIPTOR.message_types_by_name['PolicyDeleteRequest']
42
+ _POLICYDELETERESPONSE = DESCRIPTOR.message_types_by_name['PolicyDeleteResponse']
43
+ _POLICYGETREQUEST = DESCRIPTOR.message_types_by_name['PolicyGetRequest']
44
+ _POLICYGETRESPONSE = DESCRIPTOR.message_types_by_name['PolicyGetResponse']
45
+ _POLICYLISTREQUEST = DESCRIPTOR.message_types_by_name['PolicyListRequest']
46
+ _POLICYLISTRESPONSE = DESCRIPTOR.message_types_by_name['PolicyListResponse']
47
+ _POLICY = DESCRIPTOR.message_types_by_name['Policy']
48
+ PolicyCreateRequest = _reflection.GeneratedProtocolMessageType('PolicyCreateRequest', (_message.Message,), {
49
+ 'DESCRIPTOR' : _POLICYCREATEREQUEST,
50
+ '__module__' : 'policies_pb2'
51
+ # @@protoc_insertion_point(class_scope:v1.PolicyCreateRequest)
52
+ })
53
+ _sym_db.RegisterMessage(PolicyCreateRequest)
54
+
55
+ PolicyCreateResponse = _reflection.GeneratedProtocolMessageType('PolicyCreateResponse', (_message.Message,), {
56
+ 'DESCRIPTOR' : _POLICYCREATERESPONSE,
57
+ '__module__' : 'policies_pb2'
58
+ # @@protoc_insertion_point(class_scope:v1.PolicyCreateResponse)
59
+ })
60
+ _sym_db.RegisterMessage(PolicyCreateResponse)
61
+
62
+ PolicyUpdateRequest = _reflection.GeneratedProtocolMessageType('PolicyUpdateRequest', (_message.Message,), {
63
+ 'DESCRIPTOR' : _POLICYUPDATEREQUEST,
64
+ '__module__' : 'policies_pb2'
65
+ # @@protoc_insertion_point(class_scope:v1.PolicyUpdateRequest)
66
+ })
67
+ _sym_db.RegisterMessage(PolicyUpdateRequest)
68
+
69
+ PolicyUpdateResponse = _reflection.GeneratedProtocolMessageType('PolicyUpdateResponse', (_message.Message,), {
70
+ 'DESCRIPTOR' : _POLICYUPDATERESPONSE,
71
+ '__module__' : 'policies_pb2'
72
+ # @@protoc_insertion_point(class_scope:v1.PolicyUpdateResponse)
73
+ })
74
+ _sym_db.RegisterMessage(PolicyUpdateResponse)
75
+
76
+ PolicyDeleteRequest = _reflection.GeneratedProtocolMessageType('PolicyDeleteRequest', (_message.Message,), {
77
+ 'DESCRIPTOR' : _POLICYDELETEREQUEST,
78
+ '__module__' : 'policies_pb2'
79
+ # @@protoc_insertion_point(class_scope:v1.PolicyDeleteRequest)
80
+ })
81
+ _sym_db.RegisterMessage(PolicyDeleteRequest)
82
+
83
+ PolicyDeleteResponse = _reflection.GeneratedProtocolMessageType('PolicyDeleteResponse', (_message.Message,), {
84
+ 'DESCRIPTOR' : _POLICYDELETERESPONSE,
85
+ '__module__' : 'policies_pb2'
86
+ # @@protoc_insertion_point(class_scope:v1.PolicyDeleteResponse)
87
+ })
88
+ _sym_db.RegisterMessage(PolicyDeleteResponse)
89
+
90
+ PolicyGetRequest = _reflection.GeneratedProtocolMessageType('PolicyGetRequest', (_message.Message,), {
91
+ 'DESCRIPTOR' : _POLICYGETREQUEST,
92
+ '__module__' : 'policies_pb2'
93
+ # @@protoc_insertion_point(class_scope:v1.PolicyGetRequest)
94
+ })
95
+ _sym_db.RegisterMessage(PolicyGetRequest)
96
+
97
+ PolicyGetResponse = _reflection.GeneratedProtocolMessageType('PolicyGetResponse', (_message.Message,), {
98
+ 'DESCRIPTOR' : _POLICYGETRESPONSE,
99
+ '__module__' : 'policies_pb2'
100
+ # @@protoc_insertion_point(class_scope:v1.PolicyGetResponse)
101
+ })
102
+ _sym_db.RegisterMessage(PolicyGetResponse)
103
+
104
+ PolicyListRequest = _reflection.GeneratedProtocolMessageType('PolicyListRequest', (_message.Message,), {
105
+ 'DESCRIPTOR' : _POLICYLISTREQUEST,
106
+ '__module__' : 'policies_pb2'
107
+ # @@protoc_insertion_point(class_scope:v1.PolicyListRequest)
108
+ })
109
+ _sym_db.RegisterMessage(PolicyListRequest)
110
+
111
+ PolicyListResponse = _reflection.GeneratedProtocolMessageType('PolicyListResponse', (_message.Message,), {
112
+ 'DESCRIPTOR' : _POLICYLISTRESPONSE,
113
+ '__module__' : 'policies_pb2'
114
+ # @@protoc_insertion_point(class_scope:v1.PolicyListResponse)
115
+ })
116
+ _sym_db.RegisterMessage(PolicyListResponse)
117
+
118
+ Policy = _reflection.GeneratedProtocolMessageType('Policy', (_message.Message,), {
119
+ 'DESCRIPTOR' : _POLICY,
120
+ '__module__' : 'policies_pb2'
121
+ # @@protoc_insertion_point(class_scope:v1.Policy)
122
+ })
123
+ _sym_db.RegisterMessage(Policy)
124
+
125
+ _POLICIES = DESCRIPTOR.services_by_name['Policies']
126
+ if _descriptor._USE_C_DESCRIPTORS == False:
127
+
128
+ DESCRIPTOR._options = None
129
+ DESCRIPTOR._serialized_options = b'\n\031com.strongdm.api.plumbingB\020PoliciesPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1\302\222\264\007\006\242\214\264\007\001*\302\222\264\007\030\242\214\264\007\023!terraform-provider'
130
+ _POLICYCREATEREQUEST.fields_by_name['policy']._options = None
131
+ _POLICYCREATEREQUEST.fields_by_name['policy']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
132
+ _POLICYCREATEREQUEST._options = None
133
+ _POLICYCREATEREQUEST._serialized_options = b'\372\370\263\007\006\322\363\263\007\001*\372\370\263\007\030\322\363\263\007\023!terraform-provider'
134
+ _POLICYCREATERESPONSE.fields_by_name['policy']._options = None
135
+ _POLICYCREATERESPONSE.fields_by_name['policy']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
136
+ _POLICYCREATERESPONSE.fields_by_name['rate_limit']._options = None
137
+ _POLICYCREATERESPONSE.fields_by_name['rate_limit']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001\362\370\263\007\006\262\364\263\007\001*\362\370\263\007\022\262\364\263\007\r!json_gateway\362\370\263\007\030\262\364\263\007\023!terraform-provider'
138
+ _POLICYCREATERESPONSE._options = None
139
+ _POLICYCREATERESPONSE._serialized_options = b'\372\370\263\007\006\322\363\263\007\001*\372\370\263\007\030\322\363\263\007\023!terraform-provider\372\370\263\007\005\250\363\263\007\001'
140
+ _POLICYUPDATEREQUEST.fields_by_name['policy']._options = None
141
+ _POLICYUPDATEREQUEST.fields_by_name['policy']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
142
+ _POLICYUPDATEREQUEST._options = None
143
+ _POLICYUPDATEREQUEST._serialized_options = b'\372\370\263\007\006\322\363\263\007\001*\372\370\263\007\030\322\363\263\007\023!terraform-provider'
144
+ _POLICYUPDATERESPONSE.fields_by_name['policy']._options = None
145
+ _POLICYUPDATERESPONSE.fields_by_name['policy']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
146
+ _POLICYUPDATERESPONSE.fields_by_name['rate_limit']._options = None
147
+ _POLICYUPDATERESPONSE.fields_by_name['rate_limit']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001\362\370\263\007\006\262\364\263\007\001*\362\370\263\007\022\262\364\263\007\r!json_gateway\362\370\263\007\030\262\364\263\007\023!terraform-provider'
148
+ _POLICYUPDATERESPONSE._options = None
149
+ _POLICYUPDATERESPONSE._serialized_options = b'\372\370\263\007\006\322\363\263\007\001*\372\370\263\007\030\322\363\263\007\023!terraform-provider\372\370\263\007\005\250\363\263\007\001'
150
+ _POLICYDELETEREQUEST.fields_by_name['id']._options = None
151
+ _POLICYDELETEREQUEST.fields_by_name['id']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
152
+ _POLICYDELETEREQUEST._options = None
153
+ _POLICYDELETEREQUEST._serialized_options = b'\372\370\263\007\006\322\363\263\007\001*\372\370\263\007\030\322\363\263\007\023!terraform-provider'
154
+ _POLICYDELETERESPONSE.fields_by_name['rate_limit']._options = None
155
+ _POLICYDELETERESPONSE.fields_by_name['rate_limit']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001\362\370\263\007\006\262\364\263\007\001*\362\370\263\007\022\262\364\263\007\r!json_gateway\362\370\263\007\030\262\364\263\007\023!terraform-provider'
156
+ _POLICYDELETERESPONSE._options = None
157
+ _POLICYDELETERESPONSE._serialized_options = b'\372\370\263\007\006\322\363\263\007\001*\372\370\263\007\030\322\363\263\007\023!terraform-provider\372\370\263\007\005\250\363\263\007\001'
158
+ _POLICYGETREQUEST.fields_by_name['id']._options = None
159
+ _POLICYGETREQUEST.fields_by_name['id']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
160
+ _POLICYGETREQUEST._options = None
161
+ _POLICYGETREQUEST._serialized_options = b'\372\370\263\007\006\322\363\263\007\001*\372\370\263\007\030\322\363\263\007\023!terraform-provider'
162
+ _POLICYGETRESPONSE.fields_by_name['meta']._options = None
163
+ _POLICYGETRESPONSE.fields_by_name['meta']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
164
+ _POLICYGETRESPONSE.fields_by_name['policy']._options = None
165
+ _POLICYGETRESPONSE.fields_by_name['policy']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
166
+ _POLICYGETRESPONSE.fields_by_name['rate_limit']._options = None
167
+ _POLICYGETRESPONSE.fields_by_name['rate_limit']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001\362\370\263\007\006\262\364\263\007\001*\362\370\263\007\022\262\364\263\007\r!json_gateway\362\370\263\007\030\262\364\263\007\023!terraform-provider'
168
+ _POLICYGETRESPONSE._options = None
169
+ _POLICYGETRESPONSE._serialized_options = b'\372\370\263\007\005\250\363\263\007\001\372\370\263\007\006\322\363\263\007\001*\372\370\263\007\030\322\363\263\007\023!terraform-provider'
170
+ _POLICYLISTREQUEST.fields_by_name['filter']._options = None
171
+ _POLICYLISTREQUEST.fields_by_name['filter']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
172
+ _POLICYLISTREQUEST._options = None
173
+ _POLICYLISTREQUEST._serialized_options = b'\372\370\263\007\006\322\363\263\007\001*\372\370\263\007\030\322\363\263\007\023!terraform-provider'
174
+ _POLICYLISTRESPONSE.fields_by_name['policies']._options = None
175
+ _POLICYLISTRESPONSE.fields_by_name['policies']._serialized_options = b'\362\370\263\007\005\270\363\263\007\001'
176
+ _POLICYLISTRESPONSE.fields_by_name['rate_limit']._options = None
177
+ _POLICYLISTRESPONSE.fields_by_name['rate_limit']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001\362\370\263\007\006\262\364\263\007\001*\362\370\263\007\022\262\364\263\007\r!json_gateway\362\370\263\007\030\262\364\263\007\023!terraform-provider'
178
+ _POLICYLISTRESPONSE._options = None
179
+ _POLICYLISTRESPONSE._serialized_options = b'\372\370\263\007\006\322\363\263\007\001*\372\370\263\007\030\322\363\263\007\023!terraform-provider\372\370\263\007\005\250\363\263\007\001'
180
+ _POLICY.fields_by_name['id']._options = None
181
+ _POLICY.fields_by_name['id']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
182
+ _POLICY.fields_by_name['name']._options = None
183
+ _POLICY.fields_by_name['name']._serialized_options = b'\362\370\263\007\n\260\363\263\007\001\300\363\263\007\001'
184
+ _POLICY.fields_by_name['description']._options = None
185
+ _POLICY.fields_by_name['description']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
186
+ _POLICY.fields_by_name['policy']._options = None
187
+ _POLICY.fields_by_name['policy']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
188
+ _POLICY._options = None
189
+ _POLICY._serialized_options = b'\372\370\263\007#\250\363\263\007\001\322\363\263\007\001*\322\363\263\007\023!terraform-provider'
190
+ _POLICIES._options = None
191
+ _POLICIES._serialized_options = b'\312\371\263\007\013\302\371\263\007\006Policy\312\371\263\007\010\322\371\263\007\003po-\312\371\263\007\006\312\371\263\007\001*\312\371\263\007\030\312\371\263\007\023!terraform-provider\312\371\263\007\005\340\371\263\007\001\312\371\263\007\005\350\371\263\007\001'
192
+ _POLICIES.methods_by_name['Create']._options = None
193
+ _POLICIES.methods_by_name['Create']._serialized_options = b'\202\371\263\007\t\242\363\263\007\004post\202\371\263\007\021\252\363\263\007\014/v1/policies'
194
+ _POLICIES.methods_by_name['Delete']._options = None
195
+ _POLICIES.methods_by_name['Delete']._serialized_options = b'\202\371\263\007\013\242\363\263\007\006delete\202\371\263\007\026\252\363\263\007\021/v1/policies/{id}'
196
+ _POLICIES.methods_by_name['Update']._options = None
197
+ _POLICIES.methods_by_name['Update']._serialized_options = b'\202\371\263\007\010\242\363\263\007\003put\202\371\263\007\026\252\363\263\007\021/v1/policies/{id}'
198
+ _POLICIES.methods_by_name['Get']._options = None
199
+ _POLICIES.methods_by_name['Get']._serialized_options = b'\202\371\263\007\010\242\363\263\007\003get\202\371\263\007\026\252\363\263\007\021/v1/policies/{id}'
200
+ _POLICIES.methods_by_name['List']._options = None
201
+ _POLICIES.methods_by_name['List']._serialized_options = b'\202\371\263\007\010\242\363\263\007\003get\202\371\263\007\021\252\363\263\007\014/v1/policies'
202
+ _POLICYCREATEREQUEST._serialized_start=50
203
+ _POLICYCREATEREQUEST._serialized_end=194
204
+ _POLICYCREATERESPONSE._serialized_start=197
205
+ _POLICYCREATERESPONSE._serialized_end=471
206
+ _POLICYUPDATEREQUEST._serialized_start=474
207
+ _POLICYUPDATEREQUEST._serialized_end=630
208
+ _POLICYUPDATERESPONSE._serialized_start=633
209
+ _POLICYUPDATERESPONSE._serialized_end=907
210
+ _POLICYDELETEREQUEST._serialized_start=910
211
+ _POLICYDELETEREQUEST._serialized_end=1038
212
+ _POLICYDELETERESPONSE._serialized_start=1041
213
+ _POLICYDELETERESPONSE._serialized_end=1275
214
+ _POLICYGETREQUEST._serialized_start=1277
215
+ _POLICYGETREQUEST._serialized_end=1399
216
+ _POLICYGETRESPONSE._serialized_start=1402
217
+ _POLICYGETRESPONSE._serialized_end=1682
218
+ _POLICYLISTREQUEST._serialized_start=1685
219
+ _POLICYLISTREQUEST._serialized_end=1813
220
+ _POLICYLISTRESPONSE._serialized_start=1816
221
+ _POLICYLISTRESPONSE._serialized_end=2088
222
+ _POLICY._serialized_start=2091
223
+ _POLICY._serialized_end=2257
224
+ _POLICIES._serialized_start=2260
225
+ _POLICIES._serialized_end=2855
226
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,223 @@
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 gRPC Python protocol compiler plugin. DO NOT EDIT!
16
+ """Client and server classes corresponding to protobuf-defined services."""
17
+ import grpc
18
+
19
+ from . import policies_pb2 as policies__pb2
20
+
21
+
22
+ class PoliciesStub(object):
23
+ """Policies are the collection of one or more statements that enforce fine-grained access
24
+ control for the users of an organization.
25
+ """
26
+
27
+ def __init__(self, channel):
28
+ """Constructor.
29
+
30
+ Args:
31
+ channel: A grpc.Channel.
32
+ """
33
+ self.Create = channel.unary_unary(
34
+ '/v1.Policies/Create',
35
+ request_serializer=policies__pb2.PolicyCreateRequest.SerializeToString,
36
+ response_deserializer=policies__pb2.PolicyCreateResponse.FromString,
37
+ )
38
+ self.Delete = channel.unary_unary(
39
+ '/v1.Policies/Delete',
40
+ request_serializer=policies__pb2.PolicyDeleteRequest.SerializeToString,
41
+ response_deserializer=policies__pb2.PolicyDeleteResponse.FromString,
42
+ )
43
+ self.Update = channel.unary_unary(
44
+ '/v1.Policies/Update',
45
+ request_serializer=policies__pb2.PolicyUpdateRequest.SerializeToString,
46
+ response_deserializer=policies__pb2.PolicyUpdateResponse.FromString,
47
+ )
48
+ self.Get = channel.unary_unary(
49
+ '/v1.Policies/Get',
50
+ request_serializer=policies__pb2.PolicyGetRequest.SerializeToString,
51
+ response_deserializer=policies__pb2.PolicyGetResponse.FromString,
52
+ )
53
+ self.List = channel.unary_unary(
54
+ '/v1.Policies/List',
55
+ request_serializer=policies__pb2.PolicyListRequest.SerializeToString,
56
+ response_deserializer=policies__pb2.PolicyListResponse.FromString,
57
+ )
58
+
59
+
60
+ class PoliciesServicer(object):
61
+ """Policies are the collection of one or more statements that enforce fine-grained access
62
+ control for the users of an organization.
63
+ """
64
+
65
+ def Create(self, request, context):
66
+ """Create creates a new Policy.
67
+ """
68
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
69
+ context.set_details('Method not implemented!')
70
+ raise NotImplementedError('Method not implemented!')
71
+
72
+ def Delete(self, request, context):
73
+ """Delete removes a Policy by ID.
74
+ """
75
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
76
+ context.set_details('Method not implemented!')
77
+ raise NotImplementedError('Method not implemented!')
78
+
79
+ def Update(self, request, context):
80
+ """Update replaces all the fields of a Policy by ID.
81
+ """
82
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
83
+ context.set_details('Method not implemented!')
84
+ raise NotImplementedError('Method not implemented!')
85
+
86
+ def Get(self, request, context):
87
+ """Get reads one Policy by ID.
88
+ """
89
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
90
+ context.set_details('Method not implemented!')
91
+ raise NotImplementedError('Method not implemented!')
92
+
93
+ def List(self, request, context):
94
+ """List gets a list of Policy matching a given set of criteria
95
+ """
96
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
97
+ context.set_details('Method not implemented!')
98
+ raise NotImplementedError('Method not implemented!')
99
+
100
+
101
+ def add_PoliciesServicer_to_server(servicer, server):
102
+ rpc_method_handlers = {
103
+ 'Create': grpc.unary_unary_rpc_method_handler(
104
+ servicer.Create,
105
+ request_deserializer=policies__pb2.PolicyCreateRequest.FromString,
106
+ response_serializer=policies__pb2.PolicyCreateResponse.SerializeToString,
107
+ ),
108
+ 'Delete': grpc.unary_unary_rpc_method_handler(
109
+ servicer.Delete,
110
+ request_deserializer=policies__pb2.PolicyDeleteRequest.FromString,
111
+ response_serializer=policies__pb2.PolicyDeleteResponse.SerializeToString,
112
+ ),
113
+ 'Update': grpc.unary_unary_rpc_method_handler(
114
+ servicer.Update,
115
+ request_deserializer=policies__pb2.PolicyUpdateRequest.FromString,
116
+ response_serializer=policies__pb2.PolicyUpdateResponse.SerializeToString,
117
+ ),
118
+ 'Get': grpc.unary_unary_rpc_method_handler(
119
+ servicer.Get,
120
+ request_deserializer=policies__pb2.PolicyGetRequest.FromString,
121
+ response_serializer=policies__pb2.PolicyGetResponse.SerializeToString,
122
+ ),
123
+ 'List': grpc.unary_unary_rpc_method_handler(
124
+ servicer.List,
125
+ request_deserializer=policies__pb2.PolicyListRequest.FromString,
126
+ response_serializer=policies__pb2.PolicyListResponse.SerializeToString,
127
+ ),
128
+ }
129
+ generic_handler = grpc.method_handlers_generic_handler(
130
+ 'v1.Policies', rpc_method_handlers)
131
+ server.add_generic_rpc_handlers((generic_handler,))
132
+
133
+
134
+ # This class is part of an EXPERIMENTAL API.
135
+ class Policies(object):
136
+ """Policies are the collection of one or more statements that enforce fine-grained access
137
+ control for the users of an organization.
138
+ """
139
+
140
+ @staticmethod
141
+ def Create(request,
142
+ target,
143
+ options=(),
144
+ channel_credentials=None,
145
+ call_credentials=None,
146
+ insecure=False,
147
+ compression=None,
148
+ wait_for_ready=None,
149
+ timeout=None,
150
+ metadata=None):
151
+ return grpc.experimental.unary_unary(request, target, '/v1.Policies/Create',
152
+ policies__pb2.PolicyCreateRequest.SerializeToString,
153
+ policies__pb2.PolicyCreateResponse.FromString,
154
+ options, channel_credentials,
155
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
156
+
157
+ @staticmethod
158
+ def Delete(request,
159
+ target,
160
+ options=(),
161
+ channel_credentials=None,
162
+ call_credentials=None,
163
+ insecure=False,
164
+ compression=None,
165
+ wait_for_ready=None,
166
+ timeout=None,
167
+ metadata=None):
168
+ return grpc.experimental.unary_unary(request, target, '/v1.Policies/Delete',
169
+ policies__pb2.PolicyDeleteRequest.SerializeToString,
170
+ policies__pb2.PolicyDeleteResponse.FromString,
171
+ options, channel_credentials,
172
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
173
+
174
+ @staticmethod
175
+ def Update(request,
176
+ target,
177
+ options=(),
178
+ channel_credentials=None,
179
+ call_credentials=None,
180
+ insecure=False,
181
+ compression=None,
182
+ wait_for_ready=None,
183
+ timeout=None,
184
+ metadata=None):
185
+ return grpc.experimental.unary_unary(request, target, '/v1.Policies/Update',
186
+ policies__pb2.PolicyUpdateRequest.SerializeToString,
187
+ policies__pb2.PolicyUpdateResponse.FromString,
188
+ options, channel_credentials,
189
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
190
+
191
+ @staticmethod
192
+ def Get(request,
193
+ target,
194
+ options=(),
195
+ channel_credentials=None,
196
+ call_credentials=None,
197
+ insecure=False,
198
+ compression=None,
199
+ wait_for_ready=None,
200
+ timeout=None,
201
+ metadata=None):
202
+ return grpc.experimental.unary_unary(request, target, '/v1.Policies/Get',
203
+ policies__pb2.PolicyGetRequest.SerializeToString,
204
+ policies__pb2.PolicyGetResponse.FromString,
205
+ options, channel_credentials,
206
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
207
+
208
+ @staticmethod
209
+ def List(request,
210
+ target,
211
+ options=(),
212
+ channel_credentials=None,
213
+ call_credentials=None,
214
+ insecure=False,
215
+ compression=None,
216
+ wait_for_ready=None,
217
+ timeout=None,
218
+ metadata=None):
219
+ return grpc.experimental.unary_unary(request, target, '/v1.Policies/List',
220
+ policies__pb2.PolicyListRequest.SerializeToString,
221
+ policies__pb2.PolicyListResponse.FromString,
222
+ options, channel_credentials,
223
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)