From 9ed48819f2c4e020d84d94513aaa630874c31bfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Kutryj?= Date: Wed, 1 Oct 2025 13:29:15 +0200 Subject: [PATCH 1/2] feat(rbac): add endpoint for listing subjects --- ee/rbac/lib/internal_api/rbac.pb.ex | 19 + ee/rbac/lib/rbac/grpc_servers/rbac_server.ex | 22 + ee/rbac/lib/rbac/repo/subject.ex | 11 +- .../rbac/grpc_servers/rbac_server_test.exs | 78 +++ rbac/ce/lib/internal_api/feature.pb.ex | 114 ++-- rbac/ce/lib/internal_api/guard.pb.ex | 363 +++++------ rbac/ce/lib/internal_api/health.pb.ex | 18 +- .../include/google/protobuf/timestamp.pb.ex | 6 +- .../include/google/rpc/code.pb.ex | 36 +- .../include/google/rpc/status.pb.ex | 8 +- .../internal_api/response_status.pb.ex | 10 +- rbac/ce/lib/internal_api/organization.pb.ex | 478 +++++++-------- rbac/ce/lib/internal_api/projecthub.pb.ex | 580 +++++++++--------- rbac/ce/lib/internal_api/rbac.pb.ex | 270 ++++---- .../internal_api/repository_integrator.pb.ex | 145 ++--- rbac/ce/lib/internal_api/user.pb.ex | 336 +++++----- rbac/ce/lib/rbac/grpc_servers/rbac_server.ex | 25 + rbac/ce/lib/rbac/models/role_assignment.ex | 12 + .../rbac/grpc_servers/rbac_server_test.exs | 131 ++++ 19 files changed, 1410 insertions(+), 1252 deletions(-) diff --git a/ee/rbac/lib/internal_api/rbac.pb.ex b/ee/rbac/lib/internal_api/rbac.pb.ex index 5c7b4a4b4..a0568caea 100644 --- a/ee/rbac/lib/internal_api/rbac.pb.ex +++ b/ee/rbac/lib/internal_api/rbac.pb.ex @@ -380,6 +380,23 @@ defmodule InternalApi.RBAC.Permission do field(:scope, 4, type: InternalApi.RBAC.Scope, enum: true) end +defmodule InternalApi.RBAC.ListSubjectsRequest do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + + field(:org_id, 1, type: :string, json_name: "orgId") + field(:subject_ids, 2, repeated: true, type: :string, json_name: "subjectIds") +end + +defmodule InternalApi.RBAC.ListSubjectsResponse do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + + field(:subjects, 1, repeated: true, type: InternalApi.RBAC.Subject) +end + defmodule InternalApi.RBAC.RBAC.Service do @moduledoc false @@ -436,6 +453,8 @@ defmodule InternalApi.RBAC.RBAC.Service do InternalApi.RBAC.RefreshCollaboratorsRequest, InternalApi.RBAC.RefreshCollaboratorsResponse ) + + rpc(:ListSubjects, InternalApi.RBAC.ListSubjectsRequest, InternalApi.RBAC.ListSubjectsResponse) end defmodule InternalApi.RBAC.RBAC.Stub do diff --git a/ee/rbac/lib/rbac/grpc_servers/rbac_server.ex b/ee/rbac/lib/rbac/grpc_servers/rbac_server.ex index ab8585b0f..714391356 100644 --- a/ee/rbac/lib/rbac/grpc_servers/rbac_server.ex +++ b/ee/rbac/lib/rbac/grpc_servers/rbac_server.ex @@ -264,6 +264,18 @@ defmodule Rbac.GrpcServers.RbacServer do end) end + def list_subjects(%RBAC.ListSubjectsRequest{} = req, _stream) do + Watchman.benchmark("list_subjects.duration", fn -> + validate_uuid!(req.org_id) + + subjects = Rbac.Repo.Subject.find_by_ids_and_org(req.subject_ids, req.org_id) + + %RBAC.ListSubjectsResponse{ + subjects: Enum.map(subjects, &construct_grpc_subject/1) + } + end) + end + ### ### Helper functions ### @@ -443,6 +455,16 @@ defmodule Rbac.GrpcServers.RbacServer do } end + defp construct_grpc_subject(subject) do + subject_type = subject.type |> String.upcase() |> String.to_existing_atom() + + %RBAC.Subject{ + subject_type: subject_type, + subject_id: subject.id, + display_name: subject.name + } + end + defp scope_name_to_grpc_enum(name) do case name do "org_scope" -> :SCOPE_ORG diff --git a/ee/rbac/lib/rbac/repo/subject.ex b/ee/rbac/lib/rbac/repo/subject.ex index 2c85b97cb..4fdaec713 100644 --- a/ee/rbac/lib/rbac/repo/subject.ex +++ b/ee/rbac/lib/rbac/repo/subject.ex @@ -1,6 +1,6 @@ defmodule Rbac.Repo.Subject do use Rbac.Repo.Schema - import Ecto.Query, only: [where: 3] + import Ecto.Query schema "subjects" do has_many(:role_bindings, Rbac.Repo.SubjectRoleBinding) @@ -15,6 +15,15 @@ defmodule Rbac.Repo.Subject do __MODULE__ |> where([s], s.id == ^id) |> Rbac.Repo.one() end + @spec find_by_ids_and_org([String.t()], String.t()) :: [%__MODULE__{}] + def find_by_ids_and_org(subject_ids, org_id) do + __MODULE__ + |> join(:inner, [s], srb in assoc(s, :role_bindings)) + |> where([s, srb], s.id in ^subject_ids and srb.org_id == ^org_id) + |> distinct([s], s.id) + |> Rbac.Repo.all() + end + def changeset(subject, params \\ %{}) do subject |> cast(params, [:id, :name, :type]) diff --git a/ee/rbac/test/rbac/grpc_servers/rbac_server_test.exs b/ee/rbac/test/rbac/grpc_servers/rbac_server_test.exs index 81b748fa5..ac0b04db1 100644 --- a/ee/rbac/test/rbac/grpc_servers/rbac_server_test.exs +++ b/ee/rbac/test/rbac/grpc_servers/rbac_server_test.exs @@ -1068,6 +1068,84 @@ defmodule Rbac.GrpcServers.RbacServer.Test do end end + describe "list_subjects" do + alias InternalApi.RBAC.ListSubjectsRequest, as: Request + + test "invalid org_id returns error", state do + req = %Request{org_id: "invalid-uuid", subject_ids: []} + {:error, grpc_error} = state.grpc_channel |> Stub.list_subjects(req) + assert grpc_error.message =~ "Invalid uuid" + end + + test "returns subjects that are part of the organization", state do + user1_id = UUID.generate() + user2_id = UUID.generate() + user3_id = UUID.generate() + + Support.Factories.RbacUser.insert(user1_id, "User One") + Support.Factories.RbacUser.insert(user2_id, "User Two") + Support.Factories.RbacUser.insert(user3_id, "User Three") + + Support.Rbac.assign_org_role_by_name(@org_id, user1_id, "Admin") + Support.Rbac.assign_org_role_by_name(@org_id, user2_id, "Member") + + req = %Request{org_id: @org_id, subject_ids: [user1_id, user2_id, user3_id]} + {:ok, %{subjects: subjects}} = state.grpc_channel |> Stub.list_subjects(req) + + assert length(subjects) == 2 + subject_ids = Enum.map(subjects, & &1.subject_id) + assert user1_id in subject_ids + assert user2_id in subject_ids + refute user3_id in subject_ids + end + + test "returns empty list when no subjects match", state do + user_id = UUID.generate() + Support.Factories.RbacUser.insert(user_id, "User One") + + req = %Request{org_id: @org_id, subject_ids: [user_id]} + {:ok, %{subjects: subjects}} = state.grpc_channel |> Stub.list_subjects(req) + + assert subjects == [] + end + + test "returns subjects with correct type and display name", state do + user_id = UUID.generate() + Support.Factories.RbacUser.insert(user_id, "Test User") + Support.Rbac.assign_org_role_by_name(@org_id, user_id, "Admin") + + req = %Request{org_id: @org_id, subject_ids: [user_id]} + {:ok, %{subjects: subjects}} = state.grpc_channel |> Stub.list_subjects(req) + + assert length(subjects) == 1 + subject = hd(subjects) + assert subject.subject_id == user_id + assert subject.display_name == "Test User" + assert subject.subject_type == :USER + end + + test "returns empty list when subject_ids is empty", state do + req = %Request{org_id: @org_id, subject_ids: []} + {:ok, %{subjects: subjects}} = state.grpc_channel |> Stub.list_subjects(req) + + assert subjects == [] + end + + test "filters subjects by organization correctly", state do + other_org_id = UUID.generate() + user_id = UUID.generate() + + Support.Factories.RbacUser.insert(user_id, "User One") + Support.Rbac.create_org_roles(other_org_id) + Support.Rbac.assign_org_role_by_name(other_org_id, user_id, "Admin") + + req = %Request{org_id: @org_id, subject_ids: [user_id]} + {:ok, %{subjects: subjects}} = state.grpc_channel |> Stub.list_subjects(req) + + assert subjects == [] + end + end + ### ### Helper functions ### diff --git a/rbac/ce/lib/internal_api/feature.pb.ex b/rbac/ce/lib/internal_api/feature.pb.ex index 1c4981d49..2613ad9e6 100644 --- a/rbac/ce/lib/internal_api/feature.pb.ex +++ b/rbac/ce/lib/internal_api/feature.pb.ex @@ -3,8 +3,8 @@ defmodule InternalApi.Feature.Machine.Platform do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:LINUX, 0) - field(:MAC, 1) + field :LINUX, 0 + field :MAC, 1 end defmodule InternalApi.Feature.Availability.State do @@ -12,9 +12,9 @@ defmodule InternalApi.Feature.Availability.State do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:HIDDEN, 0) - field(:ZERO_STATE, 1) - field(:ENABLED, 2) + field :HIDDEN, 0 + field :ZERO_STATE, 1 + field :ENABLED, 2 end defmodule InternalApi.Feature.ListOrganizationFeaturesRequest do @@ -22,7 +22,7 @@ defmodule InternalApi.Feature.ListOrganizationFeaturesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") + field :org_id, 1, type: :string, json_name: "orgId" end defmodule InternalApi.Feature.ListOrganizationFeaturesResponse do @@ -30,11 +30,10 @@ defmodule InternalApi.Feature.ListOrganizationFeaturesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:organization_features, 1, + field :organization_features, 1, repeated: true, type: InternalApi.Feature.OrganizationFeature, json_name: "organizationFeatures" - ) end defmodule InternalApi.Feature.OrganizationFeature do @@ -42,12 +41,12 @@ defmodule InternalApi.Feature.OrganizationFeature do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:feature, 1, type: InternalApi.Feature.Feature) - field(:availability, 2, type: InternalApi.Feature.Availability) - field(:project_ids, 3, repeated: true, type: :string, json_name: "projectIds") - field(:requester_id, 5, type: :string, json_name: "requesterId") - field(:created_at, 6, type: Google.Protobuf.Timestamp, json_name: "createdAt") - field(:updated_at, 7, type: Google.Protobuf.Timestamp, json_name: "updatedAt") + field :feature, 1, type: InternalApi.Feature.Feature + field :availability, 2, type: InternalApi.Feature.Availability + field :project_ids, 3, repeated: true, type: :string, json_name: "projectIds" + field :requester_id, 5, type: :string, json_name: "requesterId" + field :created_at, 6, type: Google.Protobuf.Timestamp, json_name: "createdAt" + field :updated_at, 7, type: Google.Protobuf.Timestamp, json_name: "updatedAt" end defmodule InternalApi.Feature.ListFeaturesRequest do @@ -61,7 +60,7 @@ defmodule InternalApi.Feature.ListFeaturesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:features, 1, repeated: true, type: InternalApi.Feature.Feature) + field :features, 1, repeated: true, type: InternalApi.Feature.Feature end defmodule InternalApi.Feature.Feature do @@ -69,10 +68,10 @@ defmodule InternalApi.Feature.Feature do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:type, 1, type: :string) - field(:availability, 2, type: InternalApi.Feature.Availability) - field(:name, 3, type: :string) - field(:description, 4, type: :string) + field :type, 1, type: :string + field :availability, 2, type: InternalApi.Feature.Availability + field :name, 3, type: :string + field :description, 4, type: :string end defmodule InternalApi.Feature.ListOrganizationMachinesRequest do @@ -80,7 +79,7 @@ defmodule InternalApi.Feature.ListOrganizationMachinesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") + field :org_id, 1, type: :string, json_name: "orgId" end defmodule InternalApi.Feature.ListOrganizationMachinesResponse do @@ -88,13 +87,12 @@ defmodule InternalApi.Feature.ListOrganizationMachinesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:organization_machines, 1, + field :organization_machines, 1, repeated: true, type: InternalApi.Feature.OrganizationMachine, json_name: "organizationMachines" - ) - field(:default_type, 2, type: :string, json_name: "defaultType") + field :default_type, 2, type: :string, json_name: "defaultType" end defmodule InternalApi.Feature.OrganizationMachine do @@ -102,11 +100,11 @@ defmodule InternalApi.Feature.OrganizationMachine do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:machine, 1, type: InternalApi.Feature.Machine) - field(:availability, 2, type: InternalApi.Feature.Availability) - field(:requester_id, 3, type: :string, json_name: "requesterId") - field(:created_at, 4, type: Google.Protobuf.Timestamp, json_name: "createdAt") - field(:updated_at, 5, type: Google.Protobuf.Timestamp, json_name: "updatedAt") + field :machine, 1, type: InternalApi.Feature.Machine + field :availability, 2, type: InternalApi.Feature.Availability + field :requester_id, 3, type: :string, json_name: "requesterId" + field :created_at, 4, type: Google.Protobuf.Timestamp, json_name: "createdAt" + field :updated_at, 5, type: Google.Protobuf.Timestamp, json_name: "updatedAt" end defmodule InternalApi.Feature.ListMachinesRequest do @@ -120,7 +118,7 @@ defmodule InternalApi.Feature.ListMachinesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:machines, 1, repeated: true, type: InternalApi.Feature.Machine) + field :machines, 1, repeated: true, type: InternalApi.Feature.Machine end defmodule InternalApi.Feature.Machine do @@ -128,14 +126,14 @@ defmodule InternalApi.Feature.Machine do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:type, 1, type: :string) - field(:availability, 2, type: InternalApi.Feature.Availability) - field(:platform, 3, type: InternalApi.Feature.Machine.Platform, enum: true) - field(:vcpu, 4, type: :string) - field(:ram, 5, type: :string) - field(:disk, 6, type: :string) - field(:default_os_image, 7, type: :string, json_name: "defaultOsImage") - field(:os_images, 8, repeated: true, type: :string, json_name: "osImages") + field :type, 1, type: :string + field :availability, 2, type: InternalApi.Feature.Availability + field :platform, 3, type: InternalApi.Feature.Machine.Platform, enum: true + field :vcpu, 4, type: :string + field :ram, 5, type: :string + field :disk, 6, type: :string + field :default_os_image, 7, type: :string, json_name: "defaultOsImage" + field :os_images, 8, repeated: true, type: :string, json_name: "osImages" end defmodule InternalApi.Feature.Availability do @@ -143,8 +141,8 @@ defmodule InternalApi.Feature.Availability do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:state, 1, type: InternalApi.Feature.Availability.State, enum: true) - field(:quantity, 2, type: :uint32) + field :state, 1, type: InternalApi.Feature.Availability.State, enum: true + field :quantity, 2, type: :uint32 end defmodule InternalApi.Feature.MachinesChanged do @@ -158,7 +156,7 @@ defmodule InternalApi.Feature.OrganizationMachinesChanged do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") + field :org_id, 1, type: :string, json_name: "orgId" end defmodule InternalApi.Feature.FeaturesChanged do @@ -172,7 +170,7 @@ defmodule InternalApi.Feature.OrganizationFeaturesChanged do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") + field :org_id, 1, type: :string, json_name: "orgId" end defmodule InternalApi.Feature.FeatureService.Service do @@ -182,33 +180,25 @@ defmodule InternalApi.Feature.FeatureService.Service do name: "InternalApi.Feature.FeatureService", protoc_gen_elixir_version: "0.13.0" - rpc( - :ListOrganizationFeatures, - InternalApi.Feature.ListOrganizationFeaturesRequest, - InternalApi.Feature.ListOrganizationFeaturesResponse - ) + rpc :ListOrganizationFeatures, + InternalApi.Feature.ListOrganizationFeaturesRequest, + InternalApi.Feature.ListOrganizationFeaturesResponse - rpc( - :ListFeatures, - InternalApi.Feature.ListFeaturesRequest, - InternalApi.Feature.ListFeaturesResponse - ) + rpc :ListFeatures, + InternalApi.Feature.ListFeaturesRequest, + InternalApi.Feature.ListFeaturesResponse - rpc( - :ListOrganizationMachines, - InternalApi.Feature.ListOrganizationMachinesRequest, - InternalApi.Feature.ListOrganizationMachinesResponse - ) + rpc :ListOrganizationMachines, + InternalApi.Feature.ListOrganizationMachinesRequest, + InternalApi.Feature.ListOrganizationMachinesResponse - rpc( - :ListMachines, - InternalApi.Feature.ListMachinesRequest, - InternalApi.Feature.ListMachinesResponse - ) + rpc :ListMachines, + InternalApi.Feature.ListMachinesRequest, + InternalApi.Feature.ListMachinesResponse end defmodule InternalApi.Feature.FeatureService.Stub do @moduledoc false use GRPC.Stub, service: InternalApi.Feature.FeatureService.Service -end +end \ No newline at end of file diff --git a/rbac/ce/lib/internal_api/guard.pb.ex b/rbac/ce/lib/internal_api/guard.pb.ex index f950ec7ae..ea5424ffc 100644 --- a/rbac/ce/lib/internal_api/guard.pb.ex +++ b/rbac/ce/lib/internal_api/guard.pb.ex @@ -3,10 +3,10 @@ defmodule InternalApi.Guard.Action do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:CREATE, 0) - field(:READ, 1) - field(:UPDATE, 2) - field(:DELETE, 3) + field :CREATE, 0 + field :READ, 1 + field :UPDATE, 2 + field :DELETE, 3 end defmodule InternalApi.Guard.Resource.Type do @@ -14,16 +14,16 @@ defmodule InternalApi.Guard.Resource.Type do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:Project, 0) - field(:Organization, 1) - field(:Secret, 2) - field(:Member, 3) - field(:Pipeline, 4) - field(:Dashboard, 5) - field(:Coupon, 6) - field(:Periodic, 7) - field(:Job, 8) - field(:Workflow, 9) + field :Project, 0 + field :Organization, 1 + field :Secret, 2 + field :Member, 3 + field :Pipeline, 4 + field :Dashboard, 5 + field :Coupon, 6 + field :Periodic, 7 + field :Job, 8 + field :Workflow, 9 end defmodule InternalApi.Guard.Role.Name do @@ -31,8 +31,8 @@ defmodule InternalApi.Guard.Role.Name do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:Admin, 0) - field(:Owner, 1) + field :Admin, 0 + field :Owner, 1 end defmodule InternalApi.Guard.Operation.Name do @@ -40,29 +40,29 @@ defmodule InternalApi.Guard.Operation.Name do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:ViewOrganizationSettings, 0) - field(:ViewProjectSettings, 1) - field(:AddProject, 2) - field(:DeleteProject, 3) - field(:ManagePeople, 4) - field(:ManageSecrets, 5) - field(:ManageProjectSettings, 6) - field(:ManageOrganizationSettings, 7) - field(:ViewProjectScheduler, 8) - field(:ManageProjectScheduler, 9) - field(:ViewProject, 10) - field(:ViewSelfHostedAgentTypes, 11) - field(:ManageSelfHostedAgentTypes, 12) - field(:ManageBilling, 13) - field(:ViewBilling, 14) - field(:ViewSecretsPolicySettings, 15) - field(:ManageSecretsPolicySettings, 16) - field(:ViewSecrets, 17) - field(:ViewOrganizationIpAllowList, 18) - field(:ManageOrganizationIpAllowList, 19) - field(:ManageProjectSecrets, 20) - field(:ViewDeploymentTargets, 21) - field(:ManageDeploymentTargets, 22) + field :ViewOrganizationSettings, 0 + field :ViewProjectSettings, 1 + field :AddProject, 2 + field :DeleteProject, 3 + field :ManagePeople, 4 + field :ManageSecrets, 5 + field :ManageProjectSettings, 6 + field :ManageOrganizationSettings, 7 + field :ViewProjectScheduler, 8 + field :ManageProjectScheduler, 9 + field :ViewProject, 10 + field :ViewSelfHostedAgentTypes, 11 + field :ManageSelfHostedAgentTypes, 12 + field :ManageBilling, 13 + field :ViewBilling, 14 + field :ViewSecretsPolicySettings, 15 + field :ManageSecretsPolicySettings, 16 + field :ViewSecrets, 17 + field :ViewOrganizationIpAllowList, 18 + field :ManageOrganizationIpAllowList, 19 + field :ManageProjectSecrets, 20 + field :ViewDeploymentTargets, 21 + field :ManageDeploymentTargets, 22 end defmodule InternalApi.Guard.ChangeEmailRequest do @@ -70,9 +70,9 @@ defmodule InternalApi.Guard.ChangeEmailRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:requester_id, 1, type: :string, json_name: "requesterId") - field(:user_id, 2, type: :string, json_name: "userId") - field(:email, 3, type: :string) + field :requester_id, 1, type: :string, json_name: "requesterId" + field :user_id, 2, type: :string, json_name: "userId" + field :email, 3, type: :string end defmodule InternalApi.Guard.ChangeEmailResponse do @@ -80,8 +80,8 @@ defmodule InternalApi.Guard.ChangeEmailResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:email, 1, type: :string) - field(:msg, 2, type: :string) + field :email, 1, type: :string + field :msg, 2, type: :string end defmodule InternalApi.Guard.ResetPasswordRequest do @@ -89,8 +89,8 @@ defmodule InternalApi.Guard.ResetPasswordRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:requester_id, 1, type: :string, json_name: "requesterId") - field(:user_id, 2, type: :string, json_name: "userId") + field :requester_id, 1, type: :string, json_name: "requesterId" + field :user_id, 2, type: :string, json_name: "userId" end defmodule InternalApi.Guard.ResetPasswordResponse do @@ -98,8 +98,8 @@ defmodule InternalApi.Guard.ResetPasswordResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:password, 1, type: :string) - field(:msg, 2, type: :string) + field :password, 1, type: :string + field :msg, 2, type: :string end defmodule InternalApi.Guard.CreateMemberRequest do @@ -107,10 +107,10 @@ defmodule InternalApi.Guard.CreateMemberRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:inviter_id, 1, type: :string, json_name: "inviterId") - field(:org_id, 2, type: :string, json_name: "orgId") - field(:email, 3, type: :string) - field(:name, 4, type: :string) + field :inviter_id, 1, type: :string, json_name: "inviterId" + field :org_id, 2, type: :string, json_name: "orgId" + field :email, 3, type: :string + field :name, 4, type: :string end defmodule InternalApi.Guard.CreateMemberResponse do @@ -118,8 +118,8 @@ defmodule InternalApi.Guard.CreateMemberResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:password, 1, type: :string) - field(:msg, 2, type: :string) + field :password, 1, type: :string + field :msg, 2, type: :string end defmodule InternalApi.Guard.InviteCollaboratorsRequest do @@ -127,9 +127,9 @@ defmodule InternalApi.Guard.InviteCollaboratorsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:inviter_id, 1, type: :string, json_name: "inviterId") - field(:org_id, 2, type: :string, json_name: "orgId") - field(:invitees, 3, repeated: true, type: InternalApi.Guard.Invitee) + field :inviter_id, 1, type: :string, json_name: "inviterId" + field :org_id, 2, type: :string, json_name: "orgId" + field :invitees, 3, repeated: true, type: InternalApi.Guard.Invitee end defmodule InternalApi.Guard.InviteCollaboratorsResponse do @@ -137,7 +137,7 @@ defmodule InternalApi.Guard.InviteCollaboratorsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:invitees, 1, repeated: true, type: InternalApi.Guard.Invitee) + field :invitees, 1, repeated: true, type: InternalApi.Guard.Invitee end defmodule InternalApi.Guard.Invitee do @@ -145,9 +145,9 @@ defmodule InternalApi.Guard.Invitee do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:email, 1, type: :string) - field(:name, 2, type: :string) - field(:provider, 3, type: InternalApi.User.RepositoryProvider) + field :email, 1, type: :string + field :name, 2, type: :string + field :provider, 3, type: InternalApi.User.RepositoryProvider end defmodule InternalApi.Guard.OrganizationMembersRequest do @@ -155,8 +155,8 @@ defmodule InternalApi.Guard.OrganizationMembersRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:name_contains, 4, type: :string, json_name: "nameContains") + field :org_id, 1, type: :string, json_name: "orgId" + field :name_contains, 4, type: :string, json_name: "nameContains" end defmodule InternalApi.Guard.OrganizationMembersResponse do @@ -164,7 +164,7 @@ defmodule InternalApi.Guard.OrganizationMembersResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:members, 1, repeated: true, type: InternalApi.Guard.OrganizationMember) + field :members, 1, repeated: true, type: InternalApi.Guard.OrganizationMember end defmodule InternalApi.Guard.OrganizationMember do @@ -172,16 +172,15 @@ defmodule InternalApi.Guard.OrganizationMember do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:display_name, 2, type: :string, json_name: "displayName") - field(:avatar_url, 3, type: :string, json_name: "avatarUrl") - field(:organization_role, 4, type: :string, json_name: "organizationRole") + field :user_id, 1, type: :string, json_name: "userId" + field :display_name, 2, type: :string, json_name: "displayName" + field :avatar_url, 3, type: :string, json_name: "avatarUrl" + field :organization_role, 4, type: :string, json_name: "organizationRole" - field(:repository_providers, 5, + field :repository_providers, 5, repeated: true, type: InternalApi.User.RepositoryProvider, json_name: "repositoryProviders" - ) end defmodule InternalApi.Guard.ProjectMembersRequest do @@ -189,8 +188,8 @@ defmodule InternalApi.Guard.ProjectMembersRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:project_id, 1, type: :string, json_name: "projectId") - field(:name_contains, 4, type: :string, json_name: "nameContains") + field :project_id, 1, type: :string, json_name: "projectId" + field :name_contains, 4, type: :string, json_name: "nameContains" end defmodule InternalApi.Guard.ProjectMembersResponse do @@ -198,7 +197,7 @@ defmodule InternalApi.Guard.ProjectMembersResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:members, 1, repeated: true, type: InternalApi.Guard.ProjectMember) + field :members, 1, repeated: true, type: InternalApi.Guard.ProjectMember end defmodule InternalApi.Guard.ProjectMember do @@ -206,17 +205,16 @@ defmodule InternalApi.Guard.ProjectMember do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:display_name, 2, type: :string, json_name: "displayName") - field(:avatar_url, 3, type: :string, json_name: "avatarUrl") - field(:organization_role, 4, type: :string, json_name: "organizationRole") - field(:project_role, 5, type: :string, json_name: "projectRole") + field :user_id, 1, type: :string, json_name: "userId" + field :display_name, 2, type: :string, json_name: "displayName" + field :avatar_url, 3, type: :string, json_name: "avatarUrl" + field :organization_role, 4, type: :string, json_name: "organizationRole" + field :project_role, 5, type: :string, json_name: "projectRole" - field(:repository_providers, 6, + field :repository_providers, 6, repeated: true, type: InternalApi.User.RepositoryProvider, json_name: "repositoryProviders" - ) end defmodule InternalApi.Guard.RepositoryCollaboratorsRequest do @@ -224,8 +222,8 @@ defmodule InternalApi.Guard.RepositoryCollaboratorsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:project_id, 2, type: :string, json_name: "projectId") + field :org_id, 1, type: :string, json_name: "orgId" + field :project_id, 2, type: :string, json_name: "projectId" end defmodule InternalApi.Guard.RepositoryCollaboratorsResponse do @@ -233,7 +231,7 @@ defmodule InternalApi.Guard.RepositoryCollaboratorsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:collaborators, 1, repeated: true, type: InternalApi.Guard.RepositoryCollaborator) + field :collaborators, 1, repeated: true, type: InternalApi.Guard.RepositoryCollaborator end defmodule InternalApi.Guard.RepositoryCollaborator do @@ -241,13 +239,12 @@ defmodule InternalApi.Guard.RepositoryCollaborator do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:display_name, 1, type: :string, json_name: "displayName") - field(:avatar_url, 2, type: :string, json_name: "avatarUrl") + field :display_name, 1, type: :string, json_name: "displayName" + field :avatar_url, 2, type: :string, json_name: "avatarUrl" - field(:repository_provider, 3, + field :repository_provider, 3, type: InternalApi.User.RepositoryProvider, json_name: "repositoryProvider" - ) end defmodule InternalApi.Guard.InvitationsRequest do @@ -255,7 +252,7 @@ defmodule InternalApi.Guard.InvitationsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") + field :org_id, 1, type: :string, json_name: "orgId" end defmodule InternalApi.Guard.InvitationsResponse do @@ -263,7 +260,7 @@ defmodule InternalApi.Guard.InvitationsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:invitations, 1, repeated: true, type: InternalApi.Guard.Invitation) + field :invitations, 1, repeated: true, type: InternalApi.Guard.Invitation end defmodule InternalApi.Guard.Invitation do @@ -271,10 +268,10 @@ defmodule InternalApi.Guard.Invitation do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:id, 1, type: :string) - field(:invited_at, 2, type: Google.Protobuf.Timestamp, json_name: "invitedAt") - field(:display_name, 3, type: :string, json_name: "displayName") - field(:avatar_url, 4, type: :string, json_name: "avatarUrl") + field :id, 1, type: :string + field :invited_at, 2, type: Google.Protobuf.Timestamp, json_name: "invitedAt" + field :display_name, 3, type: :string, json_name: "displayName" + field :avatar_url, 4, type: :string, json_name: "avatarUrl" end defmodule InternalApi.Guard.FilterRequest do @@ -282,10 +279,10 @@ defmodule InternalApi.Guard.FilterRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:resources, 1, repeated: true, type: InternalApi.Guard.Resource) - field(:action, 2, type: InternalApi.Guard.Action, enum: true) - field(:user_id, 3, type: :string, json_name: "userId") - field(:org_id, 4, type: :string, json_name: "orgId") + field :resources, 1, repeated: true, type: InternalApi.Guard.Resource + field :action, 2, type: InternalApi.Guard.Action, enum: true + field :user_id, 3, type: :string, json_name: "userId" + field :org_id, 4, type: :string, json_name: "orgId" end defmodule InternalApi.Guard.FilterResponse do @@ -293,7 +290,7 @@ defmodule InternalApi.Guard.FilterResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:resources, 1, repeated: true, type: InternalApi.Guard.Resource) + field :resources, 1, repeated: true, type: InternalApi.Guard.Resource end defmodule InternalApi.Guard.RefreshRequest do @@ -301,7 +298,7 @@ defmodule InternalApi.Guard.RefreshRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:resources, 1, repeated: true, type: InternalApi.Guard.Resource) + field :resources, 1, repeated: true, type: InternalApi.Guard.Resource end defmodule InternalApi.Guard.ListRequest do @@ -309,7 +306,7 @@ defmodule InternalApi.Guard.ListRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:project_ids, 1, repeated: true, type: :string, json_name: "projectIds") + field :project_ids, 1, repeated: true, type: :string, json_name: "projectIds" end defmodule InternalApi.Guard.RefreshResponse do @@ -317,7 +314,7 @@ defmodule InternalApi.Guard.RefreshResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: InternalApi.ResponseStatus) + field :status, 1, type: InternalApi.ResponseStatus end defmodule InternalApi.Guard.ListResponse.User do @@ -325,12 +322,12 @@ defmodule InternalApi.Guard.ListResponse.User do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:id, 1, type: :string) - field(:avatar_url, 2, type: :string, json_name: "avatarUrl") - field(:login, 3, type: :string) - field(:name, 4, type: :string) - field(:projects, 5, repeated: true, type: :string) - field(:email, 6, type: :string) + field :id, 1, type: :string + field :avatar_url, 2, type: :string, json_name: "avatarUrl" + field :login, 3, type: :string + field :name, 4, type: :string + field :projects, 5, repeated: true, type: :string + field :email, 6, type: :string end defmodule InternalApi.Guard.ListResponse do @@ -338,8 +335,8 @@ defmodule InternalApi.Guard.ListResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: InternalApi.ResponseStatus) - field(:users, 2, repeated: true, type: InternalApi.Guard.ListResponse.User) + field :status, 1, type: InternalApi.ResponseStatus + field :users, 2, repeated: true, type: InternalApi.Guard.ListResponse.User end defmodule InternalApi.Guard.ListResourcesRequest do @@ -347,10 +344,10 @@ defmodule InternalApi.Guard.ListResourcesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:org_id, 2, type: :string, json_name: "orgId") - field(:type, 3, type: InternalApi.Guard.Resource.Type, enum: true) - field(:action, 4, type: InternalApi.Guard.Action, enum: true) + field :user_id, 1, type: :string, json_name: "userId" + field :org_id, 2, type: :string, json_name: "orgId" + field :type, 3, type: InternalApi.Guard.Resource.Type, enum: true + field :action, 4, type: InternalApi.Guard.Action, enum: true end defmodule InternalApi.Guard.ListResourcesResponse do @@ -358,8 +355,8 @@ defmodule InternalApi.Guard.ListResourcesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: InternalApi.ResponseStatus) - field(:ids, 2, repeated: true, type: :string) + field :status, 1, type: InternalApi.ResponseStatus + field :ids, 2, repeated: true, type: :string end defmodule InternalApi.Guard.ListRolesRequest do @@ -367,7 +364,7 @@ defmodule InternalApi.Guard.ListRolesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") + field :org_id, 1, type: :string, json_name: "orgId" end defmodule InternalApi.Guard.ListRolesResponse do @@ -375,8 +372,8 @@ defmodule InternalApi.Guard.ListRolesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: InternalApi.ResponseStatus) - field(:roles, 2, repeated: true, type: InternalApi.Guard.Role) + field :status, 1, type: InternalApi.ResponseStatus + field :roles, 2, repeated: true, type: InternalApi.Guard.Role end defmodule InternalApi.Guard.AddRolesRequest do @@ -384,7 +381,7 @@ defmodule InternalApi.Guard.AddRolesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:roles, 1, repeated: true, type: InternalApi.Guard.Role) + field :roles, 1, repeated: true, type: InternalApi.Guard.Role end defmodule InternalApi.Guard.AddRolesResponse do @@ -392,7 +389,7 @@ defmodule InternalApi.Guard.AddRolesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: InternalApi.ResponseStatus) + field :status, 1, type: InternalApi.ResponseStatus end defmodule InternalApi.Guard.DeleteRolesRequest do @@ -400,7 +397,7 @@ defmodule InternalApi.Guard.DeleteRolesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:roles, 1, repeated: true, type: InternalApi.Guard.Role) + field :roles, 1, repeated: true, type: InternalApi.Guard.Role end defmodule InternalApi.Guard.DeleteRolesResponse do @@ -408,7 +405,7 @@ defmodule InternalApi.Guard.DeleteRolesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: InternalApi.ResponseStatus) + field :status, 1, type: InternalApi.ResponseStatus end defmodule InternalApi.Guard.Resource do @@ -416,11 +413,11 @@ defmodule InternalApi.Guard.Resource do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:name, 1, type: :string) - field(:id, 2, type: :string) - field(:type, 3, type: InternalApi.Guard.Resource.Type, enum: true) - field(:project_id, 4, type: :string, json_name: "projectId") - field(:org_id, 5, type: :string, json_name: "orgId") + field :name, 1, type: :string + field :id, 2, type: :string + field :type, 3, type: InternalApi.Guard.Resource.Type, enum: true + field :project_id, 4, type: :string, json_name: "projectId" + field :org_id, 5, type: :string, json_name: "orgId" end defmodule InternalApi.Guard.Role do @@ -428,9 +425,9 @@ defmodule InternalApi.Guard.Role do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:org_id, 2, type: :string, json_name: "orgId") - field(:name, 3, type: InternalApi.Guard.Role.Name, enum: true) + field :user_id, 1, type: :string, json_name: "userId" + field :org_id, 2, type: :string, json_name: "orgId" + field :name, 3, type: InternalApi.Guard.Role.Name, enum: true end defmodule InternalApi.Guard.IsAuthorizedRequest do @@ -438,7 +435,7 @@ defmodule InternalApi.Guard.IsAuthorizedRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:objects, 1, repeated: true, type: InternalApi.Guard.AuthorizationObject) + field :objects, 1, repeated: true, type: InternalApi.Guard.AuthorizationObject end defmodule InternalApi.Guard.IsAuthorizedResponse do @@ -446,7 +443,7 @@ defmodule InternalApi.Guard.IsAuthorizedResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:objects, 1, repeated: true, type: InternalApi.Guard.AuthorizationObject) + field :objects, 1, repeated: true, type: InternalApi.Guard.AuthorizationObject end defmodule InternalApi.Guard.AuthorizationObject do @@ -454,10 +451,10 @@ defmodule InternalApi.Guard.AuthorizationObject do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:subject, 1, type: InternalApi.Guard.Subject) - field(:operation, 2, type: InternalApi.Guard.Operation) - field(:authorized, 3, type: :bool) - field(:message, 4, type: :string) + field :subject, 1, type: InternalApi.Guard.Subject + field :operation, 2, type: InternalApi.Guard.Operation + field :authorized, 3, type: :bool + field :message, 4, type: :string end defmodule InternalApi.Guard.Subject do @@ -465,8 +462,8 @@ defmodule InternalApi.Guard.Subject do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:org_id, 2, type: :string, json_name: "orgId") + field :user_id, 1, type: :string, json_name: "userId" + field :org_id, 2, type: :string, json_name: "orgId" end defmodule InternalApi.Guard.Operation do @@ -474,8 +471,8 @@ defmodule InternalApi.Guard.Operation do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:name, 1, type: InternalApi.Guard.Operation.Name, enum: true) - field(:project_id, 2, type: :string, json_name: "projectId") + field :name, 1, type: InternalApi.Guard.Operation.Name, enum: true + field :project_id, 2, type: :string, json_name: "projectId" end defmodule InternalApi.Guard.AuthorizationEvent do @@ -483,10 +480,10 @@ defmodule InternalApi.Guard.AuthorizationEvent do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:project_id, 2, type: :string, json_name: "projectId") - field(:user_id, 3, type: :string, json_name: "userId") - field(:timestamp, 4, type: Google.Protobuf.Timestamp) + field :org_id, 1, type: :string, json_name: "orgId" + field :project_id, 2, type: :string, json_name: "projectId" + field :user_id, 3, type: :string, json_name: "userId" + field :timestamp, 4, type: Google.Protobuf.Timestamp end defmodule InternalApi.Guard.Guard.Service do @@ -494,73 +491,53 @@ defmodule InternalApi.Guard.Guard.Service do use GRPC.Service, name: "InternalApi.Guard.Guard", protoc_gen_elixir_version: "0.13.0" - rpc(:Refresh, InternalApi.Guard.RefreshRequest, InternalApi.Guard.RefreshResponse) + rpc :Refresh, InternalApi.Guard.RefreshRequest, InternalApi.Guard.RefreshResponse - rpc(:List, InternalApi.Guard.ListRequest, InternalApi.Guard.ListResponse) + rpc :List, InternalApi.Guard.ListRequest, InternalApi.Guard.ListResponse - rpc( - :ListResources, - InternalApi.Guard.ListResourcesRequest, - InternalApi.Guard.ListResourcesResponse - ) + rpc :ListResources, + InternalApi.Guard.ListResourcesRequest, + InternalApi.Guard.ListResourcesResponse - rpc(:Filter, InternalApi.Guard.FilterRequest, InternalApi.Guard.FilterResponse) + rpc :Filter, InternalApi.Guard.FilterRequest, InternalApi.Guard.FilterResponse - rpc(:ListRoles, InternalApi.Guard.ListRolesRequest, InternalApi.Guard.ListRolesResponse) + rpc :ListRoles, InternalApi.Guard.ListRolesRequest, InternalApi.Guard.ListRolesResponse - rpc(:AddRoles, InternalApi.Guard.AddRolesRequest, InternalApi.Guard.AddRolesResponse) + rpc :AddRoles, InternalApi.Guard.AddRolesRequest, InternalApi.Guard.AddRolesResponse - rpc(:DeleteRoles, InternalApi.Guard.DeleteRolesRequest, InternalApi.Guard.DeleteRolesResponse) + rpc :DeleteRoles, InternalApi.Guard.DeleteRolesRequest, InternalApi.Guard.DeleteRolesResponse - rpc( - :IsAuthorized, - InternalApi.Guard.IsAuthorizedRequest, - InternalApi.Guard.IsAuthorizedResponse - ) + rpc :IsAuthorized, InternalApi.Guard.IsAuthorizedRequest, InternalApi.Guard.IsAuthorizedResponse - rpc( - :OrganizationMembers, - InternalApi.Guard.OrganizationMembersRequest, - InternalApi.Guard.OrganizationMembersResponse - ) + rpc :OrganizationMembers, + InternalApi.Guard.OrganizationMembersRequest, + InternalApi.Guard.OrganizationMembersResponse - rpc( - :ProjectMembers, - InternalApi.Guard.ProjectMembersRequest, - InternalApi.Guard.ProjectMembersResponse - ) + rpc :ProjectMembers, + InternalApi.Guard.ProjectMembersRequest, + InternalApi.Guard.ProjectMembersResponse - rpc( - :RepositoryCollaborators, - InternalApi.Guard.RepositoryCollaboratorsRequest, - InternalApi.Guard.RepositoryCollaboratorsResponse - ) + rpc :RepositoryCollaborators, + InternalApi.Guard.RepositoryCollaboratorsRequest, + InternalApi.Guard.RepositoryCollaboratorsResponse - rpc(:Invitations, InternalApi.Guard.InvitationsRequest, InternalApi.Guard.InvitationsResponse) + rpc :Invitations, InternalApi.Guard.InvitationsRequest, InternalApi.Guard.InvitationsResponse - rpc( - :InviteCollaborators, - InternalApi.Guard.InviteCollaboratorsRequest, - InternalApi.Guard.InviteCollaboratorsResponse - ) + rpc :InviteCollaborators, + InternalApi.Guard.InviteCollaboratorsRequest, + InternalApi.Guard.InviteCollaboratorsResponse - rpc( - :CreateMember, - InternalApi.Guard.CreateMemberRequest, - InternalApi.Guard.CreateMemberResponse - ) + rpc :CreateMember, InternalApi.Guard.CreateMemberRequest, InternalApi.Guard.CreateMemberResponse - rpc( - :ResetPassword, - InternalApi.Guard.ResetPasswordRequest, - InternalApi.Guard.ResetPasswordResponse - ) + rpc :ResetPassword, + InternalApi.Guard.ResetPasswordRequest, + InternalApi.Guard.ResetPasswordResponse - rpc(:ChangeEmail, InternalApi.Guard.ChangeEmailRequest, InternalApi.Guard.ChangeEmailResponse) + rpc :ChangeEmail, InternalApi.Guard.ChangeEmailRequest, InternalApi.Guard.ChangeEmailResponse end defmodule InternalApi.Guard.Guard.Stub do @moduledoc false use GRPC.Stub, service: InternalApi.Guard.Guard.Service -end +end \ No newline at end of file diff --git a/rbac/ce/lib/internal_api/health.pb.ex b/rbac/ce/lib/internal_api/health.pb.ex index 5e049d0bf..4adddca0e 100644 --- a/rbac/ce/lib/internal_api/health.pb.ex +++ b/rbac/ce/lib/internal_api/health.pb.ex @@ -3,10 +3,10 @@ defmodule Grpc.Health.V1.HealthCheckResponse.ServingStatus do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:UNKNOWN, 0) - field(:SERVING, 1) - field(:NOT_SERVING, 2) - field(:SERVICE_UNKNOWN, 3) + field :UNKNOWN, 0 + field :SERVING, 1 + field :NOT_SERVING, 2 + field :SERVICE_UNKNOWN, 3 end defmodule Grpc.Health.V1.HealthCheckRequest do @@ -14,7 +14,7 @@ defmodule Grpc.Health.V1.HealthCheckRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:service, 1, type: :string) + field :service, 1, type: :string end defmodule Grpc.Health.V1.HealthCheckResponse do @@ -22,7 +22,7 @@ defmodule Grpc.Health.V1.HealthCheckResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: Grpc.Health.V1.HealthCheckResponse.ServingStatus, enum: true) + field :status, 1, type: Grpc.Health.V1.HealthCheckResponse.ServingStatus, enum: true end defmodule Grpc.Health.V1.Health.Service do @@ -30,13 +30,13 @@ defmodule Grpc.Health.V1.Health.Service do use GRPC.Service, name: "grpc.health.v1.Health", protoc_gen_elixir_version: "0.13.0" - rpc(:Check, Grpc.Health.V1.HealthCheckRequest, Grpc.Health.V1.HealthCheckResponse) + rpc :Check, Grpc.Health.V1.HealthCheckRequest, Grpc.Health.V1.HealthCheckResponse - rpc(:Watch, Grpc.Health.V1.HealthCheckRequest, stream(Grpc.Health.V1.HealthCheckResponse)) + rpc :Watch, Grpc.Health.V1.HealthCheckRequest, stream(Grpc.Health.V1.HealthCheckResponse) end defmodule Grpc.Health.V1.Health.Stub do @moduledoc false use GRPC.Stub, service: Grpc.Health.V1.Health.Service -end +end \ No newline at end of file diff --git a/rbac/ce/lib/internal_api/include/google/protobuf/timestamp.pb.ex b/rbac/ce/lib/internal_api/include/google/protobuf/timestamp.pb.ex index 410019fb7..d7e0566d9 100644 --- a/rbac/ce/lib/internal_api/include/google/protobuf/timestamp.pb.ex +++ b/rbac/ce/lib/internal_api/include/google/protobuf/timestamp.pb.ex @@ -3,6 +3,6 @@ defmodule Google.Protobuf.Timestamp do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:seconds, 1, type: :int64) - field(:nanos, 2, type: :int32) -end + field :seconds, 1, type: :int64 + field :nanos, 2, type: :int32 +end \ No newline at end of file diff --git a/rbac/ce/lib/internal_api/include/google/rpc/code.pb.ex b/rbac/ce/lib/internal_api/include/google/rpc/code.pb.ex index 0a887554a..de1589fe4 100644 --- a/rbac/ce/lib/internal_api/include/google/rpc/code.pb.ex +++ b/rbac/ce/lib/internal_api/include/google/rpc/code.pb.ex @@ -3,21 +3,21 @@ defmodule Google.Rpc.Code do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:OK, 0) - field(:CANCELLED, 1) - field(:UNKNOWN, 2) - field(:INVALID_ARGUMENT, 3) - field(:DEADLINE_EXCEEDED, 4) - field(:NOT_FOUND, 5) - field(:ALREADY_EXISTS, 6) - field(:PERMISSION_DENIED, 7) - field(:UNAUTHENTICATED, 16) - field(:RESOURCE_EXHAUSTED, 8) - field(:FAILED_PRECONDITION, 9) - field(:ABORTED, 10) - field(:OUT_OF_RANGE, 11) - field(:UNIMPLEMENTED, 12) - field(:INTERNAL, 13) - field(:UNAVAILABLE, 14) - field(:DATA_LOSS, 15) -end + field :OK, 0 + field :CANCELLED, 1 + field :UNKNOWN, 2 + field :INVALID_ARGUMENT, 3 + field :DEADLINE_EXCEEDED, 4 + field :NOT_FOUND, 5 + field :ALREADY_EXISTS, 6 + field :PERMISSION_DENIED, 7 + field :UNAUTHENTICATED, 16 + field :RESOURCE_EXHAUSTED, 8 + field :FAILED_PRECONDITION, 9 + field :ABORTED, 10 + field :OUT_OF_RANGE, 11 + field :UNIMPLEMENTED, 12 + field :INTERNAL, 13 + field :UNAVAILABLE, 14 + field :DATA_LOSS, 15 +end \ No newline at end of file diff --git a/rbac/ce/lib/internal_api/include/google/rpc/status.pb.ex b/rbac/ce/lib/internal_api/include/google/rpc/status.pb.ex index e283763c7..f062e2acb 100644 --- a/rbac/ce/lib/internal_api/include/google/rpc/status.pb.ex +++ b/rbac/ce/lib/internal_api/include/google/rpc/status.pb.ex @@ -3,7 +3,7 @@ defmodule Google.Rpc.Status do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:code, 1, type: :int32) - field(:message, 2, type: :string) - field(:details, 3, repeated: true, type: Google.Protobuf.Any) -end + field :code, 1, type: :int32 + field :message, 2, type: :string + field :details, 3, repeated: true, type: Google.Protobuf.Any +end \ No newline at end of file diff --git a/rbac/ce/lib/internal_api/include/internal_api/response_status.pb.ex b/rbac/ce/lib/internal_api/include/internal_api/response_status.pb.ex index c3e16bb0a..650c63409 100644 --- a/rbac/ce/lib/internal_api/include/internal_api/response_status.pb.ex +++ b/rbac/ce/lib/internal_api/include/internal_api/response_status.pb.ex @@ -3,8 +3,8 @@ defmodule InternalApi.ResponseStatus.Code do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:OK, 0) - field(:BAD_PARAM, 1) + field :OK, 0 + field :BAD_PARAM, 1 end defmodule InternalApi.ResponseStatus do @@ -12,6 +12,6 @@ defmodule InternalApi.ResponseStatus do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:code, 1, type: InternalApi.ResponseStatus.Code, enum: true) - field(:message, 2, type: :string) -end + field :code, 1, type: InternalApi.ResponseStatus.Code, enum: true + field :message, 2, type: :string +end \ No newline at end of file diff --git a/rbac/ce/lib/internal_api/organization.pb.ex b/rbac/ce/lib/internal_api/organization.pb.ex index 53dca1902..679155f9c 100644 --- a/rbac/ce/lib/internal_api/organization.pb.ex +++ b/rbac/ce/lib/internal_api/organization.pb.ex @@ -3,8 +3,8 @@ defmodule InternalApi.Organization.ListRequest.Order do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:BY_NAME_ASC, 0) - field(:BY_CREATION_TIME_ASC, 1) + field :BY_NAME_ASC, 0 + field :BY_CREATION_TIME_ASC, 1 end defmodule InternalApi.Organization.Suspension.Reason do @@ -12,9 +12,9 @@ defmodule InternalApi.Organization.Suspension.Reason do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:INSUFFICIENT_FUNDS, 0) - field(:ACCOUNT_AT_RISK, 1) - field(:VIOLATION_OF_TOS, 2) + field :INSUFFICIENT_FUNDS, 0 + field :ACCOUNT_AT_RISK, 1 + field :VIOLATION_OF_TOS, 2 end defmodule InternalApi.Organization.Member.Role do @@ -22,9 +22,9 @@ defmodule InternalApi.Organization.Member.Role do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:MEMBER, 0) - field(:OWNER, 1) - field(:ADMIN, 2) + field :MEMBER, 0 + field :OWNER, 1 + field :ADMIN, 2 end defmodule InternalApi.Organization.OrganizationContact.ContactType do @@ -32,10 +32,10 @@ defmodule InternalApi.Organization.OrganizationContact.ContactType do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:CONTACT_TYPE_UNSPECIFIED, 0) - field(:CONTACT_TYPE_MAIN, 1) - field(:CONTACT_TYPE_FINANCES, 2) - field(:CONTACT_TYPE_SECURITY, 3) + field :CONTACT_TYPE_UNSPECIFIED, 0 + field :CONTACT_TYPE_MAIN, 1 + field :CONTACT_TYPE_FINANCES, 2 + field :CONTACT_TYPE_SECURITY, 3 end defmodule InternalApi.Organization.DescribeRequest do @@ -43,10 +43,10 @@ defmodule InternalApi.Organization.DescribeRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:org_username, 2, type: :string, json_name: "orgUsername") - field(:include_quotas, 3, type: :bool, json_name: "includeQuotas") - field(:soft_deleted, 4, type: :bool, json_name: "softDeleted") + field :org_id, 1, type: :string, json_name: "orgId" + field :org_username, 2, type: :string, json_name: "orgUsername" + field :include_quotas, 3, type: :bool, json_name: "includeQuotas" + field :soft_deleted, 4, type: :bool, json_name: "softDeleted" end defmodule InternalApi.Organization.DescribeResponse do @@ -54,8 +54,8 @@ defmodule InternalApi.Organization.DescribeResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: InternalApi.ResponseStatus) - field(:organization, 2, type: InternalApi.Organization.Organization) + field :status, 1, type: InternalApi.ResponseStatus + field :organization, 2, type: InternalApi.Organization.Organization end defmodule InternalApi.Organization.DescribeManyRequest do @@ -63,8 +63,8 @@ defmodule InternalApi.Organization.DescribeManyRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_ids, 1, repeated: true, type: :string, json_name: "orgIds") - field(:soft_deleted, 2, type: :bool, json_name: "softDeleted") + field :org_ids, 1, repeated: true, type: :string, json_name: "orgIds" + field :soft_deleted, 2, type: :bool, json_name: "softDeleted" end defmodule InternalApi.Organization.DescribeManyResponse do @@ -72,7 +72,7 @@ defmodule InternalApi.Organization.DescribeManyResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:organizations, 1, repeated: true, type: InternalApi.Organization.Organization) + field :organizations, 1, repeated: true, type: InternalApi.Organization.Organization end defmodule InternalApi.Organization.ListRequest do @@ -80,12 +80,12 @@ defmodule InternalApi.Organization.ListRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 2, type: :string, json_name: "userId") - field(:created_at_gt, 3, type: Google.Protobuf.Timestamp, json_name: "createdAtGt") - field(:order, 4, type: InternalApi.Organization.ListRequest.Order, enum: true) - field(:page_size, 5, type: :int32, json_name: "pageSize") - field(:page_token, 6, type: :string, json_name: "pageToken") - field(:soft_deleted, 7, type: :bool, json_name: "softDeleted") + field :user_id, 2, type: :string, json_name: "userId" + field :created_at_gt, 3, type: Google.Protobuf.Timestamp, json_name: "createdAtGt" + field :order, 4, type: InternalApi.Organization.ListRequest.Order, enum: true + field :page_size, 5, type: :int32, json_name: "pageSize" + field :page_token, 6, type: :string, json_name: "pageToken" + field :soft_deleted, 7, type: :bool, json_name: "softDeleted" end defmodule InternalApi.Organization.ListResponse do @@ -93,9 +93,9 @@ defmodule InternalApi.Organization.ListResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: InternalApi.ResponseStatus) - field(:organizations, 2, repeated: true, type: InternalApi.Organization.Organization) - field(:next_page_token, 3, type: :string, json_name: "nextPageToken") + field :status, 1, type: InternalApi.ResponseStatus + field :organizations, 2, repeated: true, type: InternalApi.Organization.Organization + field :next_page_token, 3, type: :string, json_name: "nextPageToken" end defmodule InternalApi.Organization.CreateRequest do @@ -103,9 +103,9 @@ defmodule InternalApi.Organization.CreateRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:creator_id, 1, type: :string, json_name: "creatorId") - field(:organization_name, 2, type: :string, json_name: "organizationName") - field(:organization_username, 3, type: :string, json_name: "organizationUsername") + field :creator_id, 1, type: :string, json_name: "creatorId" + field :organization_name, 2, type: :string, json_name: "organizationName" + field :organization_username, 3, type: :string, json_name: "organizationUsername" end defmodule InternalApi.Organization.CreateResponse do @@ -113,8 +113,8 @@ defmodule InternalApi.Organization.CreateResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: InternalApi.ResponseStatus) - field(:organization, 2, type: InternalApi.Organization.Organization) + field :status, 1, type: InternalApi.ResponseStatus + field :organization, 2, type: InternalApi.Organization.Organization end defmodule InternalApi.Organization.UpdateRequest do @@ -122,7 +122,7 @@ defmodule InternalApi.Organization.UpdateRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:organization, 1, type: InternalApi.Organization.Organization) + field :organization, 1, type: InternalApi.Organization.Organization end defmodule InternalApi.Organization.UpdateResponse do @@ -130,8 +130,8 @@ defmodule InternalApi.Organization.UpdateResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: Google.Rpc.Status) - field(:organization, 2, type: InternalApi.Organization.Organization) + field :status, 1, type: Google.Rpc.Status + field :organization, 2, type: InternalApi.Organization.Organization end defmodule InternalApi.Organization.IsValidResponse do @@ -139,8 +139,8 @@ defmodule InternalApi.Organization.IsValidResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:is_valid, 1, type: :bool, json_name: "isValid") - field(:errors, 2, type: :string) + field :is_valid, 1, type: :bool, json_name: "isValid" + field :errors, 2, type: :string end defmodule InternalApi.Organization.IsMemberRequest do @@ -148,9 +148,9 @@ defmodule InternalApi.Organization.IsMemberRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:org_id, 3, type: :string, json_name: "orgId") - field(:org_username, 4, type: :string, json_name: "orgUsername") + field :user_id, 1, type: :string, json_name: "userId" + field :org_id, 3, type: :string, json_name: "orgId" + field :org_username, 4, type: :string, json_name: "orgUsername" end defmodule InternalApi.Organization.IsMemberResponse do @@ -158,8 +158,8 @@ defmodule InternalApi.Organization.IsMemberResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: InternalApi.ResponseStatus) - field(:is_member, 2, type: :bool, json_name: "isMember") + field :status, 1, type: InternalApi.ResponseStatus + field :is_member, 2, type: :bool, json_name: "isMember" end defmodule InternalApi.Organization.IsOwnerRequest do @@ -167,8 +167,8 @@ defmodule InternalApi.Organization.IsOwnerRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:org_id, 2, type: :string, json_name: "orgId") + field :user_id, 1, type: :string, json_name: "userId" + field :org_id, 2, type: :string, json_name: "orgId" end defmodule InternalApi.Organization.IsOwnerResponse do @@ -176,8 +176,8 @@ defmodule InternalApi.Organization.IsOwnerResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: InternalApi.ResponseStatus) - field(:is_owner, 2, type: :bool, json_name: "isOwner") + field :status, 1, type: InternalApi.ResponseStatus + field :is_owner, 2, type: :bool, json_name: "isOwner" end defmodule InternalApi.Organization.MakeOwnerRequest do @@ -185,8 +185,8 @@ defmodule InternalApi.Organization.MakeOwnerRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:owner_id, 2, type: :string, json_name: "ownerId") + field :org_id, 1, type: :string, json_name: "orgId" + field :owner_id, 2, type: :string, json_name: "ownerId" end defmodule InternalApi.Organization.MembersRequest do @@ -194,10 +194,10 @@ defmodule InternalApi.Organization.MembersRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:org_username, 2, type: :string, json_name: "orgUsername") - field(:only_members, 3, type: :bool, json_name: "onlyMembers") - field(:name_contains, 4, type: :string, json_name: "nameContains") + field :org_id, 1, type: :string, json_name: "orgId" + field :org_username, 2, type: :string, json_name: "orgUsername" + field :only_members, 3, type: :bool, json_name: "onlyMembers" + field :name_contains, 4, type: :string, json_name: "nameContains" end defmodule InternalApi.Organization.MembersResponse do @@ -205,14 +205,13 @@ defmodule InternalApi.Organization.MembersResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: InternalApi.ResponseStatus) - field(:members, 2, repeated: true, type: InternalApi.Organization.Member) + field :status, 1, type: InternalApi.ResponseStatus + field :members, 2, repeated: true, type: InternalApi.Organization.Member - field(:not_logged_in_members, 3, + field :not_logged_in_members, 3, repeated: true, type: InternalApi.Organization.Member, json_name: "notLoggedInMembers" - ) end defmodule InternalApi.Organization.AddMemberRequest do @@ -220,9 +219,9 @@ defmodule InternalApi.Organization.AddMemberRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:creator_id, 2, type: :string, json_name: "creatorId") - field(:username, 3, type: :string) + field :org_id, 1, type: :string, json_name: "orgId" + field :creator_id, 2, type: :string, json_name: "creatorId" + field :username, 3, type: :string end defmodule InternalApi.Organization.AddMemberResponse do @@ -230,8 +229,8 @@ defmodule InternalApi.Organization.AddMemberResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: Google.Rpc.Status) - field(:member, 2, type: InternalApi.Organization.Member) + field :status, 1, type: Google.Rpc.Status + field :member, 2, type: InternalApi.Organization.Member end defmodule InternalApi.Organization.AddMembersRequest.MemberData do @@ -239,9 +238,9 @@ defmodule InternalApi.Organization.AddMembersRequest.MemberData do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:github_username, 1, type: :string, json_name: "githubUsername") - field(:github_uid, 2, type: :string, json_name: "githubUid") - field(:invite_email, 3, type: :string, json_name: "inviteEmail") + field :github_username, 1, type: :string, json_name: "githubUsername" + field :github_uid, 2, type: :string, json_name: "githubUid" + field :invite_email, 3, type: :string, json_name: "inviteEmail" end defmodule InternalApi.Organization.AddMembersRequest do @@ -249,14 +248,13 @@ defmodule InternalApi.Organization.AddMembersRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:creator_id, 2, type: :string, json_name: "creatorId") + field :org_id, 1, type: :string, json_name: "orgId" + field :creator_id, 2, type: :string, json_name: "creatorId" - field(:members_data, 3, + field :members_data, 3, repeated: true, type: InternalApi.Organization.AddMembersRequest.MemberData, json_name: "membersData" - ) end defmodule InternalApi.Organization.AddMembersResponse do @@ -264,7 +262,7 @@ defmodule InternalApi.Organization.AddMembersResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:members, 1, repeated: true, type: InternalApi.Organization.Member) + field :members, 1, repeated: true, type: InternalApi.Organization.Member end defmodule InternalApi.Organization.DeleteMemberRequest do @@ -272,9 +270,9 @@ defmodule InternalApi.Organization.DeleteMemberRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:membership_id, 3, type: :string, json_name: "membershipId") - field(:user_id, 4, type: :string, json_name: "userId") + field :org_id, 1, type: :string, json_name: "orgId" + field :membership_id, 3, type: :string, json_name: "membershipId" + field :user_id, 4, type: :string, json_name: "userId" end defmodule InternalApi.Organization.DeleteMemberResponse do @@ -282,7 +280,7 @@ defmodule InternalApi.Organization.DeleteMemberResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: Google.Rpc.Status) + field :status, 1, type: Google.Rpc.Status end defmodule InternalApi.Organization.SuspendRequest do @@ -290,10 +288,10 @@ defmodule InternalApi.Organization.SuspendRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:origin, 2, type: :string) - field(:description, 3, type: :string) - field(:reason, 4, type: InternalApi.Organization.Suspension.Reason, enum: true) + field :org_id, 1, type: :string, json_name: "orgId" + field :origin, 2, type: :string + field :description, 3, type: :string + field :reason, 4, type: InternalApi.Organization.Suspension.Reason, enum: true end defmodule InternalApi.Organization.SuspendResponse do @@ -301,7 +299,7 @@ defmodule InternalApi.Organization.SuspendResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: Google.Rpc.Status) + field :status, 1, type: Google.Rpc.Status end defmodule InternalApi.Organization.SetOpenSourceRequest do @@ -309,7 +307,7 @@ defmodule InternalApi.Organization.SetOpenSourceRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") + field :org_id, 1, type: :string, json_name: "orgId" end defmodule InternalApi.Organization.SetOpenSourceResponse do @@ -317,7 +315,7 @@ defmodule InternalApi.Organization.SetOpenSourceResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:organization, 1, type: InternalApi.Organization.Organization) + field :organization, 1, type: InternalApi.Organization.Organization end defmodule InternalApi.Organization.UnsuspendRequest do @@ -325,10 +323,10 @@ defmodule InternalApi.Organization.UnsuspendRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:origin, 3, type: :string) - field(:description, 2, type: :string) - field(:reason, 4, type: InternalApi.Organization.Suspension.Reason, enum: true) + field :org_id, 1, type: :string, json_name: "orgId" + field :origin, 3, type: :string + field :description, 2, type: :string + field :reason, 4, type: InternalApi.Organization.Suspension.Reason, enum: true end defmodule InternalApi.Organization.UnsuspendResponse do @@ -336,7 +334,7 @@ defmodule InternalApi.Organization.UnsuspendResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: Google.Rpc.Status) + field :status, 1, type: Google.Rpc.Status end defmodule InternalApi.Organization.VerifyRequest do @@ -344,7 +342,7 @@ defmodule InternalApi.Organization.VerifyRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") + field :org_id, 1, type: :string, json_name: "orgId" end defmodule InternalApi.Organization.ListSuspensionsRequest do @@ -352,7 +350,7 @@ defmodule InternalApi.Organization.ListSuspensionsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") + field :org_id, 1, type: :string, json_name: "orgId" end defmodule InternalApi.Organization.ListSuspensionsResponse do @@ -360,8 +358,8 @@ defmodule InternalApi.Organization.ListSuspensionsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: Google.Rpc.Status) - field(:suspensions, 2, repeated: true, type: InternalApi.Organization.Suspension) + field :status, 1, type: Google.Rpc.Status + field :suspensions, 2, repeated: true, type: InternalApi.Organization.Suspension end defmodule InternalApi.Organization.DestroyRequest do @@ -369,7 +367,7 @@ defmodule InternalApi.Organization.DestroyRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") + field :org_id, 1, type: :string, json_name: "orgId" end defmodule InternalApi.Organization.RestoreRequest do @@ -377,7 +375,7 @@ defmodule InternalApi.Organization.RestoreRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") + field :org_id, 1, type: :string, json_name: "orgId" end defmodule InternalApi.Organization.Organization do @@ -385,21 +383,21 @@ defmodule InternalApi.Organization.Organization do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_username, 1, type: :string, json_name: "orgUsername") - field(:created_at, 2, type: Google.Protobuf.Timestamp, json_name: "createdAt") - field(:avatar_url, 3, type: :string, json_name: "avatarUrl") - field(:org_id, 4, type: :string, json_name: "orgId") - field(:name, 5, type: :string) - field(:owner_id, 6, type: :string, json_name: "ownerId") - field(:suspended, 7, type: :bool) - field(:open_source, 9, type: :bool, json_name: "openSource") - field(:verified, 10, type: :bool) - field(:restricted, 11, type: :bool) - field(:ip_allow_list, 12, repeated: true, type: :string, json_name: "ipAllowList") - field(:allowed_id_providers, 13, repeated: true, type: :string, json_name: "allowedIdProviders") - field(:deny_member_workflows, 14, type: :bool, json_name: "denyMemberWorkflows") - field(:deny_non_member_workflows, 15, type: :bool, json_name: "denyNonMemberWorkflows") - field(:settings, 16, repeated: true, type: InternalApi.Organization.OrganizationSetting) + field :org_username, 1, type: :string, json_name: "orgUsername" + field :created_at, 2, type: Google.Protobuf.Timestamp, json_name: "createdAt" + field :avatar_url, 3, type: :string, json_name: "avatarUrl" + field :org_id, 4, type: :string, json_name: "orgId" + field :name, 5, type: :string + field :owner_id, 6, type: :string, json_name: "ownerId" + field :suspended, 7, type: :bool + field :open_source, 9, type: :bool, json_name: "openSource" + field :verified, 10, type: :bool + field :restricted, 11, type: :bool + field :ip_allow_list, 12, repeated: true, type: :string, json_name: "ipAllowList" + field :allowed_id_providers, 13, repeated: true, type: :string, json_name: "allowedIdProviders" + field :deny_member_workflows, 14, type: :bool, json_name: "denyMemberWorkflows" + field :deny_non_member_workflows, 15, type: :bool, json_name: "denyNonMemberWorkflows" + field :settings, 16, repeated: true, type: InternalApi.Organization.OrganizationSetting end defmodule InternalApi.Organization.Suspension do @@ -407,10 +405,10 @@ defmodule InternalApi.Organization.Suspension do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:origin, 1, type: :string) - field(:description, 2, type: :string) - field(:reason, 3, type: InternalApi.Organization.Suspension.Reason, enum: true) - field(:created_at, 4, type: Google.Protobuf.Timestamp, json_name: "createdAt") + field :origin, 1, type: :string + field :description, 2, type: :string + field :reason, 3, type: InternalApi.Organization.Suspension.Reason, enum: true + field :created_at, 4, type: Google.Protobuf.Timestamp, json_name: "createdAt" end defmodule InternalApi.Organization.Member do @@ -418,14 +416,14 @@ defmodule InternalApi.Organization.Member do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:screen_name, 1, type: :string, json_name: "screenName") - field(:avatar_url, 2, type: :string, json_name: "avatarUrl") - field(:user_id, 3, type: :string, json_name: "userId") - field(:role, 4, type: InternalApi.Organization.Member.Role, enum: true) - field(:invited_at, 5, type: Google.Protobuf.Timestamp, json_name: "invitedAt") - field(:membership_id, 6, type: :string, json_name: "membershipId") - field(:github_username, 7, type: :string, json_name: "githubUsername") - field(:github_uid, 8, type: :string, json_name: "githubUid") + field :screen_name, 1, type: :string, json_name: "screenName" + field :avatar_url, 2, type: :string, json_name: "avatarUrl" + field :user_id, 3, type: :string, json_name: "userId" + field :role, 4, type: InternalApi.Organization.Member.Role, enum: true + field :invited_at, 5, type: Google.Protobuf.Timestamp, json_name: "invitedAt" + field :membership_id, 6, type: :string, json_name: "membershipId" + field :github_username, 7, type: :string, json_name: "githubUsername" + field :github_uid, 8, type: :string, json_name: "githubUid" end defmodule InternalApi.Organization.OrganizationSetting do @@ -433,8 +431,8 @@ defmodule InternalApi.Organization.OrganizationSetting do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:key, 1, type: :string) - field(:value, 2, type: :string) + field :key, 1, type: :string + field :value, 2, type: :string end defmodule InternalApi.Organization.RepositoryIntegratorsRequest do @@ -442,7 +440,7 @@ defmodule InternalApi.Organization.RepositoryIntegratorsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") + field :org_id, 1, type: :string, json_name: "orgId" end defmodule InternalApi.Organization.RepositoryIntegratorsResponse do @@ -450,19 +448,17 @@ defmodule InternalApi.Organization.RepositoryIntegratorsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:primary, 1, type: InternalApi.RepositoryIntegrator.IntegrationType, enum: true) + field :primary, 1, type: InternalApi.RepositoryIntegrator.IntegrationType, enum: true - field(:enabled, 2, + field :enabled, 2, repeated: true, type: InternalApi.RepositoryIntegrator.IntegrationType, enum: true - ) - field(:available, 3, + field :available, 3, repeated: true, type: InternalApi.RepositoryIntegrator.IntegrationType, enum: true - ) end defmodule InternalApi.Organization.FetchOrganizationContactsRequest do @@ -470,7 +466,7 @@ defmodule InternalApi.Organization.FetchOrganizationContactsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") + field :org_id, 1, type: :string, json_name: "orgId" end defmodule InternalApi.Organization.FetchOrganizationContactsResponse do @@ -478,11 +474,10 @@ defmodule InternalApi.Organization.FetchOrganizationContactsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_contacts, 1, + field :org_contacts, 1, repeated: true, type: InternalApi.Organization.OrganizationContact, json_name: "orgContacts" - ) end defmodule InternalApi.Organization.ModifyOrganizationContactRequest do @@ -490,10 +485,9 @@ defmodule InternalApi.Organization.ModifyOrganizationContactRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_contact, 1, + field :org_contact, 1, type: InternalApi.Organization.OrganizationContact, json_name: "orgContact" - ) end defmodule InternalApi.Organization.ModifyOrganizationContactResponse do @@ -507,11 +501,11 @@ defmodule InternalApi.Organization.OrganizationContact do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:type, 2, type: InternalApi.Organization.OrganizationContact.ContactType, enum: true) - field(:name, 3, type: :string) - field(:email, 4, type: :string) - field(:phone, 5, type: :string) + field :org_id, 1, type: :string, json_name: "orgId" + field :type, 2, type: InternalApi.Organization.OrganizationContact.ContactType, enum: true + field :name, 3, type: :string + field :email, 4, type: :string + field :phone, 5, type: :string end defmodule InternalApi.Organization.FetchOrganizationSettingsRequest do @@ -519,7 +513,7 @@ defmodule InternalApi.Organization.FetchOrganizationSettingsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") + field :org_id, 1, type: :string, json_name: "orgId" end defmodule InternalApi.Organization.FetchOrganizationSettingsResponse do @@ -527,7 +521,7 @@ defmodule InternalApi.Organization.FetchOrganizationSettingsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:settings, 1, repeated: true, type: InternalApi.Organization.OrganizationSetting) + field :settings, 1, repeated: true, type: InternalApi.Organization.OrganizationSetting end defmodule InternalApi.Organization.ModifyOrganizationSettingsRequest do @@ -535,8 +529,8 @@ defmodule InternalApi.Organization.ModifyOrganizationSettingsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:settings, 2, repeated: true, type: InternalApi.Organization.OrganizationSetting) + field :org_id, 1, type: :string, json_name: "orgId" + field :settings, 2, repeated: true, type: InternalApi.Organization.OrganizationSetting end defmodule InternalApi.Organization.ModifyOrganizationSettingsResponse do @@ -544,7 +538,7 @@ defmodule InternalApi.Organization.ModifyOrganizationSettingsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:settings, 1, repeated: true, type: InternalApi.Organization.OrganizationSetting) + field :settings, 1, repeated: true, type: InternalApi.Organization.OrganizationSetting end defmodule InternalApi.Organization.OrganizationCreated do @@ -552,8 +546,8 @@ defmodule InternalApi.Organization.OrganizationCreated do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:timestamp, 2, type: Google.Protobuf.Timestamp) + field :org_id, 1, type: :string, json_name: "orgId" + field :timestamp, 2, type: Google.Protobuf.Timestamp end defmodule InternalApi.Organization.OrganizationDeleted do @@ -561,8 +555,8 @@ defmodule InternalApi.Organization.OrganizationDeleted do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:timestamp, 2, type: Google.Protobuf.Timestamp) + field :org_id, 1, type: :string, json_name: "orgId" + field :timestamp, 2, type: Google.Protobuf.Timestamp end defmodule InternalApi.Organization.OrganizationUpdated do @@ -570,8 +564,8 @@ defmodule InternalApi.Organization.OrganizationUpdated do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:timestamp, 2, type: Google.Protobuf.Timestamp) + field :org_id, 1, type: :string, json_name: "orgId" + field :timestamp, 2, type: Google.Protobuf.Timestamp end defmodule InternalApi.Organization.OrganizationBlocked do @@ -579,9 +573,9 @@ defmodule InternalApi.Organization.OrganizationBlocked do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:timestamp, 2, type: Google.Protobuf.Timestamp) - field(:reason, 3, type: InternalApi.Organization.Suspension.Reason, enum: true) + field :org_id, 1, type: :string, json_name: "orgId" + field :timestamp, 2, type: Google.Protobuf.Timestamp + field :reason, 3, type: InternalApi.Organization.Suspension.Reason, enum: true end defmodule InternalApi.Organization.OrganizationSuspensionCreated do @@ -589,9 +583,9 @@ defmodule InternalApi.Organization.OrganizationSuspensionCreated do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:timestamp, 2, type: Google.Protobuf.Timestamp) - field(:reason, 3, type: InternalApi.Organization.Suspension.Reason, enum: true) + field :org_id, 1, type: :string, json_name: "orgId" + field :timestamp, 2, type: Google.Protobuf.Timestamp + field :reason, 3, type: InternalApi.Organization.Suspension.Reason, enum: true end defmodule InternalApi.Organization.OrganizationSuspensionRemoved do @@ -599,9 +593,9 @@ defmodule InternalApi.Organization.OrganizationSuspensionRemoved do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:timestamp, 2, type: Google.Protobuf.Timestamp) - field(:reason, 3, type: InternalApi.Organization.Suspension.Reason, enum: true) + field :org_id, 1, type: :string, json_name: "orgId" + field :timestamp, 2, type: Google.Protobuf.Timestamp + field :reason, 3, type: InternalApi.Organization.Suspension.Reason, enum: true end defmodule InternalApi.Organization.OrganizationUnblocked do @@ -609,8 +603,8 @@ defmodule InternalApi.Organization.OrganizationUnblocked do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:timestamp, 2, type: Google.Protobuf.Timestamp) + field :org_id, 1, type: :string, json_name: "orgId" + field :timestamp, 2, type: Google.Protobuf.Timestamp end defmodule InternalApi.Organization.OrganizationDailyUpdate do @@ -618,17 +612,17 @@ defmodule InternalApi.Organization.OrganizationDailyUpdate do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:org_username, 2, type: :string, json_name: "orgUsername") - field(:org_name, 3, type: :string, json_name: "orgName") - field(:created_at, 4, type: Google.Protobuf.Timestamp, json_name: "createdAt") - field(:projects_count, 5, type: :int32, json_name: "projectsCount") - field(:member_count, 6, type: :int32, json_name: "memberCount") - field(:invited_count, 7, type: :int32, json_name: "invitedCount") - field(:owner_id, 8, type: :string, json_name: "ownerId") - field(:owner_email, 9, type: :string, json_name: "ownerEmail") - field(:owner_owned_orgs_count, 10, type: :int32, json_name: "ownerOwnedOrgsCount") - field(:timestamp, 11, type: Google.Protobuf.Timestamp) + field :org_id, 1, type: :string, json_name: "orgId" + field :org_username, 2, type: :string, json_name: "orgUsername" + field :org_name, 3, type: :string, json_name: "orgName" + field :created_at, 4, type: Google.Protobuf.Timestamp, json_name: "createdAt" + field :projects_count, 5, type: :int32, json_name: "projectsCount" + field :member_count, 6, type: :int32, json_name: "memberCount" + field :invited_count, 7, type: :int32, json_name: "invitedCount" + field :owner_id, 8, type: :string, json_name: "ownerId" + field :owner_email, 9, type: :string, json_name: "ownerEmail" + field :owner_owned_orgs_count, 10, type: :int32, json_name: "ownerOwnedOrgsCount" + field :timestamp, 11, type: Google.Protobuf.Timestamp end defmodule InternalApi.Organization.OrganizationRestored do @@ -636,8 +630,8 @@ defmodule InternalApi.Organization.OrganizationRestored do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:timestamp, 2, type: Google.Protobuf.Timestamp) + field :org_id, 1, type: :string, json_name: "orgId" + field :timestamp, 2, type: Google.Protobuf.Timestamp end defmodule InternalApi.Organization.OrganizationService.Service do @@ -647,115 +641,87 @@ defmodule InternalApi.Organization.OrganizationService.Service do name: "InternalApi.Organization.OrganizationService", protoc_gen_elixir_version: "0.13.0" - rpc( - :Describe, - InternalApi.Organization.DescribeRequest, - InternalApi.Organization.DescribeResponse - ) + rpc :Describe, + InternalApi.Organization.DescribeRequest, + InternalApi.Organization.DescribeResponse - rpc( - :DescribeMany, - InternalApi.Organization.DescribeManyRequest, - InternalApi.Organization.DescribeManyResponse - ) + rpc :DescribeMany, + InternalApi.Organization.DescribeManyRequest, + InternalApi.Organization.DescribeManyResponse - rpc(:List, InternalApi.Organization.ListRequest, InternalApi.Organization.ListResponse) + rpc :List, InternalApi.Organization.ListRequest, InternalApi.Organization.ListResponse - rpc(:Create, InternalApi.Organization.CreateRequest, InternalApi.Organization.CreateResponse) + rpc :Create, InternalApi.Organization.CreateRequest, InternalApi.Organization.CreateResponse - rpc(:Update, InternalApi.Organization.UpdateRequest, InternalApi.Organization.UpdateResponse) + rpc :Update, InternalApi.Organization.UpdateRequest, InternalApi.Organization.UpdateResponse - rpc(:IsValid, InternalApi.Organization.Organization, InternalApi.Organization.IsValidResponse) + rpc :IsValid, InternalApi.Organization.Organization, InternalApi.Organization.IsValidResponse - rpc( - :IsMember, - InternalApi.Organization.IsMemberRequest, - InternalApi.Organization.IsMemberResponse - ) + rpc :IsMember, + InternalApi.Organization.IsMemberRequest, + InternalApi.Organization.IsMemberResponse - rpc(:IsOwner, InternalApi.Organization.IsOwnerRequest, InternalApi.Organization.IsOwnerResponse) + rpc :IsOwner, InternalApi.Organization.IsOwnerRequest, InternalApi.Organization.IsOwnerResponse - rpc(:MakeOwner, InternalApi.Organization.MakeOwnerRequest, Google.Protobuf.Empty) + rpc :MakeOwner, InternalApi.Organization.MakeOwnerRequest, Google.Protobuf.Empty - rpc(:Members, InternalApi.Organization.MembersRequest, InternalApi.Organization.MembersResponse) + rpc :Members, InternalApi.Organization.MembersRequest, InternalApi.Organization.MembersResponse - rpc( - :AddMember, - InternalApi.Organization.AddMemberRequest, - InternalApi.Organization.AddMemberResponse - ) + rpc :AddMember, + InternalApi.Organization.AddMemberRequest, + InternalApi.Organization.AddMemberResponse - rpc( - :AddMembers, - InternalApi.Organization.AddMembersRequest, - InternalApi.Organization.AddMembersResponse - ) + rpc :AddMembers, + InternalApi.Organization.AddMembersRequest, + InternalApi.Organization.AddMembersResponse - rpc( - :DeleteMember, - InternalApi.Organization.DeleteMemberRequest, - InternalApi.Organization.DeleteMemberResponse - ) + rpc :DeleteMember, + InternalApi.Organization.DeleteMemberRequest, + InternalApi.Organization.DeleteMemberResponse - rpc(:Suspend, InternalApi.Organization.SuspendRequest, InternalApi.Organization.SuspendResponse) + rpc :Suspend, InternalApi.Organization.SuspendRequest, InternalApi.Organization.SuspendResponse - rpc( - :Unsuspend, - InternalApi.Organization.UnsuspendRequest, - InternalApi.Organization.UnsuspendResponse - ) + rpc :Unsuspend, + InternalApi.Organization.UnsuspendRequest, + InternalApi.Organization.UnsuspendResponse - rpc(:Verify, InternalApi.Organization.VerifyRequest, InternalApi.Organization.Organization) + rpc :Verify, InternalApi.Organization.VerifyRequest, InternalApi.Organization.Organization - rpc( - :SetOpenSource, - InternalApi.Organization.SetOpenSourceRequest, - InternalApi.Organization.SetOpenSourceResponse - ) + rpc :SetOpenSource, + InternalApi.Organization.SetOpenSourceRequest, + InternalApi.Organization.SetOpenSourceResponse - rpc( - :ListSuspensions, - InternalApi.Organization.ListSuspensionsRequest, - InternalApi.Organization.ListSuspensionsResponse - ) + rpc :ListSuspensions, + InternalApi.Organization.ListSuspensionsRequest, + InternalApi.Organization.ListSuspensionsResponse - rpc(:Destroy, InternalApi.Organization.DestroyRequest, Google.Protobuf.Empty) + rpc :Destroy, InternalApi.Organization.DestroyRequest, Google.Protobuf.Empty - rpc(:Restore, InternalApi.Organization.RestoreRequest, Google.Protobuf.Empty) + rpc :Restore, InternalApi.Organization.RestoreRequest, Google.Protobuf.Empty - rpc( - :RepositoryIntegrators, - InternalApi.Organization.RepositoryIntegratorsRequest, - InternalApi.Organization.RepositoryIntegratorsResponse - ) + rpc :RepositoryIntegrators, + InternalApi.Organization.RepositoryIntegratorsRequest, + InternalApi.Organization.RepositoryIntegratorsResponse - rpc( - :FetchOrganizationContacts, - InternalApi.Organization.FetchOrganizationContactsRequest, - InternalApi.Organization.FetchOrganizationContactsResponse - ) + rpc :FetchOrganizationContacts, + InternalApi.Organization.FetchOrganizationContactsRequest, + InternalApi.Organization.FetchOrganizationContactsResponse - rpc( - :ModifyOrganizationContact, - InternalApi.Organization.ModifyOrganizationContactRequest, - InternalApi.Organization.ModifyOrganizationContactResponse - ) + rpc :ModifyOrganizationContact, + InternalApi.Organization.ModifyOrganizationContactRequest, + InternalApi.Organization.ModifyOrganizationContactResponse - rpc( - :FetchOrganizationSettings, - InternalApi.Organization.FetchOrganizationSettingsRequest, - InternalApi.Organization.FetchOrganizationSettingsResponse - ) + rpc :FetchOrganizationSettings, + InternalApi.Organization.FetchOrganizationSettingsRequest, + InternalApi.Organization.FetchOrganizationSettingsResponse - rpc( - :ModifyOrganizationSettings, - InternalApi.Organization.ModifyOrganizationSettingsRequest, - InternalApi.Organization.ModifyOrganizationSettingsResponse - ) + rpc :ModifyOrganizationSettings, + InternalApi.Organization.ModifyOrganizationSettingsRequest, + InternalApi.Organization.ModifyOrganizationSettingsResponse end defmodule InternalApi.Organization.OrganizationService.Stub do @moduledoc false use GRPC.Stub, service: InternalApi.Organization.OrganizationService.Service -end +end \ No newline at end of file diff --git a/rbac/ce/lib/internal_api/projecthub.pb.ex b/rbac/ce/lib/internal_api/projecthub.pb.ex index 639cd791e..982bdec07 100644 --- a/rbac/ce/lib/internal_api/projecthub.pb.ex +++ b/rbac/ce/lib/internal_api/projecthub.pb.ex @@ -3,9 +3,9 @@ defmodule InternalApi.Projecthub.ResponseMeta.Code do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:OK, 0) - field(:NOT_FOUND, 2) - field(:FAILED_PRECONDITION, 3) + field :OK, 0 + field :NOT_FOUND, 2 + field :FAILED_PRECONDITION, 3 end defmodule InternalApi.Projecthub.Project.Spec.Visibility do @@ -13,8 +13,8 @@ defmodule InternalApi.Projecthub.Project.Spec.Visibility do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:PRIVATE, 0) - field(:PUBLIC, 1) + field :PRIVATE, 0 + field :PUBLIC, 1 end defmodule InternalApi.Projecthub.Project.Spec.PermissionType do @@ -22,12 +22,12 @@ defmodule InternalApi.Projecthub.Project.Spec.PermissionType do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:EMPTY, 0) - field(:DEFAULT_BRANCH, 1) - field(:NON_DEFAULT_BRANCH, 2) - field(:PULL_REQUEST, 3) - field(:FORKED_PULL_REQUEST, 4) - field(:TAG, 5) + field :EMPTY, 0 + field :DEFAULT_BRANCH, 1 + field :NON_DEFAULT_BRANCH, 2 + field :PULL_REQUEST, 3 + field :FORKED_PULL_REQUEST, 4 + field :TAG, 5 end defmodule InternalApi.Projecthub.Project.Spec.Repository.RunType do @@ -35,11 +35,11 @@ defmodule InternalApi.Projecthub.Project.Spec.Repository.RunType do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:BRANCHES, 0) - field(:TAGS, 1) - field(:PULL_REQUESTS, 2) - field(:FORKED_PULL_REQUESTS, 3) - field(:DRAFT_PULL_REQUESTS, 4) + field :BRANCHES, 0 + field :TAGS, 1 + field :PULL_REQUESTS, 2 + field :FORKED_PULL_REQUESTS, 3 + field :DRAFT_PULL_REQUESTS, 4 end defmodule InternalApi.Projecthub.Project.Spec.Repository.Status.PipelineFile.Level do @@ -47,8 +47,8 @@ defmodule InternalApi.Projecthub.Project.Spec.Repository.Status.PipelineFile.Lev use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:BLOCK, 0) - field(:PIPELINE, 1) + field :BLOCK, 0 + field :PIPELINE, 1 end defmodule InternalApi.Projecthub.Project.Spec.Scheduler.Status do @@ -56,9 +56,9 @@ defmodule InternalApi.Projecthub.Project.Spec.Scheduler.Status do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:STATUS_UNSPECIFIED, 0) - field(:STATUS_INACTIVE, 1) - field(:STATUS_ACTIVE, 2) + field :STATUS_UNSPECIFIED, 0 + field :STATUS_INACTIVE, 1 + field :STATUS_ACTIVE, 2 end defmodule InternalApi.Projecthub.Project.Spec.Task.Status do @@ -66,9 +66,9 @@ defmodule InternalApi.Projecthub.Project.Spec.Task.Status do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:STATUS_UNSPECIFIED, 0) - field(:STATUS_INACTIVE, 1) - field(:STATUS_ACTIVE, 2) + field :STATUS_UNSPECIFIED, 0 + field :STATUS_INACTIVE, 1 + field :STATUS_ACTIVE, 2 end defmodule InternalApi.Projecthub.Project.Status.State do @@ -76,10 +76,10 @@ defmodule InternalApi.Projecthub.Project.Status.State do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:INITIALIZING, 0) - field(:READY, 1) - field(:ERROR, 2) - field(:ONBOARDING, 3) + field :INITIALIZING, 0 + field :READY, 1 + field :ERROR, 2 + field :ONBOARDING, 3 end defmodule InternalApi.Projecthub.ListKeysetRequest.Direction do @@ -87,8 +87,8 @@ defmodule InternalApi.Projecthub.ListKeysetRequest.Direction do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:NEXT, 0) - field(:PREVIOUS, 1) + field :NEXT, 0 + field :PREVIOUS, 1 end defmodule InternalApi.Projecthub.RequestMeta do @@ -96,11 +96,11 @@ defmodule InternalApi.Projecthub.RequestMeta do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:api_version, 1, type: :string, json_name: "apiVersion") - field(:kind, 2, type: :string) - field(:req_id, 3, type: :string, json_name: "reqId") - field(:org_id, 4, type: :string, json_name: "orgId") - field(:user_id, 5, type: :string, json_name: "userId") + field :api_version, 1, type: :string, json_name: "apiVersion" + field :kind, 2, type: :string + field :req_id, 3, type: :string, json_name: "reqId" + field :org_id, 4, type: :string, json_name: "orgId" + field :user_id, 5, type: :string, json_name: "userId" end defmodule InternalApi.Projecthub.ResponseMeta.Status do @@ -108,8 +108,8 @@ defmodule InternalApi.Projecthub.ResponseMeta.Status do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:code, 1, type: InternalApi.Projecthub.ResponseMeta.Code, enum: true) - field(:message, 2, type: :string) + field :code, 1, type: InternalApi.Projecthub.ResponseMeta.Code, enum: true + field :message, 2, type: :string end defmodule InternalApi.Projecthub.ResponseMeta do @@ -117,12 +117,12 @@ defmodule InternalApi.Projecthub.ResponseMeta do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:api_version, 1, type: :string, json_name: "apiVersion") - field(:kind, 2, type: :string) - field(:req_id, 3, type: :string, json_name: "reqId") - field(:org_id, 4, type: :string, json_name: "orgId") - field(:user_id, 5, type: :string, json_name: "userId") - field(:status, 6, type: InternalApi.Projecthub.ResponseMeta.Status) + field :api_version, 1, type: :string, json_name: "apiVersion" + field :kind, 2, type: :string + field :req_id, 3, type: :string, json_name: "reqId" + field :org_id, 4, type: :string, json_name: "orgId" + field :user_id, 5, type: :string, json_name: "userId" + field :status, 6, type: InternalApi.Projecthub.ResponseMeta.Status end defmodule InternalApi.Projecthub.PaginationRequest do @@ -130,8 +130,8 @@ defmodule InternalApi.Projecthub.PaginationRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:page, 1, type: :int32) - field(:page_size, 2, type: :int32, json_name: "pageSize") + field :page, 1, type: :int32 + field :page_size, 2, type: :int32, json_name: "pageSize" end defmodule InternalApi.Projecthub.PaginationResponse do @@ -139,10 +139,10 @@ defmodule InternalApi.Projecthub.PaginationResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:page_number, 1, type: :int32, json_name: "pageNumber") - field(:page_size, 2, type: :int32, json_name: "pageSize") - field(:total_entries, 3, type: :int32, json_name: "totalEntries") - field(:total_pages, 4, type: :int32, json_name: "totalPages") + field :page_number, 1, type: :int32, json_name: "pageNumber" + field :page_size, 2, type: :int32, json_name: "pageSize" + field :total_entries, 3, type: :int32, json_name: "totalEntries" + field :total_pages, 4, type: :int32, json_name: "totalPages" end defmodule InternalApi.Projecthub.Project.Metadata do @@ -150,12 +150,12 @@ defmodule InternalApi.Projecthub.Project.Metadata do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:name, 1, type: :string) - field(:id, 2, type: :string) - field(:owner_id, 3, type: :string, json_name: "ownerId") - field(:org_id, 4, type: :string, json_name: "orgId") - field(:description, 5, type: :string) - field(:created_at, 6, type: Google.Protobuf.Timestamp, json_name: "createdAt") + field :name, 1, type: :string + field :id, 2, type: :string + field :owner_id, 3, type: :string, json_name: "ownerId" + field :org_id, 4, type: :string, json_name: "orgId" + field :description, 5, type: :string + field :created_at, 6, type: Google.Protobuf.Timestamp, json_name: "createdAt" end defmodule InternalApi.Projecthub.Project.Spec.Repository.ForkedPullRequests do @@ -163,8 +163,8 @@ defmodule InternalApi.Projecthub.Project.Spec.Repository.ForkedPullRequests do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:allowed_secrets, 1, repeated: true, type: :string, json_name: "allowedSecrets") - field(:allowed_contributors, 2, repeated: true, type: :string, json_name: "allowedContributors") + field :allowed_secrets, 1, repeated: true, type: :string, json_name: "allowedSecrets" + field :allowed_contributors, 2, repeated: true, type: :string, json_name: "allowedContributors" end defmodule InternalApi.Projecthub.Project.Spec.Repository.Status.PipelineFile do @@ -172,12 +172,11 @@ defmodule InternalApi.Projecthub.Project.Spec.Repository.Status.PipelineFile do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:path, 1, type: :string) + field :path, 1, type: :string - field(:level, 2, + field :level, 2, type: InternalApi.Projecthub.Project.Spec.Repository.Status.PipelineFile.Level, enum: true - ) end defmodule InternalApi.Projecthub.Project.Spec.Repository.Status do @@ -185,11 +184,10 @@ defmodule InternalApi.Projecthub.Project.Spec.Repository.Status do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:pipeline_files, 1, + field :pipeline_files, 1, repeated: true, type: InternalApi.Projecthub.Project.Spec.Repository.Status.PipelineFile, json_name: "pipelineFiles" - ) end defmodule InternalApi.Projecthub.Project.Spec.Repository.Whitelist do @@ -197,8 +195,8 @@ defmodule InternalApi.Projecthub.Project.Spec.Repository.Whitelist do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:branches, 1, repeated: true, type: :string) - field(:tags, 2, repeated: true, type: :string) + field :branches, 1, repeated: true, type: :string + field :tags, 2, repeated: true, type: :string end defmodule InternalApi.Projecthub.Project.Spec.Repository do @@ -206,39 +204,36 @@ defmodule InternalApi.Projecthub.Project.Spec.Repository do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - oneof(:run_present, 0) + oneof :run_present, 0 - field(:url, 1, type: :string) - field(:name, 2, type: :string) - field(:owner, 3, type: :string) + field :url, 1, type: :string + field :name, 2, type: :string + field :owner, 3, type: :string - field(:run_on, 4, + field :run_on, 4, repeated: true, type: InternalApi.Projecthub.Project.Spec.Repository.RunType, json_name: "runOn", enum: true - ) - field(:forked_pull_requests, 5, + field :forked_pull_requests, 5, type: InternalApi.Projecthub.Project.Spec.Repository.ForkedPullRequests, json_name: "forkedPullRequests" - ) - field(:run, 6, type: :bool, oneof: 0) - field(:pipeline_file, 7, type: :string, json_name: "pipelineFile") - field(:status, 8, type: InternalApi.Projecthub.Project.Spec.Repository.Status) - field(:whitelist, 9, type: InternalApi.Projecthub.Project.Spec.Repository.Whitelist) - field(:public, 10, type: :bool) + field :run, 6, type: :bool, oneof: 0 + field :pipeline_file, 7, type: :string, json_name: "pipelineFile" + field :status, 8, type: InternalApi.Projecthub.Project.Spec.Repository.Status + field :whitelist, 9, type: InternalApi.Projecthub.Project.Spec.Repository.Whitelist + field :public, 10, type: :bool - field(:integration_type, 11, + field :integration_type, 11, type: InternalApi.RepositoryIntegrator.IntegrationType, json_name: "integrationType", enum: true - ) - field(:connected, 12, type: :bool) - field(:id, 13, type: :string) - field(:default_branch, 14, type: :string, json_name: "defaultBranch") + field :connected, 12, type: :bool + field :id, 13, type: :string + field :default_branch, 14, type: :string, json_name: "defaultBranch" end defmodule InternalApi.Projecthub.Project.Spec.Scheduler do @@ -246,12 +241,12 @@ defmodule InternalApi.Projecthub.Project.Spec.Scheduler do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:id, 1, type: :string) - field(:name, 2, type: :string) - field(:branch, 3, type: :string) - field(:at, 4, type: :string) - field(:pipeline_file, 5, type: :string, json_name: "pipelineFile") - field(:status, 6, type: InternalApi.Projecthub.Project.Spec.Scheduler.Status, enum: true) + field :id, 1, type: :string + field :name, 2, type: :string + field :branch, 3, type: :string + field :at, 4, type: :string + field :pipeline_file, 5, type: :string, json_name: "pipelineFile" + field :status, 6, type: InternalApi.Projecthub.Project.Spec.Scheduler.Status, enum: true end defmodule InternalApi.Projecthub.Project.Spec.Task.Parameter do @@ -259,11 +254,11 @@ defmodule InternalApi.Projecthub.Project.Spec.Task.Parameter do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:name, 1, type: :string) - field(:required, 2, type: :bool) - field(:description, 3, type: :string) - field(:default_value, 4, type: :string, json_name: "defaultValue") - field(:options, 5, repeated: true, type: :string) + field :name, 1, type: :string + field :required, 2, type: :bool + field :description, 3, type: :string + field :default_value, 4, type: :string, json_name: "defaultValue" + field :options, 5, repeated: true, type: :string end defmodule InternalApi.Projecthub.Project.Spec.Task do @@ -271,15 +266,15 @@ defmodule InternalApi.Projecthub.Project.Spec.Task do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:id, 1, type: :string) - field(:name, 2, type: :string) - field(:branch, 3, type: :string) - field(:at, 4, type: :string) - field(:pipeline_file, 5, type: :string, json_name: "pipelineFile") - field(:status, 6, type: InternalApi.Projecthub.Project.Spec.Task.Status, enum: true) - field(:recurring, 7, type: :bool) - field(:parameters, 8, repeated: true, type: InternalApi.Projecthub.Project.Spec.Task.Parameter) - field(:description, 9, type: :string) + field :id, 1, type: :string + field :name, 2, type: :string + field :branch, 3, type: :string + field :at, 4, type: :string + field :pipeline_file, 5, type: :string, json_name: "pipelineFile" + field :status, 6, type: InternalApi.Projecthub.Project.Spec.Task.Status, enum: true + field :recurring, 7, type: :bool + field :parameters, 8, repeated: true, type: InternalApi.Projecthub.Project.Spec.Task.Parameter + field :description, 9, type: :string end defmodule InternalApi.Projecthub.Project.Spec do @@ -287,31 +282,29 @@ defmodule InternalApi.Projecthub.Project.Spec do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:repository, 1, type: InternalApi.Projecthub.Project.Spec.Repository) - field(:schedulers, 2, repeated: true, type: InternalApi.Projecthub.Project.Spec.Scheduler) - field(:private, 3, type: :bool) - field(:public, 4, type: :bool) - field(:visibility, 5, type: InternalApi.Projecthub.Project.Spec.Visibility, enum: true) + field :repository, 1, type: InternalApi.Projecthub.Project.Spec.Repository + field :schedulers, 2, repeated: true, type: InternalApi.Projecthub.Project.Spec.Scheduler + field :private, 3, type: :bool + field :public, 4, type: :bool + field :visibility, 5, type: InternalApi.Projecthub.Project.Spec.Visibility, enum: true - field(:debug_permissions, 6, + field :debug_permissions, 6, repeated: true, type: InternalApi.Projecthub.Project.Spec.PermissionType, json_name: "debugPermissions", enum: true - ) - field(:attach_permissions, 7, + field :attach_permissions, 7, repeated: true, type: InternalApi.Projecthub.Project.Spec.PermissionType, json_name: "attachPermissions", enum: true - ) - field(:custom_permissions, 8, type: :bool, json_name: "customPermissions") - field(:artifact_store_id, 9, type: :string, json_name: "artifactStoreId") - field(:cache_id, 10, type: :string, json_name: "cacheId") - field(:docker_registry_id, 11, type: :string, json_name: "dockerRegistryId") - field(:tasks, 12, repeated: true, type: InternalApi.Projecthub.Project.Spec.Task) + field :custom_permissions, 8, type: :bool, json_name: "customPermissions" + field :artifact_store_id, 9, type: :string, json_name: "artifactStoreId" + field :cache_id, 10, type: :string, json_name: "cacheId" + field :docker_registry_id, 11, type: :string, json_name: "dockerRegistryId" + field :tasks, 12, repeated: true, type: InternalApi.Projecthub.Project.Spec.Task end defmodule InternalApi.Projecthub.Project.Status.Cache do @@ -319,7 +312,7 @@ defmodule InternalApi.Projecthub.Project.Status.Cache do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true) + field :state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true end defmodule InternalApi.Projecthub.Project.Status.ArtifactStore do @@ -327,7 +320,7 @@ defmodule InternalApi.Projecthub.Project.Status.ArtifactStore do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true) + field :state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true end defmodule InternalApi.Projecthub.Project.Status.Repository do @@ -335,7 +328,7 @@ defmodule InternalApi.Projecthub.Project.Status.Repository do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true) + field :state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true end defmodule InternalApi.Projecthub.Project.Status.Analysis do @@ -343,7 +336,7 @@ defmodule InternalApi.Projecthub.Project.Status.Analysis do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true) + field :state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true end defmodule InternalApi.Projecthub.Project.Status.Permissions do @@ -351,7 +344,7 @@ defmodule InternalApi.Projecthub.Project.Status.Permissions do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true) + field :state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true end defmodule InternalApi.Projecthub.Project.Status do @@ -359,18 +352,17 @@ defmodule InternalApi.Projecthub.Project.Status do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true) - field(:state_reason, 2, type: :string, json_name: "stateReason") - field(:cache, 3, type: InternalApi.Projecthub.Project.Status.Cache) + field :state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true + field :state_reason, 2, type: :string, json_name: "stateReason" + field :cache, 3, type: InternalApi.Projecthub.Project.Status.Cache - field(:artifact_store, 4, + field :artifact_store, 4, type: InternalApi.Projecthub.Project.Status.ArtifactStore, json_name: "artifactStore" - ) - field(:repository, 5, type: InternalApi.Projecthub.Project.Status.Repository) - field(:analysis, 6, type: InternalApi.Projecthub.Project.Status.Analysis) - field(:permissions, 7, type: InternalApi.Projecthub.Project.Status.Permissions) + field :repository, 5, type: InternalApi.Projecthub.Project.Status.Repository + field :analysis, 6, type: InternalApi.Projecthub.Project.Status.Analysis + field :permissions, 7, type: InternalApi.Projecthub.Project.Status.Permissions end defmodule InternalApi.Projecthub.Project do @@ -378,9 +370,9 @@ defmodule InternalApi.Projecthub.Project do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.Project.Metadata) - field(:spec, 2, type: InternalApi.Projecthub.Project.Spec) - field(:status, 3, type: InternalApi.Projecthub.Project.Status) + field :metadata, 1, type: InternalApi.Projecthub.Project.Metadata + field :spec, 2, type: InternalApi.Projecthub.Project.Spec + field :status, 3, type: InternalApi.Projecthub.Project.Status end defmodule InternalApi.Projecthub.ListRequest do @@ -388,11 +380,11 @@ defmodule InternalApi.Projecthub.ListRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) - field(:pagination, 2, type: InternalApi.Projecthub.PaginationRequest) - field(:owner_id, 3, type: :string, json_name: "ownerId") - field(:repo_url, 4, type: :string, json_name: "repoUrl") - field(:soft_deleted, 5, type: :bool, json_name: "softDeleted") + field :metadata, 1, type: InternalApi.Projecthub.RequestMeta + field :pagination, 2, type: InternalApi.Projecthub.PaginationRequest + field :owner_id, 3, type: :string, json_name: "ownerId" + field :repo_url, 4, type: :string, json_name: "repoUrl" + field :soft_deleted, 5, type: :bool, json_name: "softDeleted" end defmodule InternalApi.Projecthub.ListResponse do @@ -400,9 +392,9 @@ defmodule InternalApi.Projecthub.ListResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) - field(:pagination, 2, type: InternalApi.Projecthub.PaginationResponse) - field(:projects, 3, repeated: true, type: InternalApi.Projecthub.Project) + field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta + field :pagination, 2, type: InternalApi.Projecthub.PaginationResponse + field :projects, 3, repeated: true, type: InternalApi.Projecthub.Project end defmodule InternalApi.Projecthub.ListKeysetRequest do @@ -410,13 +402,13 @@ defmodule InternalApi.Projecthub.ListKeysetRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) - field(:page_size, 2, type: :int32, json_name: "pageSize") - field(:page_token, 3, type: :string, json_name: "pageToken") - field(:direction, 4, type: InternalApi.Projecthub.ListKeysetRequest.Direction, enum: true) - field(:owner_id, 5, type: :string, json_name: "ownerId") - field(:repo_url, 6, type: :string, json_name: "repoUrl") - field(:created_after, 7, type: Google.Protobuf.Timestamp, json_name: "createdAfter") + field :metadata, 1, type: InternalApi.Projecthub.RequestMeta + field :page_size, 2, type: :int32, json_name: "pageSize" + field :page_token, 3, type: :string, json_name: "pageToken" + field :direction, 4, type: InternalApi.Projecthub.ListKeysetRequest.Direction, enum: true + field :owner_id, 5, type: :string, json_name: "ownerId" + field :repo_url, 6, type: :string, json_name: "repoUrl" + field :created_after, 7, type: Google.Protobuf.Timestamp, json_name: "createdAfter" end defmodule InternalApi.Projecthub.ListKeysetResponse do @@ -424,10 +416,10 @@ defmodule InternalApi.Projecthub.ListKeysetResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) - field(:projects, 2, repeated: true, type: InternalApi.Projecthub.Project) - field(:next_page_token, 3, type: :string, json_name: "nextPageToken") - field(:previous_page_token, 4, type: :string, json_name: "previousPageToken") + field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta + field :projects, 2, repeated: true, type: InternalApi.Projecthub.Project + field :next_page_token, 3, type: :string, json_name: "nextPageToken" + field :previous_page_token, 4, type: :string, json_name: "previousPageToken" end defmodule InternalApi.Projecthub.DescribeRequest do @@ -435,11 +427,11 @@ defmodule InternalApi.Projecthub.DescribeRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) - field(:id, 2, type: :string) - field(:name, 3, type: :string) - field(:detailed, 4, type: :bool) - field(:soft_deleted, 5, type: :bool, json_name: "softDeleted") + field :metadata, 1, type: InternalApi.Projecthub.RequestMeta + field :id, 2, type: :string + field :name, 3, type: :string + field :detailed, 4, type: :bool + field :soft_deleted, 5, type: :bool, json_name: "softDeleted" end defmodule InternalApi.Projecthub.DescribeResponse do @@ -447,8 +439,8 @@ defmodule InternalApi.Projecthub.DescribeResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) - field(:project, 2, type: InternalApi.Projecthub.Project) + field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta + field :project, 2, type: InternalApi.Projecthub.Project end defmodule InternalApi.Projecthub.DescribeManyRequest do @@ -456,9 +448,9 @@ defmodule InternalApi.Projecthub.DescribeManyRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) - field(:ids, 2, repeated: true, type: :string) - field(:soft_deleted, 3, type: :bool, json_name: "softDeleted") + field :metadata, 1, type: InternalApi.Projecthub.RequestMeta + field :ids, 2, repeated: true, type: :string + field :soft_deleted, 3, type: :bool, json_name: "softDeleted" end defmodule InternalApi.Projecthub.DescribeManyResponse do @@ -466,8 +458,8 @@ defmodule InternalApi.Projecthub.DescribeManyResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) - field(:projects, 2, repeated: true, type: InternalApi.Projecthub.Project) + field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta + field :projects, 2, repeated: true, type: InternalApi.Projecthub.Project end defmodule InternalApi.Projecthub.CreateRequest do @@ -475,9 +467,9 @@ defmodule InternalApi.Projecthub.CreateRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) - field(:project, 2, type: InternalApi.Projecthub.Project) - field(:skip_onboarding, 3, type: :bool, json_name: "skipOnboarding") + field :metadata, 1, type: InternalApi.Projecthub.RequestMeta + field :project, 2, type: InternalApi.Projecthub.Project + field :skip_onboarding, 3, type: :bool, json_name: "skipOnboarding" end defmodule InternalApi.Projecthub.CreateResponse do @@ -485,8 +477,8 @@ defmodule InternalApi.Projecthub.CreateResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) - field(:project, 2, type: InternalApi.Projecthub.Project) + field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta + field :project, 2, type: InternalApi.Projecthub.Project end defmodule InternalApi.Projecthub.UpdateRequest do @@ -494,9 +486,9 @@ defmodule InternalApi.Projecthub.UpdateRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) - field(:project, 2, type: InternalApi.Projecthub.Project) - field(:omit_schedulers_and_tasks, 3, type: :bool, json_name: "omitSchedulersAndTasks") + field :metadata, 1, type: InternalApi.Projecthub.RequestMeta + field :project, 2, type: InternalApi.Projecthub.Project + field :omit_schedulers_and_tasks, 3, type: :bool, json_name: "omitSchedulersAndTasks" end defmodule InternalApi.Projecthub.UpdateResponse do @@ -504,8 +496,8 @@ defmodule InternalApi.Projecthub.UpdateResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) - field(:project, 2, type: InternalApi.Projecthub.Project) + field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta + field :project, 2, type: InternalApi.Projecthub.Project end defmodule InternalApi.Projecthub.DestroyRequest do @@ -513,9 +505,9 @@ defmodule InternalApi.Projecthub.DestroyRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) - field(:id, 2, type: :string) - field(:name, 3, type: :string) + field :metadata, 1, type: InternalApi.Projecthub.RequestMeta + field :id, 2, type: :string + field :name, 3, type: :string end defmodule InternalApi.Projecthub.DestroyResponse do @@ -523,7 +515,7 @@ defmodule InternalApi.Projecthub.DestroyResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) + field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta end defmodule InternalApi.Projecthub.RestoreRequest do @@ -531,8 +523,8 @@ defmodule InternalApi.Projecthub.RestoreRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) - field(:id, 2, type: :string) + field :metadata, 1, type: InternalApi.Projecthub.RequestMeta + field :id, 2, type: :string end defmodule InternalApi.Projecthub.RestoreResponse do @@ -540,7 +532,7 @@ defmodule InternalApi.Projecthub.RestoreResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) + field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta end defmodule InternalApi.Projecthub.UsersRequest do @@ -548,8 +540,8 @@ defmodule InternalApi.Projecthub.UsersRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) - field(:id, 2, type: :string) + field :metadata, 1, type: InternalApi.Projecthub.RequestMeta + field :id, 2, type: :string end defmodule InternalApi.Projecthub.UsersResponse do @@ -557,8 +549,8 @@ defmodule InternalApi.Projecthub.UsersResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) - field(:users, 2, repeated: true, type: InternalApi.User.User) + field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta + field :users, 2, repeated: true, type: InternalApi.User.User end defmodule InternalApi.Projecthub.CheckDeployKeyRequest do @@ -566,8 +558,8 @@ defmodule InternalApi.Projecthub.CheckDeployKeyRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) - field(:id, 2, type: :string) + field :metadata, 1, type: InternalApi.Projecthub.RequestMeta + field :id, 2, type: :string end defmodule InternalApi.Projecthub.CheckDeployKeyResponse.DeployKey do @@ -575,10 +567,10 @@ defmodule InternalApi.Projecthub.CheckDeployKeyResponse.DeployKey do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:title, 1, type: :string) - field(:fingerprint, 2, type: :string) - field(:created_at, 3, type: Google.Protobuf.Timestamp, json_name: "createdAt") - field(:public_key, 4, type: :string, json_name: "publicKey") + field :title, 1, type: :string + field :fingerprint, 2, type: :string + field :created_at, 3, type: Google.Protobuf.Timestamp, json_name: "createdAt" + field :public_key, 4, type: :string, json_name: "publicKey" end defmodule InternalApi.Projecthub.CheckDeployKeyResponse do @@ -586,12 +578,11 @@ defmodule InternalApi.Projecthub.CheckDeployKeyResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) + field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta - field(:deploy_key, 2, + field :deploy_key, 2, type: InternalApi.Projecthub.CheckDeployKeyResponse.DeployKey, json_name: "deployKey" - ) end defmodule InternalApi.Projecthub.RegenerateDeployKeyRequest do @@ -599,8 +590,8 @@ defmodule InternalApi.Projecthub.RegenerateDeployKeyRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) - field(:id, 2, type: :string) + field :metadata, 1, type: InternalApi.Projecthub.RequestMeta + field :id, 2, type: :string end defmodule InternalApi.Projecthub.RegenerateDeployKeyResponse.DeployKey do @@ -608,10 +599,10 @@ defmodule InternalApi.Projecthub.RegenerateDeployKeyResponse.DeployKey do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:title, 1, type: :string) - field(:fingerprint, 2, type: :string) - field(:created_at, 3, type: Google.Protobuf.Timestamp, json_name: "createdAt") - field(:public_key, 4, type: :string, json_name: "publicKey") + field :title, 1, type: :string + field :fingerprint, 2, type: :string + field :created_at, 3, type: Google.Protobuf.Timestamp, json_name: "createdAt" + field :public_key, 4, type: :string, json_name: "publicKey" end defmodule InternalApi.Projecthub.RegenerateDeployKeyResponse do @@ -619,12 +610,11 @@ defmodule InternalApi.Projecthub.RegenerateDeployKeyResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) + field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta - field(:deploy_key, 2, + field :deploy_key, 2, type: InternalApi.Projecthub.RegenerateDeployKeyResponse.DeployKey, json_name: "deployKey" - ) end defmodule InternalApi.Projecthub.CheckWebhookRequest do @@ -632,8 +622,8 @@ defmodule InternalApi.Projecthub.CheckWebhookRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) - field(:id, 2, type: :string) + field :metadata, 1, type: InternalApi.Projecthub.RequestMeta + field :id, 2, type: :string end defmodule InternalApi.Projecthub.CheckWebhookResponse do @@ -641,8 +631,8 @@ defmodule InternalApi.Projecthub.CheckWebhookResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) - field(:webhook, 2, type: InternalApi.Projecthub.Webhook) + field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta + field :webhook, 2, type: InternalApi.Projecthub.Webhook end defmodule InternalApi.Projecthub.RegenerateWebhookRequest do @@ -650,8 +640,8 @@ defmodule InternalApi.Projecthub.RegenerateWebhookRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) - field(:id, 2, type: :string) + field :metadata, 1, type: InternalApi.Projecthub.RequestMeta + field :id, 2, type: :string end defmodule InternalApi.Projecthub.RegenerateWebhookResponse do @@ -659,8 +649,8 @@ defmodule InternalApi.Projecthub.RegenerateWebhookResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) - field(:webhook, 2, type: InternalApi.Projecthub.Webhook) + field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta + field :webhook, 2, type: InternalApi.Projecthub.Webhook end defmodule InternalApi.Projecthub.Webhook do @@ -668,7 +658,7 @@ defmodule InternalApi.Projecthub.Webhook do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:url, 1, type: :string) + field :url, 1, type: :string end defmodule InternalApi.Projecthub.ChangeProjectOwnerRequest do @@ -676,9 +666,9 @@ defmodule InternalApi.Projecthub.ChangeProjectOwnerRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) - field(:id, 2, type: :string) - field(:user_id, 3, type: :string, json_name: "userId") + field :metadata, 1, type: InternalApi.Projecthub.RequestMeta + field :id, 2, type: :string + field :user_id, 3, type: :string, json_name: "userId" end defmodule InternalApi.Projecthub.ChangeProjectOwnerResponse do @@ -686,7 +676,7 @@ defmodule InternalApi.Projecthub.ChangeProjectOwnerResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) + field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta end defmodule InternalApi.Projecthub.ForkAndCreateRequest do @@ -694,8 +684,8 @@ defmodule InternalApi.Projecthub.ForkAndCreateRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) - field(:project, 2, type: InternalApi.Projecthub.Project) + field :metadata, 1, type: InternalApi.Projecthub.RequestMeta + field :project, 2, type: InternalApi.Projecthub.Project end defmodule InternalApi.Projecthub.ForkAndCreateResponse do @@ -703,8 +693,8 @@ defmodule InternalApi.Projecthub.ForkAndCreateResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) - field(:project, 2, type: InternalApi.Projecthub.Project) + field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta + field :project, 2, type: InternalApi.Projecthub.Project end defmodule InternalApi.Projecthub.GithubAppSwitchRequest do @@ -712,8 +702,8 @@ defmodule InternalApi.Projecthub.GithubAppSwitchRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) - field(:id, 2, type: :string) + field :metadata, 1, type: InternalApi.Projecthub.RequestMeta + field :id, 2, type: :string end defmodule InternalApi.Projecthub.GithubAppSwitchResponse do @@ -721,7 +711,7 @@ defmodule InternalApi.Projecthub.GithubAppSwitchResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) + field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta end defmodule InternalApi.Projecthub.FinishOnboardingRequest do @@ -729,8 +719,8 @@ defmodule InternalApi.Projecthub.FinishOnboardingRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) - field(:id, 2, type: :string) + field :metadata, 1, type: InternalApi.Projecthub.RequestMeta + field :id, 2, type: :string end defmodule InternalApi.Projecthub.FinishOnboardingResponse do @@ -738,7 +728,7 @@ defmodule InternalApi.Projecthub.FinishOnboardingResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) + field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta end defmodule InternalApi.Projecthub.RegenerateWebhookSecretRequest do @@ -746,8 +736,8 @@ defmodule InternalApi.Projecthub.RegenerateWebhookSecretRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) - field(:id, 2, type: :string) + field :metadata, 1, type: InternalApi.Projecthub.RequestMeta + field :id, 2, type: :string end defmodule InternalApi.Projecthub.RegenerateWebhookSecretResponse do @@ -755,8 +745,8 @@ defmodule InternalApi.Projecthub.RegenerateWebhookSecretResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) - field(:secret, 2, type: :string) + field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta + field :secret, 2, type: :string end defmodule InternalApi.Projecthub.ProjectCreated do @@ -764,9 +754,9 @@ defmodule InternalApi.Projecthub.ProjectCreated do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:project_id, 1, type: :string, json_name: "projectId") - field(:timestamp, 2, type: Google.Protobuf.Timestamp) - field(:org_id, 3, type: :string, json_name: "orgId") + field :project_id, 1, type: :string, json_name: "projectId" + field :timestamp, 2, type: Google.Protobuf.Timestamp + field :org_id, 3, type: :string, json_name: "orgId" end defmodule InternalApi.Projecthub.ProjectDeleted do @@ -774,9 +764,9 @@ defmodule InternalApi.Projecthub.ProjectDeleted do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:project_id, 1, type: :string, json_name: "projectId") - field(:timestamp, 2, type: Google.Protobuf.Timestamp) - field(:org_id, 3, type: :string, json_name: "orgId") + field :project_id, 1, type: :string, json_name: "projectId" + field :timestamp, 2, type: Google.Protobuf.Timestamp + field :org_id, 3, type: :string, json_name: "orgId" end defmodule InternalApi.Projecthub.ProjectRestored do @@ -784,9 +774,9 @@ defmodule InternalApi.Projecthub.ProjectRestored do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:project_id, 1, type: :string, json_name: "projectId") - field(:timestamp, 2, type: Google.Protobuf.Timestamp) - field(:org_id, 3, type: :string, json_name: "orgId") + field :project_id, 1, type: :string, json_name: "projectId" + field :timestamp, 2, type: Google.Protobuf.Timestamp + field :org_id, 3, type: :string, json_name: "orgId" end defmodule InternalApi.Projecthub.ProjectUpdated do @@ -794,9 +784,9 @@ defmodule InternalApi.Projecthub.ProjectUpdated do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:project_id, 1, type: :string, json_name: "projectId") - field(:org_id, 2, type: :string, json_name: "orgId") - field(:timestamp, 3, type: Google.Protobuf.Timestamp) + field :project_id, 1, type: :string, json_name: "projectId" + field :org_id, 2, type: :string, json_name: "orgId" + field :timestamp, 3, type: Google.Protobuf.Timestamp end defmodule InternalApi.Projecthub.CollaboratorsChanged do @@ -804,8 +794,8 @@ defmodule InternalApi.Projecthub.CollaboratorsChanged do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:project_id, 1, type: :string, json_name: "projectId") - field(:timestamp, 2, type: Google.Protobuf.Timestamp) + field :project_id, 1, type: :string, json_name: "projectId" + field :timestamp, 2, type: Google.Protobuf.Timestamp end defmodule InternalApi.Projecthub.ProjectService.Service do @@ -815,89 +805,67 @@ defmodule InternalApi.Projecthub.ProjectService.Service do name: "InternalApi.Projecthub.ProjectService", protoc_gen_elixir_version: "0.13.0" - rpc(:List, InternalApi.Projecthub.ListRequest, InternalApi.Projecthub.ListResponse) + rpc :List, InternalApi.Projecthub.ListRequest, InternalApi.Projecthub.ListResponse - rpc( - :ListKeyset, - InternalApi.Projecthub.ListKeysetRequest, - InternalApi.Projecthub.ListKeysetResponse - ) + rpc :ListKeyset, + InternalApi.Projecthub.ListKeysetRequest, + InternalApi.Projecthub.ListKeysetResponse - rpc(:Describe, InternalApi.Projecthub.DescribeRequest, InternalApi.Projecthub.DescribeResponse) + rpc :Describe, InternalApi.Projecthub.DescribeRequest, InternalApi.Projecthub.DescribeResponse - rpc( - :DescribeMany, - InternalApi.Projecthub.DescribeManyRequest, - InternalApi.Projecthub.DescribeManyResponse - ) + rpc :DescribeMany, + InternalApi.Projecthub.DescribeManyRequest, + InternalApi.Projecthub.DescribeManyResponse - rpc(:Create, InternalApi.Projecthub.CreateRequest, InternalApi.Projecthub.CreateResponse) + rpc :Create, InternalApi.Projecthub.CreateRequest, InternalApi.Projecthub.CreateResponse - rpc(:Update, InternalApi.Projecthub.UpdateRequest, InternalApi.Projecthub.UpdateResponse) + rpc :Update, InternalApi.Projecthub.UpdateRequest, InternalApi.Projecthub.UpdateResponse - rpc(:Destroy, InternalApi.Projecthub.DestroyRequest, InternalApi.Projecthub.DestroyResponse) + rpc :Destroy, InternalApi.Projecthub.DestroyRequest, InternalApi.Projecthub.DestroyResponse - rpc(:Restore, InternalApi.Projecthub.RestoreRequest, InternalApi.Projecthub.RestoreResponse) + rpc :Restore, InternalApi.Projecthub.RestoreRequest, InternalApi.Projecthub.RestoreResponse - rpc(:Users, InternalApi.Projecthub.UsersRequest, InternalApi.Projecthub.UsersResponse) + rpc :Users, InternalApi.Projecthub.UsersRequest, InternalApi.Projecthub.UsersResponse - rpc( - :CheckDeployKey, - InternalApi.Projecthub.CheckDeployKeyRequest, - InternalApi.Projecthub.CheckDeployKeyResponse - ) + rpc :CheckDeployKey, + InternalApi.Projecthub.CheckDeployKeyRequest, + InternalApi.Projecthub.CheckDeployKeyResponse - rpc( - :RegenerateDeployKey, - InternalApi.Projecthub.RegenerateDeployKeyRequest, - InternalApi.Projecthub.RegenerateDeployKeyResponse - ) + rpc :RegenerateDeployKey, + InternalApi.Projecthub.RegenerateDeployKeyRequest, + InternalApi.Projecthub.RegenerateDeployKeyResponse - rpc( - :CheckWebhook, - InternalApi.Projecthub.CheckWebhookRequest, - InternalApi.Projecthub.CheckWebhookResponse - ) + rpc :CheckWebhook, + InternalApi.Projecthub.CheckWebhookRequest, + InternalApi.Projecthub.CheckWebhookResponse - rpc( - :RegenerateWebhook, - InternalApi.Projecthub.RegenerateWebhookRequest, - InternalApi.Projecthub.RegenerateWebhookResponse - ) + rpc :RegenerateWebhook, + InternalApi.Projecthub.RegenerateWebhookRequest, + InternalApi.Projecthub.RegenerateWebhookResponse - rpc( - :RegenerateWebhookSecret, - InternalApi.Projecthub.RegenerateWebhookSecretRequest, - InternalApi.Projecthub.RegenerateWebhookSecretResponse - ) + rpc :RegenerateWebhookSecret, + InternalApi.Projecthub.RegenerateWebhookSecretRequest, + InternalApi.Projecthub.RegenerateWebhookSecretResponse - rpc( - :ChangeProjectOwner, - InternalApi.Projecthub.ChangeProjectOwnerRequest, - InternalApi.Projecthub.ChangeProjectOwnerResponse - ) + rpc :ChangeProjectOwner, + InternalApi.Projecthub.ChangeProjectOwnerRequest, + InternalApi.Projecthub.ChangeProjectOwnerResponse - rpc( - :ForkAndCreate, - InternalApi.Projecthub.ForkAndCreateRequest, - InternalApi.Projecthub.ForkAndCreateResponse - ) + rpc :ForkAndCreate, + InternalApi.Projecthub.ForkAndCreateRequest, + InternalApi.Projecthub.ForkAndCreateResponse - rpc( - :GithubAppSwitch, - InternalApi.Projecthub.GithubAppSwitchRequest, - InternalApi.Projecthub.GithubAppSwitchResponse - ) + rpc :GithubAppSwitch, + InternalApi.Projecthub.GithubAppSwitchRequest, + InternalApi.Projecthub.GithubAppSwitchResponse - rpc( - :FinishOnboarding, - InternalApi.Projecthub.FinishOnboardingRequest, - InternalApi.Projecthub.FinishOnboardingResponse - ) + rpc :FinishOnboarding, + InternalApi.Projecthub.FinishOnboardingRequest, + InternalApi.Projecthub.FinishOnboardingResponse end defmodule InternalApi.Projecthub.ProjectService.Stub do @moduledoc false use GRPC.Stub, service: InternalApi.Projecthub.ProjectService.Service -end +end \ No newline at end of file diff --git a/rbac/ce/lib/internal_api/rbac.pb.ex b/rbac/ce/lib/internal_api/rbac.pb.ex index 5c7b4a4b4..f7b757f32 100644 --- a/rbac/ce/lib/internal_api/rbac.pb.ex +++ b/rbac/ce/lib/internal_api/rbac.pb.ex @@ -3,9 +3,9 @@ defmodule InternalApi.RBAC.SubjectType do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:USER, 0) - field(:GROUP, 1) - field(:SERVICE_ACCOUNT, 2) + field :USER, 0 + field :GROUP, 1 + field :SERVICE_ACCOUNT, 2 end defmodule InternalApi.RBAC.Scope do @@ -13,9 +13,9 @@ defmodule InternalApi.RBAC.Scope do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:SCOPE_UNSPECIFIED, 0) - field(:SCOPE_ORG, 1) - field(:SCOPE_PROJECT, 2) + field :SCOPE_UNSPECIFIED, 0 + field :SCOPE_ORG, 1 + field :SCOPE_PROJECT, 2 end defmodule InternalApi.RBAC.RoleBindingSource do @@ -23,14 +23,14 @@ defmodule InternalApi.RBAC.RoleBindingSource do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:ROLE_BINDING_SOURCE_UNSPECIFIED, 0) - field(:ROLE_BINDING_SOURCE_MANUALLY, 1) - field(:ROLE_BINDING_SOURCE_GITHUB, 2) - field(:ROLE_BINDING_SOURCE_BITBUCKET, 3) - field(:ROLE_BINDING_SOURCE_GITLAB, 4) - field(:ROLE_BINDING_SOURCE_SCIM, 5) - field(:ROLE_BINDING_SOURCE_INHERITED_FROM_ORG_ROLE, 6) - field(:ROLE_BINDING_SOURCE_SAML_JIT, 7) + field :ROLE_BINDING_SOURCE_UNSPECIFIED, 0 + field :ROLE_BINDING_SOURCE_MANUALLY, 1 + field :ROLE_BINDING_SOURCE_GITHUB, 2 + field :ROLE_BINDING_SOURCE_BITBUCKET, 3 + field :ROLE_BINDING_SOURCE_GITLAB, 4 + field :ROLE_BINDING_SOURCE_SCIM, 5 + field :ROLE_BINDING_SOURCE_INHERITED_FROM_ORG_ROLE, 6 + field :ROLE_BINDING_SOURCE_SAML_JIT, 7 end defmodule InternalApi.RBAC.ListUserPermissionsRequest do @@ -38,9 +38,9 @@ defmodule InternalApi.RBAC.ListUserPermissionsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:org_id, 2, type: :string, json_name: "orgId") - field(:project_id, 3, type: :string, json_name: "projectId") + field :user_id, 1, type: :string, json_name: "userId" + field :org_id, 2, type: :string, json_name: "orgId" + field :project_id, 3, type: :string, json_name: "projectId" end defmodule InternalApi.RBAC.ListUserPermissionsResponse do @@ -48,10 +48,10 @@ defmodule InternalApi.RBAC.ListUserPermissionsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:org_id, 2, type: :string, json_name: "orgId") - field(:project_id, 3, type: :string, json_name: "projectId") - field(:permissions, 4, repeated: true, type: :string) + field :user_id, 1, type: :string, json_name: "userId" + field :org_id, 2, type: :string, json_name: "orgId" + field :project_id, 3, type: :string, json_name: "projectId" + field :permissions, 4, repeated: true, type: :string end defmodule InternalApi.RBAC.ListExistingPermissionsRequest do @@ -59,7 +59,7 @@ defmodule InternalApi.RBAC.ListExistingPermissionsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:scope, 1, type: InternalApi.RBAC.Scope, enum: true) + field :scope, 1, type: InternalApi.RBAC.Scope, enum: true end defmodule InternalApi.RBAC.ListExistingPermissionsResponse do @@ -67,7 +67,7 @@ defmodule InternalApi.RBAC.ListExistingPermissionsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:permissions, 1, repeated: true, type: InternalApi.RBAC.Permission) + field :permissions, 1, repeated: true, type: InternalApi.RBAC.Permission end defmodule InternalApi.RBAC.AssignRoleRequest do @@ -75,8 +75,8 @@ defmodule InternalApi.RBAC.AssignRoleRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:role_assignment, 1, type: InternalApi.RBAC.RoleAssignment, json_name: "roleAssignment") - field(:requester_id, 2, type: :string, json_name: "requesterId") + field :role_assignment, 1, type: InternalApi.RBAC.RoleAssignment, json_name: "roleAssignment" + field :requester_id, 2, type: :string, json_name: "requesterId" end defmodule InternalApi.RBAC.AssignRoleResponse do @@ -90,8 +90,8 @@ defmodule InternalApi.RBAC.RetractRoleRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:role_assignment, 1, type: InternalApi.RBAC.RoleAssignment, json_name: "roleAssignment") - field(:requester_id, 2, type: :string, json_name: "requesterId") + field :role_assignment, 1, type: InternalApi.RBAC.RoleAssignment, json_name: "roleAssignment" + field :requester_id, 2, type: :string, json_name: "requesterId" end defmodule InternalApi.RBAC.RetractRoleResponse do @@ -105,11 +105,10 @@ defmodule InternalApi.RBAC.SubjectsHaveRolesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:role_assignments, 1, + field :role_assignments, 1, repeated: true, type: InternalApi.RBAC.RoleAssignment, json_name: "roleAssignments" - ) end defmodule InternalApi.RBAC.SubjectsHaveRolesResponse.HasRole do @@ -117,8 +116,8 @@ defmodule InternalApi.RBAC.SubjectsHaveRolesResponse.HasRole do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:role_assignment, 1, type: InternalApi.RBAC.RoleAssignment, json_name: "roleAssignment") - field(:has_role, 2, type: :bool, json_name: "hasRole") + field :role_assignment, 1, type: InternalApi.RBAC.RoleAssignment, json_name: "roleAssignment" + field :has_role, 2, type: :bool, json_name: "hasRole" end defmodule InternalApi.RBAC.SubjectsHaveRolesResponse do @@ -126,11 +125,10 @@ defmodule InternalApi.RBAC.SubjectsHaveRolesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:has_roles, 1, + field :has_roles, 1, repeated: true, type: InternalApi.RBAC.SubjectsHaveRolesResponse.HasRole, json_name: "hasRoles" - ) end defmodule InternalApi.RBAC.ListRolesRequest do @@ -138,8 +136,8 @@ defmodule InternalApi.RBAC.ListRolesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:scope, 2, type: InternalApi.RBAC.Scope, enum: true) + field :org_id, 1, type: :string, json_name: "orgId" + field :scope, 2, type: InternalApi.RBAC.Scope, enum: true end defmodule InternalApi.RBAC.ListRolesResponse do @@ -147,7 +145,7 @@ defmodule InternalApi.RBAC.ListRolesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:roles, 1, repeated: true, type: InternalApi.RBAC.Role) + field :roles, 1, repeated: true, type: InternalApi.RBAC.Role end defmodule InternalApi.RBAC.DescribeRoleRequest do @@ -155,8 +153,8 @@ defmodule InternalApi.RBAC.DescribeRoleRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:role_id, 2, type: :string, json_name: "roleId") + field :org_id, 1, type: :string, json_name: "orgId" + field :role_id, 2, type: :string, json_name: "roleId" end defmodule InternalApi.RBAC.DescribeRoleResponse do @@ -164,7 +162,7 @@ defmodule InternalApi.RBAC.DescribeRoleResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:role, 1, type: InternalApi.RBAC.Role) + field :role, 1, type: InternalApi.RBAC.Role end defmodule InternalApi.RBAC.ModifyRoleRequest do @@ -172,8 +170,8 @@ defmodule InternalApi.RBAC.ModifyRoleRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:role, 1, type: InternalApi.RBAC.Role) - field(:requester_id, 2, type: :string, json_name: "requesterId") + field :role, 1, type: InternalApi.RBAC.Role + field :requester_id, 2, type: :string, json_name: "requesterId" end defmodule InternalApi.RBAC.ModifyRoleResponse do @@ -181,7 +179,7 @@ defmodule InternalApi.RBAC.ModifyRoleResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:role, 1, type: InternalApi.RBAC.Role) + field :role, 1, type: InternalApi.RBAC.Role end defmodule InternalApi.RBAC.DestroyRoleRequest do @@ -189,9 +187,9 @@ defmodule InternalApi.RBAC.DestroyRoleRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:role_id, 2, type: :string, json_name: "roleId") - field(:requester_id, 3, type: :string, json_name: "requesterId") + field :org_id, 1, type: :string, json_name: "orgId" + field :role_id, 2, type: :string, json_name: "roleId" + field :requester_id, 3, type: :string, json_name: "requesterId" end defmodule InternalApi.RBAC.DestroyRoleResponse do @@ -199,7 +197,7 @@ defmodule InternalApi.RBAC.DestroyRoleResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:role_id, 1, type: :string, json_name: "roleId") + field :role_id, 1, type: :string, json_name: "roleId" end defmodule InternalApi.RBAC.ListMembersRequest.Page do @@ -207,8 +205,8 @@ defmodule InternalApi.RBAC.ListMembersRequest.Page do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:page_no, 1, type: :int32, json_name: "pageNo") - field(:page_size, 2, type: :int32, json_name: "pageSize") + field :page_no, 1, type: :int32, json_name: "pageNo" + field :page_size, 2, type: :int32, json_name: "pageSize" end defmodule InternalApi.RBAC.ListMembersRequest do @@ -216,12 +214,12 @@ defmodule InternalApi.RBAC.ListMembersRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") - field(:project_id, 2, type: :string, json_name: "projectId") - field(:member_name_contains, 3, type: :string, json_name: "memberNameContains") - field(:page, 4, type: InternalApi.RBAC.ListMembersRequest.Page) - field(:member_has_role, 5, type: :string, json_name: "memberHasRole") - field(:member_type, 6, type: InternalApi.RBAC.SubjectType, json_name: "memberType", enum: true) + field :org_id, 1, type: :string, json_name: "orgId" + field :project_id, 2, type: :string, json_name: "projectId" + field :member_name_contains, 3, type: :string, json_name: "memberNameContains" + field :page, 4, type: InternalApi.RBAC.ListMembersRequest.Page + field :member_has_role, 5, type: :string, json_name: "memberHasRole" + field :member_type, 6, type: InternalApi.RBAC.SubjectType, json_name: "memberType", enum: true end defmodule InternalApi.RBAC.ListMembersResponse.Member do @@ -229,13 +227,12 @@ defmodule InternalApi.RBAC.ListMembersResponse.Member do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:subject, 1, type: InternalApi.RBAC.Subject) + field :subject, 1, type: InternalApi.RBAC.Subject - field(:subject_role_bindings, 3, + field :subject_role_bindings, 3, repeated: true, type: InternalApi.RBAC.SubjectRoleBinding, json_name: "subjectRoleBindings" - ) end defmodule InternalApi.RBAC.ListMembersResponse do @@ -243,8 +240,8 @@ defmodule InternalApi.RBAC.ListMembersResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:members, 1, repeated: true, type: InternalApi.RBAC.ListMembersResponse.Member) - field(:total_pages, 2, type: :int32, json_name: "totalPages") + field :members, 1, repeated: true, type: InternalApi.RBAC.ListMembersResponse.Member + field :total_pages, 2, type: :int32, json_name: "totalPages" end defmodule InternalApi.RBAC.CountMembersRequest do @@ -252,7 +249,7 @@ defmodule InternalApi.RBAC.CountMembersRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") + field :org_id, 1, type: :string, json_name: "orgId" end defmodule InternalApi.RBAC.CountMembersResponse do @@ -260,7 +257,7 @@ defmodule InternalApi.RBAC.CountMembersResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:members, 1, type: :int32) + field :members, 1, type: :int32 end defmodule InternalApi.RBAC.SubjectRoleBinding do @@ -268,9 +265,9 @@ defmodule InternalApi.RBAC.SubjectRoleBinding do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:role, 1, type: InternalApi.RBAC.Role) - field(:source, 2, type: InternalApi.RBAC.RoleBindingSource, enum: true) - field(:role_assigned_at, 3, type: Google.Protobuf.Timestamp, json_name: "roleAssignedAt") + field :role, 1, type: InternalApi.RBAC.Role + field :source, 2, type: InternalApi.RBAC.RoleBindingSource, enum: true + field :role_assigned_at, 3, type: Google.Protobuf.Timestamp, json_name: "roleAssignedAt" end defmodule InternalApi.RBAC.ListAccessibleOrgsRequest do @@ -278,7 +275,7 @@ defmodule InternalApi.RBAC.ListAccessibleOrgsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") + field :user_id, 1, type: :string, json_name: "userId" end defmodule InternalApi.RBAC.ListAccessibleOrgsResponse do @@ -286,7 +283,7 @@ defmodule InternalApi.RBAC.ListAccessibleOrgsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_ids, 1, repeated: true, type: :string, json_name: "orgIds") + field :org_ids, 1, repeated: true, type: :string, json_name: "orgIds" end defmodule InternalApi.RBAC.ListAccessibleProjectsRequest do @@ -294,8 +291,8 @@ defmodule InternalApi.RBAC.ListAccessibleProjectsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:org_id, 2, type: :string, json_name: "orgId") + field :user_id, 1, type: :string, json_name: "userId" + field :org_id, 2, type: :string, json_name: "orgId" end defmodule InternalApi.RBAC.ListAccessibleProjectsResponse do @@ -303,7 +300,7 @@ defmodule InternalApi.RBAC.ListAccessibleProjectsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:project_ids, 1, repeated: true, type: :string, json_name: "projectIds") + field :project_ids, 1, repeated: true, type: :string, json_name: "projectIds" end defmodule InternalApi.RBAC.RoleAssignment do @@ -311,10 +308,10 @@ defmodule InternalApi.RBAC.RoleAssignment do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:role_id, 1, type: :string, json_name: "roleId") - field(:subject, 2, type: InternalApi.RBAC.Subject) - field(:org_id, 3, type: :string, json_name: "orgId") - field(:project_id, 4, type: :string, json_name: "projectId") + field :role_id, 1, type: :string, json_name: "roleId" + field :subject, 2, type: InternalApi.RBAC.Subject + field :org_id, 3, type: :string, json_name: "orgId" + field :project_id, 4, type: :string, json_name: "projectId" end defmodule InternalApi.RBAC.Subject do @@ -322,14 +319,9 @@ defmodule InternalApi.RBAC.Subject do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:subject_type, 1, - type: InternalApi.RBAC.SubjectType, - json_name: "subjectType", - enum: true - ) - - field(:subject_id, 2, type: :string, json_name: "subjectId") - field(:display_name, 3, type: :string, json_name: "displayName") + field :subject_type, 1, type: InternalApi.RBAC.SubjectType, json_name: "subjectType", enum: true + field :subject_id, 2, type: :string, json_name: "subjectId" + field :display_name, 3, type: :string, json_name: "displayName" end defmodule InternalApi.RBAC.RefreshCollaboratorsRequest do @@ -337,7 +329,7 @@ defmodule InternalApi.RBAC.RefreshCollaboratorsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:org_id, 1, type: :string, json_name: "orgId") + field :org_id, 1, type: :string, json_name: "orgId" end defmodule InternalApi.RBAC.RefreshCollaboratorsResponse do @@ -351,22 +343,21 @@ defmodule InternalApi.RBAC.Role do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:id, 1, type: :string) - field(:name, 2, type: :string) - field(:org_id, 3, type: :string, json_name: "orgId") - field(:scope, 4, type: InternalApi.RBAC.Scope, enum: true) - field(:description, 5, type: :string) - field(:permissions, 6, repeated: true, type: :string) + field :id, 1, type: :string + field :name, 2, type: :string + field :org_id, 3, type: :string, json_name: "orgId" + field :scope, 4, type: InternalApi.RBAC.Scope, enum: true + field :description, 5, type: :string + field :permissions, 6, repeated: true, type: :string - field(:rbac_permissions, 7, + field :rbac_permissions, 7, repeated: true, type: InternalApi.RBAC.Permission, json_name: "rbacPermissions" - ) - field(:inherited_role, 8, type: InternalApi.RBAC.Role, json_name: "inheritedRole") - field(:maps_to, 9, type: InternalApi.RBAC.Role, json_name: "mapsTo") - field(:readonly, 10, type: :bool) + field :inherited_role, 8, type: InternalApi.RBAC.Role, json_name: "inheritedRole" + field :maps_to, 9, type: InternalApi.RBAC.Role, json_name: "mapsTo" + field :readonly, 10, type: :bool end defmodule InternalApi.RBAC.Permission do @@ -374,10 +365,27 @@ defmodule InternalApi.RBAC.Permission do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:id, 1, type: :string) - field(:name, 2, type: :string) - field(:description, 3, type: :string) - field(:scope, 4, type: InternalApi.RBAC.Scope, enum: true) + field :id, 1, type: :string + field :name, 2, type: :string + field :description, 3, type: :string + field :scope, 4, type: InternalApi.RBAC.Scope, enum: true +end + +defmodule InternalApi.RBAC.ListSubjectsRequest do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + + field :org_id, 1, type: :string, json_name: "orgId" + field :subject_ids, 2, repeated: true, type: :string, json_name: "subjectIds" +end + +defmodule InternalApi.RBAC.ListSubjectsResponse do + @moduledoc false + + use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" + + field :subjects, 1, repeated: true, type: InternalApi.RBAC.Subject end defmodule InternalApi.RBAC.RBAC.Service do @@ -385,61 +393,51 @@ defmodule InternalApi.RBAC.RBAC.Service do use GRPC.Service, name: "InternalApi.RBAC.RBAC", protoc_gen_elixir_version: "0.13.0" - rpc( - :ListUserPermissions, - InternalApi.RBAC.ListUserPermissionsRequest, - InternalApi.RBAC.ListUserPermissionsResponse - ) + rpc :ListUserPermissions, + InternalApi.RBAC.ListUserPermissionsRequest, + InternalApi.RBAC.ListUserPermissionsResponse + + rpc :ListExistingPermissions, + InternalApi.RBAC.ListExistingPermissionsRequest, + InternalApi.RBAC.ListExistingPermissionsResponse - rpc( - :ListExistingPermissions, - InternalApi.RBAC.ListExistingPermissionsRequest, - InternalApi.RBAC.ListExistingPermissionsResponse - ) + rpc :AssignRole, InternalApi.RBAC.AssignRoleRequest, InternalApi.RBAC.AssignRoleResponse - rpc(:AssignRole, InternalApi.RBAC.AssignRoleRequest, InternalApi.RBAC.AssignRoleResponse) + rpc :RetractRole, InternalApi.RBAC.RetractRoleRequest, InternalApi.RBAC.RetractRoleResponse - rpc(:RetractRole, InternalApi.RBAC.RetractRoleRequest, InternalApi.RBAC.RetractRoleResponse) + rpc :SubjectsHaveRoles, + InternalApi.RBAC.SubjectsHaveRolesRequest, + InternalApi.RBAC.SubjectsHaveRolesResponse - rpc( - :SubjectsHaveRoles, - InternalApi.RBAC.SubjectsHaveRolesRequest, - InternalApi.RBAC.SubjectsHaveRolesResponse - ) + rpc :ListRoles, InternalApi.RBAC.ListRolesRequest, InternalApi.RBAC.ListRolesResponse - rpc(:ListRoles, InternalApi.RBAC.ListRolesRequest, InternalApi.RBAC.ListRolesResponse) + rpc :DescribeRole, InternalApi.RBAC.DescribeRoleRequest, InternalApi.RBAC.DescribeRoleResponse - rpc(:DescribeRole, InternalApi.RBAC.DescribeRoleRequest, InternalApi.RBAC.DescribeRoleResponse) + rpc :ModifyRole, InternalApi.RBAC.ModifyRoleRequest, InternalApi.RBAC.ModifyRoleResponse - rpc(:ModifyRole, InternalApi.RBAC.ModifyRoleRequest, InternalApi.RBAC.ModifyRoleResponse) + rpc :DestroyRole, InternalApi.RBAC.DestroyRoleRequest, InternalApi.RBAC.DestroyRoleResponse - rpc(:DestroyRole, InternalApi.RBAC.DestroyRoleRequest, InternalApi.RBAC.DestroyRoleResponse) + rpc :ListMembers, InternalApi.RBAC.ListMembersRequest, InternalApi.RBAC.ListMembersResponse - rpc(:ListMembers, InternalApi.RBAC.ListMembersRequest, InternalApi.RBAC.ListMembersResponse) + rpc :CountMembers, InternalApi.RBAC.CountMembersRequest, InternalApi.RBAC.CountMembersResponse - rpc(:CountMembers, InternalApi.RBAC.CountMembersRequest, InternalApi.RBAC.CountMembersResponse) + rpc :ListAccessibleOrgs, + InternalApi.RBAC.ListAccessibleOrgsRequest, + InternalApi.RBAC.ListAccessibleOrgsResponse - rpc( - :ListAccessibleOrgs, - InternalApi.RBAC.ListAccessibleOrgsRequest, - InternalApi.RBAC.ListAccessibleOrgsResponse - ) + rpc :ListAccessibleProjects, + InternalApi.RBAC.ListAccessibleProjectsRequest, + InternalApi.RBAC.ListAccessibleProjectsResponse - rpc( - :ListAccessibleProjects, - InternalApi.RBAC.ListAccessibleProjectsRequest, - InternalApi.RBAC.ListAccessibleProjectsResponse - ) + rpc :RefreshCollaborators, + InternalApi.RBAC.RefreshCollaboratorsRequest, + InternalApi.RBAC.RefreshCollaboratorsResponse - rpc( - :RefreshCollaborators, - InternalApi.RBAC.RefreshCollaboratorsRequest, - InternalApi.RBAC.RefreshCollaboratorsResponse - ) + rpc :ListSubjects, InternalApi.RBAC.ListSubjectsRequest, InternalApi.RBAC.ListSubjectsResponse end defmodule InternalApi.RBAC.RBAC.Stub do @moduledoc false use GRPC.Stub, service: InternalApi.RBAC.RBAC.Service -end +end \ No newline at end of file diff --git a/rbac/ce/lib/internal_api/repository_integrator.pb.ex b/rbac/ce/lib/internal_api/repository_integrator.pb.ex index 7850dce71..a4e73a9c8 100644 --- a/rbac/ce/lib/internal_api/repository_integrator.pb.ex +++ b/rbac/ce/lib/internal_api/repository_integrator.pb.ex @@ -3,11 +3,11 @@ defmodule InternalApi.RepositoryIntegrator.IntegrationType do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:GITHUB_OAUTH_TOKEN, 0) - field(:GITHUB_APP, 1) - field(:BITBUCKET, 2) - field(:GITLAB, 3) - field(:GIT, 4) + field :GITHUB_OAUTH_TOKEN, 0 + field :GITHUB_APP, 1 + field :BITBUCKET, 2 + field :GITLAB, 3 + field :GIT, 4 end defmodule InternalApi.RepositoryIntegrator.IntegrationScope do @@ -15,9 +15,9 @@ defmodule InternalApi.RepositoryIntegrator.IntegrationScope do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:FULL_CONNECTION, 0) - field(:ONLY_PUBLIC, 1) - field(:NO_CONNECTION, 2) + field :FULL_CONNECTION, 0 + field :ONLY_PUBLIC, 1 + field :NO_CONNECTION, 2 end defmodule InternalApi.RepositoryIntegrator.GetTokenRequest do @@ -25,16 +25,15 @@ defmodule InternalApi.RepositoryIntegrator.GetTokenRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:repository_slug, 2, type: :string, json_name: "repositorySlug") + field :user_id, 1, type: :string, json_name: "userId" + field :repository_slug, 2, type: :string, json_name: "repositorySlug" - field(:integration_type, 3, + field :integration_type, 3, type: InternalApi.RepositoryIntegrator.IntegrationType, json_name: "integrationType", enum: true - ) - field(:project_id, 4, type: :string, json_name: "projectId") + field :project_id, 4, type: :string, json_name: "projectId" end defmodule InternalApi.RepositoryIntegrator.GetTokenResponse do @@ -42,8 +41,8 @@ defmodule InternalApi.RepositoryIntegrator.GetTokenResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:token, 1, type: :string) - field(:expires_at, 2, type: Google.Protobuf.Timestamp, json_name: "expiresAt") + field :token, 1, type: :string + field :expires_at, 2, type: Google.Protobuf.Timestamp, json_name: "expiresAt" end defmodule InternalApi.RepositoryIntegrator.CheckTokenRequest do @@ -51,7 +50,7 @@ defmodule InternalApi.RepositoryIntegrator.CheckTokenRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:project_id, 1, type: :string, json_name: "projectId") + field :project_id, 1, type: :string, json_name: "projectId" end defmodule InternalApi.RepositoryIntegrator.CheckTokenResponse do @@ -59,13 +58,12 @@ defmodule InternalApi.RepositoryIntegrator.CheckTokenResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:valid, 1, type: :bool) + field :valid, 1, type: :bool - field(:integration_scope, 2, + field :integration_scope, 2, type: InternalApi.RepositoryIntegrator.IntegrationScope, json_name: "integrationScope", enum: true - ) end defmodule InternalApi.RepositoryIntegrator.PreheatFileCacheRequest do @@ -73,9 +71,9 @@ defmodule InternalApi.RepositoryIntegrator.PreheatFileCacheRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:project_id, 1, type: :string, json_name: "projectId") - field(:path, 2, type: :string) - field(:ref, 3, type: :string) + field :project_id, 1, type: :string, json_name: "projectId" + field :path, 2, type: :string + field :ref, 3, type: :string end defmodule InternalApi.RepositoryIntegrator.GetFileRequest do @@ -83,9 +81,9 @@ defmodule InternalApi.RepositoryIntegrator.GetFileRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:project_id, 1, type: :string, json_name: "projectId") - field(:path, 2, type: :string) - field(:ref, 3, type: :string) + field :project_id, 1, type: :string, json_name: "projectId" + field :path, 2, type: :string + field :ref, 3, type: :string end defmodule InternalApi.RepositoryIntegrator.GetFileResponse do @@ -93,7 +91,7 @@ defmodule InternalApi.RepositoryIntegrator.GetFileResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:content, 1, type: :string) + field :content, 1, type: :string end defmodule InternalApi.RepositoryIntegrator.GithubInstallationInfoRequest do @@ -101,7 +99,7 @@ defmodule InternalApi.RepositoryIntegrator.GithubInstallationInfoRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:project_id, 1, type: :string, json_name: "projectId") + field :project_id, 1, type: :string, json_name: "projectId" end defmodule InternalApi.RepositoryIntegrator.GithubInstallationInfoResponse do @@ -109,9 +107,9 @@ defmodule InternalApi.RepositoryIntegrator.GithubInstallationInfoResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:installation_id, 1, type: :int64, json_name: "installationId") - field(:application_url, 2, type: :string, json_name: "applicationUrl") - field(:installation_url, 3, type: :string, json_name: "installationUrl") + field :installation_id, 1, type: :int64, json_name: "installationId" + field :application_url, 2, type: :string, json_name: "applicationUrl" + field :installation_url, 3, type: :string, json_name: "installationUrl" end defmodule InternalApi.RepositoryIntegrator.InitGithubInstallationRequest do @@ -131,13 +129,12 @@ defmodule InternalApi.RepositoryIntegrator.GetRepositoriesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") + field :user_id, 1, type: :string, json_name: "userId" - field(:integration_type, 2, + field :integration_type, 2, type: InternalApi.RepositoryIntegrator.IntegrationType, json_name: "integrationType", enum: true - ) end defmodule InternalApi.RepositoryIntegrator.GetRepositoriesResponse do @@ -145,7 +142,7 @@ defmodule InternalApi.RepositoryIntegrator.GetRepositoriesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:repositories, 1, repeated: true, type: InternalApi.RepositoryIntegrator.Repository) + field :repositories, 1, repeated: true, type: InternalApi.RepositoryIntegrator.Repository end defmodule InternalApi.RepositoryIntegrator.Repository do @@ -153,11 +150,11 @@ defmodule InternalApi.RepositoryIntegrator.Repository do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:addable, 1, type: :bool) - field(:name, 2, type: :string) - field(:full_name, 4, type: :string, json_name: "fullName") - field(:url, 3, type: :string) - field(:description, 5, type: :string) + field :addable, 1, type: :bool + field :name, 2, type: :string + field :full_name, 4, type: :string, json_name: "fullName" + field :url, 3, type: :string + field :description, 5, type: :string end defmodule InternalApi.RepositoryIntegrator.RepositoryIntegratorService.Service do @@ -167,51 +164,37 @@ defmodule InternalApi.RepositoryIntegrator.RepositoryIntegratorService.Service d name: "InternalApi.RepositoryIntegrator.RepositoryIntegratorService", protoc_gen_elixir_version: "0.13.0" - rpc( - :GetToken, - InternalApi.RepositoryIntegrator.GetTokenRequest, - InternalApi.RepositoryIntegrator.GetTokenResponse - ) - - rpc( - :CheckToken, - InternalApi.RepositoryIntegrator.CheckTokenRequest, - InternalApi.RepositoryIntegrator.CheckTokenResponse - ) - - rpc( - :PreheatFileCache, - InternalApi.RepositoryIntegrator.PreheatFileCacheRequest, - Google.Protobuf.Empty - ) - - rpc( - :GetFile, - InternalApi.RepositoryIntegrator.GetFileRequest, - InternalApi.RepositoryIntegrator.GetFileResponse - ) - - rpc( - :GithubInstallationInfo, - InternalApi.RepositoryIntegrator.GithubInstallationInfoRequest, - InternalApi.RepositoryIntegrator.GithubInstallationInfoResponse - ) - - rpc( - :InitGithubInstallation, - InternalApi.RepositoryIntegrator.InitGithubInstallationRequest, - InternalApi.RepositoryIntegrator.InitGithubInstallationResponse - ) - - rpc( - :GetRepositories, - InternalApi.RepositoryIntegrator.GetRepositoriesRequest, - InternalApi.RepositoryIntegrator.GetRepositoriesResponse - ) + rpc :GetToken, + InternalApi.RepositoryIntegrator.GetTokenRequest, + InternalApi.RepositoryIntegrator.GetTokenResponse + + rpc :CheckToken, + InternalApi.RepositoryIntegrator.CheckTokenRequest, + InternalApi.RepositoryIntegrator.CheckTokenResponse + + rpc :PreheatFileCache, + InternalApi.RepositoryIntegrator.PreheatFileCacheRequest, + Google.Protobuf.Empty + + rpc :GetFile, + InternalApi.RepositoryIntegrator.GetFileRequest, + InternalApi.RepositoryIntegrator.GetFileResponse + + rpc :GithubInstallationInfo, + InternalApi.RepositoryIntegrator.GithubInstallationInfoRequest, + InternalApi.RepositoryIntegrator.GithubInstallationInfoResponse + + rpc :InitGithubInstallation, + InternalApi.RepositoryIntegrator.InitGithubInstallationRequest, + InternalApi.RepositoryIntegrator.InitGithubInstallationResponse + + rpc :GetRepositories, + InternalApi.RepositoryIntegrator.GetRepositoriesRequest, + InternalApi.RepositoryIntegrator.GetRepositoriesResponse end defmodule InternalApi.RepositoryIntegrator.RepositoryIntegratorService.Stub do @moduledoc false use GRPC.Stub, service: InternalApi.RepositoryIntegrator.RepositoryIntegratorService.Service -end +end \ No newline at end of file diff --git a/rbac/ce/lib/internal_api/user.pb.ex b/rbac/ce/lib/internal_api/user.pb.ex index 7122a02c3..7ff2ad76d 100644 --- a/rbac/ce/lib/internal_api/user.pb.ex +++ b/rbac/ce/lib/internal_api/user.pb.ex @@ -3,8 +3,8 @@ defmodule InternalApi.User.Favorite.Kind do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:PROJECT, 0) - field(:DASHBOARD, 1) + field :PROJECT, 0 + field :DASHBOARD, 1 end defmodule InternalApi.User.DescribeResponse.RepoScope do @@ -12,9 +12,9 @@ defmodule InternalApi.User.DescribeResponse.RepoScope do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:NONE, 0) - field(:PUBLIC, 1) - field(:PRIVATE, 2) + field :NONE, 0 + field :PUBLIC, 1 + field :PRIVATE, 2 end defmodule InternalApi.User.RepositoryProvider.Type do @@ -22,9 +22,9 @@ defmodule InternalApi.User.RepositoryProvider.Type do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:GITHUB, 0) - field(:BITBUCKET, 1) - field(:GITLAB, 2) + field :GITHUB, 0 + field :BITBUCKET, 1 + field :GITLAB, 2 end defmodule InternalApi.User.RepositoryProvider.Scope do @@ -32,10 +32,10 @@ defmodule InternalApi.User.RepositoryProvider.Scope do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:NONE, 0) - field(:EMAIL, 1) - field(:PUBLIC, 2) - field(:PRIVATE, 3) + field :NONE, 0 + field :EMAIL, 1 + field :PUBLIC, 2 + field :PRIVATE, 3 end defmodule InternalApi.User.RepositoryScopes.RepositoryScope.Scope do @@ -43,10 +43,10 @@ defmodule InternalApi.User.RepositoryScopes.RepositoryScope.Scope do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:NONE, 0) - field(:EMAIL, 1) - field(:PUBLIC, 2) - field(:PRIVATE, 3) + field :NONE, 0 + field :EMAIL, 1 + field :PUBLIC, 2 + field :PRIVATE, 3 end defmodule InternalApi.User.User.CreationSource do @@ -54,9 +54,9 @@ defmodule InternalApi.User.User.CreationSource do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:NOT_SET, 0) - field(:OKTA, 1) - field(:SERVICE_ACCOUNT, 2) + field :NOT_SET, 0 + field :OKTA, 1 + field :SERVICE_ACCOUNT, 2 end defmodule InternalApi.User.ListFavoritesRequest do @@ -64,8 +64,8 @@ defmodule InternalApi.User.ListFavoritesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:organization_id, 2, type: :string, json_name: "organizationId") + field :user_id, 1, type: :string, json_name: "userId" + field :organization_id, 2, type: :string, json_name: "organizationId" end defmodule InternalApi.User.ListFavoritesResponse do @@ -73,7 +73,7 @@ defmodule InternalApi.User.ListFavoritesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:favorites, 1, repeated: true, type: InternalApi.User.Favorite) + field :favorites, 1, repeated: true, type: InternalApi.User.Favorite end defmodule InternalApi.User.Favorite do @@ -81,10 +81,10 @@ defmodule InternalApi.User.Favorite do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:organization_id, 2, type: :string, json_name: "organizationId") - field(:favorite_id, 3, type: :string, json_name: "favoriteId") - field(:kind, 4, type: InternalApi.User.Favorite.Kind, enum: true) + field :user_id, 1, type: :string, json_name: "userId" + field :organization_id, 2, type: :string, json_name: "organizationId" + field :favorite_id, 3, type: :string, json_name: "favoriteId" + field :kind, 4, type: InternalApi.User.Favorite.Kind, enum: true end defmodule InternalApi.User.DescribeManyRequest do @@ -92,7 +92,7 @@ defmodule InternalApi.User.DescribeManyRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_ids, 1, repeated: true, type: :string, json_name: "userIds") + field :user_ids, 1, repeated: true, type: :string, json_name: "userIds" end defmodule InternalApi.User.DescribeManyResponse do @@ -100,8 +100,8 @@ defmodule InternalApi.User.DescribeManyResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:users, 1, repeated: true, type: InternalApi.User.User) - field(:status, 2, type: InternalApi.ResponseStatus) + field :users, 1, repeated: true, type: InternalApi.User.User + field :status, 2, type: InternalApi.ResponseStatus end defmodule InternalApi.User.DescribeRequest do @@ -109,7 +109,7 @@ defmodule InternalApi.User.DescribeRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 2, type: :string, json_name: "userId") + field :user_id, 2, type: :string, json_name: "userId" end defmodule InternalApi.User.DescribeResponse do @@ -117,37 +117,34 @@ defmodule InternalApi.User.DescribeResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: InternalApi.ResponseStatus) - field(:email, 3, type: :string) - field(:created_at, 4, type: Google.Protobuf.Timestamp, json_name: "createdAt") - field(:avatar_url, 5, type: :string, json_name: "avatarUrl") - field(:user_id, 6, type: :string, json_name: "userId") - field(:github_token, 7, type: :string, json_name: "githubToken") + field :status, 1, type: InternalApi.ResponseStatus + field :email, 3, type: :string + field :created_at, 4, type: Google.Protobuf.Timestamp, json_name: "createdAt" + field :avatar_url, 5, type: :string, json_name: "avatarUrl" + field :user_id, 6, type: :string, json_name: "userId" + field :github_token, 7, type: :string, json_name: "githubToken" - field(:github_scope, 12, + field :github_scope, 12, type: InternalApi.User.DescribeResponse.RepoScope, json_name: "githubScope", enum: true - ) - field(:github_uid, 8, type: :string, json_name: "githubUid") - field(:name, 10, type: :string) - field(:github_login, 11, type: :string, json_name: "githubLogin") - field(:company, 13, type: :string) - field(:blocked_at, 14, type: Google.Protobuf.Timestamp, json_name: "blockedAt") + field :github_uid, 8, type: :string, json_name: "githubUid" + field :name, 10, type: :string + field :github_login, 11, type: :string, json_name: "githubLogin" + field :company, 13, type: :string + field :blocked_at, 14, type: Google.Protobuf.Timestamp, json_name: "blockedAt" - field(:repository_scopes, 15, + field :repository_scopes, 15, type: InternalApi.User.RepositoryScopes, json_name: "repositoryScopes" - ) - field(:repository_providers, 16, + field :repository_providers, 16, repeated: true, type: InternalApi.User.RepositoryProvider, json_name: "repositoryProviders" - ) - field(:user, 17, type: InternalApi.User.User) + field :user, 17, type: InternalApi.User.User end defmodule InternalApi.User.RepositoryProvider do @@ -155,10 +152,10 @@ defmodule InternalApi.User.RepositoryProvider do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:type, 1, type: InternalApi.User.RepositoryProvider.Type, enum: true) - field(:scope, 2, type: InternalApi.User.RepositoryProvider.Scope, enum: true) - field(:login, 3, type: :string) - field(:uid, 4, type: :string) + field :type, 1, type: InternalApi.User.RepositoryProvider.Type, enum: true + field :scope, 2, type: InternalApi.User.RepositoryProvider.Scope, enum: true + field :login, 3, type: :string + field :uid, 4, type: :string end defmodule InternalApi.User.RepositoryScopes.RepositoryScope do @@ -166,9 +163,9 @@ defmodule InternalApi.User.RepositoryScopes.RepositoryScope do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:scope, 2, type: InternalApi.User.RepositoryScopes.RepositoryScope.Scope, enum: true) - field(:login, 3, type: :string) - field(:uid, 4, type: :string) + field :scope, 2, type: InternalApi.User.RepositoryScopes.RepositoryScope.Scope, enum: true + field :login, 3, type: :string + field :uid, 4, type: :string end defmodule InternalApi.User.RepositoryScopes do @@ -176,8 +173,8 @@ defmodule InternalApi.User.RepositoryScopes do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:github, 1, type: InternalApi.User.RepositoryScopes.RepositoryScope) - field(:bitbucket, 2, type: InternalApi.User.RepositoryScopes.RepositoryScope) + field :github, 1, type: InternalApi.User.RepositoryScopes.RepositoryScope + field :bitbucket, 2, type: InternalApi.User.RepositoryScopes.RepositoryScope end defmodule InternalApi.User.UpdateRequest do @@ -185,7 +182,7 @@ defmodule InternalApi.User.UpdateRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user, 1, type: InternalApi.User.User) + field :user, 1, type: InternalApi.User.User end defmodule InternalApi.User.UpdateResponse do @@ -193,8 +190,8 @@ defmodule InternalApi.User.UpdateResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: Google.Rpc.Status) - field(:user, 2, type: InternalApi.User.User) + field :status, 1, type: Google.Rpc.Status + field :user, 2, type: InternalApi.User.User end defmodule InternalApi.User.SearchUsersRequest do @@ -202,8 +199,8 @@ defmodule InternalApi.User.SearchUsersRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:query, 1, type: :string) - field(:limit, 2, type: :int32) + field :query, 1, type: :string + field :limit, 2, type: :int32 end defmodule InternalApi.User.SearchUsersResponse do @@ -211,7 +208,7 @@ defmodule InternalApi.User.SearchUsersResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:users, 1, repeated: true, type: InternalApi.User.User) + field :users, 1, repeated: true, type: InternalApi.User.User end defmodule InternalApi.User.DeleteWithOwnedOrgsRequest do @@ -219,7 +216,7 @@ defmodule InternalApi.User.DeleteWithOwnedOrgsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") + field :user_id, 1, type: :string, json_name: "userId" end defmodule InternalApi.User.RegenerateTokenRequest do @@ -227,7 +224,7 @@ defmodule InternalApi.User.RegenerateTokenRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") + field :user_id, 1, type: :string, json_name: "userId" end defmodule InternalApi.User.RegenerateTokenResponse do @@ -235,8 +232,8 @@ defmodule InternalApi.User.RegenerateTokenResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:status, 1, type: Google.Rpc.Status) - field(:api_token, 3, type: :string, json_name: "apiToken") + field :status, 1, type: Google.Rpc.Status + field :api_token, 3, type: :string, json_name: "apiToken" end defmodule InternalApi.User.CheckGithubTokenRequest do @@ -244,7 +241,7 @@ defmodule InternalApi.User.CheckGithubTokenRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") + field :user_id, 1, type: :string, json_name: "userId" end defmodule InternalApi.User.CheckGithubTokenResponse do @@ -252,9 +249,9 @@ defmodule InternalApi.User.CheckGithubTokenResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:revoked, 1, type: :bool) - field(:repo, 2, type: :bool) - field(:public_repo, 3, type: :bool, json_name: "publicRepo") + field :revoked, 1, type: :bool + field :repo, 2, type: :bool + field :public_repo, 3, type: :bool, json_name: "publicRepo" end defmodule InternalApi.User.BlockAccountRequest do @@ -262,7 +259,7 @@ defmodule InternalApi.User.BlockAccountRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") + field :user_id, 1, type: :string, json_name: "userId" end defmodule InternalApi.User.UnblockAccountRequest do @@ -270,7 +267,7 @@ defmodule InternalApi.User.UnblockAccountRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") + field :user_id, 1, type: :string, json_name: "userId" end defmodule InternalApi.User.GetRepositoryTokenRequest do @@ -278,13 +275,12 @@ defmodule InternalApi.User.GetRepositoryTokenRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") + field :user_id, 1, type: :string, json_name: "userId" - field(:integration_type, 2, + field :integration_type, 2, type: InternalApi.RepositoryIntegrator.IntegrationType, json_name: "integrationType", enum: true - ) end defmodule InternalApi.User.GetRepositoryTokenResponse do @@ -292,8 +288,8 @@ defmodule InternalApi.User.GetRepositoryTokenResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:token, 1, type: :string) - field(:expires_at, 2, type: Google.Protobuf.Timestamp, json_name: "expiresAt") + field :token, 1, type: :string + field :expires_at, 2, type: Google.Protobuf.Timestamp, json_name: "expiresAt" end defmodule InternalApi.User.DescribeByRepositoryProviderRequest do @@ -301,7 +297,7 @@ defmodule InternalApi.User.DescribeByRepositoryProviderRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:provider, 1, type: InternalApi.User.RepositoryProvider) + field :provider, 1, type: InternalApi.User.RepositoryProvider end defmodule InternalApi.User.DescribeByEmailRequest do @@ -309,7 +305,7 @@ defmodule InternalApi.User.DescribeByEmailRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:email, 1, type: :string) + field :email, 1, type: :string end defmodule InternalApi.User.RefreshRepositoryProviderRequest do @@ -317,8 +313,8 @@ defmodule InternalApi.User.RefreshRepositoryProviderRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:type, 2, type: InternalApi.User.RepositoryProvider.Type, enum: true) + field :user_id, 1, type: :string, json_name: "userId" + field :type, 2, type: InternalApi.User.RepositoryProvider.Type, enum: true end defmodule InternalApi.User.RefreshRepositoryProviderResponse do @@ -326,12 +322,11 @@ defmodule InternalApi.User.RefreshRepositoryProviderResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") + field :user_id, 1, type: :string, json_name: "userId" - field(:repository_provider, 2, + field :repository_provider, 2, type: InternalApi.User.RepositoryProvider, json_name: "repositoryProvider" - ) end defmodule InternalApi.User.CreateRequest do @@ -339,17 +334,16 @@ defmodule InternalApi.User.CreateRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:email, 1, type: :string) - field(:name, 2, type: :string) - field(:password, 3, type: :string) + field :email, 1, type: :string + field :name, 2, type: :string + field :password, 3, type: :string - field(:repository_providers, 4, + field :repository_providers, 4, repeated: true, type: InternalApi.User.RepositoryProvider, json_name: "repositoryProviders" - ) - field(:skip_password_change, 5, type: :bool, json_name: "skipPasswordChange") + field :skip_password_change, 5, type: :bool, json_name: "skipPasswordChange" end defmodule InternalApi.User.User do @@ -357,33 +351,31 @@ defmodule InternalApi.User.User do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:id, 1, type: :string) - field(:avatar_url, 3, type: :string, json_name: "avatarUrl") - field(:github_uid, 4, type: :string, json_name: "githubUid") - field(:name, 5, type: :string) - field(:github_login, 7, type: :string, json_name: "githubLogin") - field(:company, 8, type: :string) - field(:email, 9, type: :string) - field(:blocked_at, 10, type: Google.Protobuf.Timestamp, json_name: "blockedAt") - field(:created_at, 11, type: Google.Protobuf.Timestamp, json_name: "createdAt") + field :id, 1, type: :string + field :avatar_url, 3, type: :string, json_name: "avatarUrl" + field :github_uid, 4, type: :string, json_name: "githubUid" + field :name, 5, type: :string + field :github_login, 7, type: :string, json_name: "githubLogin" + field :company, 8, type: :string + field :email, 9, type: :string + field :blocked_at, 10, type: Google.Protobuf.Timestamp, json_name: "blockedAt" + field :created_at, 11, type: Google.Protobuf.Timestamp, json_name: "createdAt" - field(:repository_providers, 12, + field :repository_providers, 12, repeated: true, type: InternalApi.User.RepositoryProvider, json_name: "repositoryProviders" - ) - field(:visited_at, 13, type: Google.Protobuf.Timestamp, json_name: "visitedAt") - field(:single_org_user, 14, type: :bool, json_name: "singleOrgUser") - field(:org_id, 15, type: :string, json_name: "orgId") + field :visited_at, 13, type: Google.Protobuf.Timestamp, json_name: "visitedAt" + field :single_org_user, 14, type: :bool, json_name: "singleOrgUser" + field :org_id, 15, type: :string, json_name: "orgId" - field(:creation_source, 16, + field :creation_source, 16, type: InternalApi.User.User.CreationSource, json_name: "creationSource", enum: true - ) - field(:deactivated, 17, type: :bool) + field :deactivated, 17, type: :bool end defmodule InternalApi.User.UserCreated do @@ -391,9 +383,9 @@ defmodule InternalApi.User.UserCreated do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:timestamp, 2, type: Google.Protobuf.Timestamp) - field(:invited, 3, type: :bool) + field :user_id, 1, type: :string, json_name: "userId" + field :timestamp, 2, type: Google.Protobuf.Timestamp + field :invited, 3, type: :bool end defmodule InternalApi.User.UserDeleted do @@ -401,8 +393,8 @@ defmodule InternalApi.User.UserDeleted do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:timestamp, 2, type: Google.Protobuf.Timestamp) + field :user_id, 1, type: :string, json_name: "userId" + field :timestamp, 2, type: Google.Protobuf.Timestamp end defmodule InternalApi.User.UserUpdated do @@ -410,8 +402,8 @@ defmodule InternalApi.User.UserUpdated do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:timestamp, 2, type: Google.Protobuf.Timestamp) + field :user_id, 1, type: :string, json_name: "userId" + field :timestamp, 2, type: Google.Protobuf.Timestamp end defmodule InternalApi.User.UserJoinedOrganization do @@ -419,9 +411,9 @@ defmodule InternalApi.User.UserJoinedOrganization do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:org_id, 2, type: :string, json_name: "orgId") - field(:timestamp, 3, type: Google.Protobuf.Timestamp) + field :user_id, 1, type: :string, json_name: "userId" + field :org_id, 2, type: :string, json_name: "orgId" + field :timestamp, 3, type: Google.Protobuf.Timestamp end defmodule InternalApi.User.UserLeftOrganization do @@ -429,9 +421,9 @@ defmodule InternalApi.User.UserLeftOrganization do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:org_id, 2, type: :string, json_name: "orgId") - field(:timestamp, 3, type: Google.Protobuf.Timestamp) + field :user_id, 1, type: :string, json_name: "userId" + field :org_id, 2, type: :string, json_name: "orgId" + field :timestamp, 3, type: Google.Protobuf.Timestamp end defmodule InternalApi.User.MemberInvited do @@ -439,9 +431,9 @@ defmodule InternalApi.User.MemberInvited do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:github_username, 1, type: :string, json_name: "githubUsername") - field(:org_id, 2, type: :string, json_name: "orgId") - field(:timestamp, 3, type: Google.Protobuf.Timestamp) + field :github_username, 1, type: :string, json_name: "githubUsername" + field :org_id, 2, type: :string, json_name: "orgId" + field :timestamp, 3, type: Google.Protobuf.Timestamp end defmodule InternalApi.User.ActiveOwner do @@ -449,8 +441,8 @@ defmodule InternalApi.User.ActiveOwner do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:timestamp, 3, type: Google.Protobuf.Timestamp) + field :user_id, 1, type: :string, json_name: "userId" + field :timestamp, 3, type: Google.Protobuf.Timestamp end defmodule InternalApi.User.InactiveOwner do @@ -458,8 +450,8 @@ defmodule InternalApi.User.InactiveOwner do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:timestamp, 3, type: Google.Protobuf.Timestamp) + field :user_id, 1, type: :string, json_name: "userId" + field :timestamp, 3, type: Google.Protobuf.Timestamp end defmodule InternalApi.User.WorkEmailAdded do @@ -467,10 +459,10 @@ defmodule InternalApi.User.WorkEmailAdded do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:user_id, 1, type: :string, json_name: "userId") - field(:timestamp, 2, type: Google.Protobuf.Timestamp) - field(:old_email, 3, type: :string, json_name: "oldEmail") - field(:new_email, 4, type: :string, json_name: "newEmail") + field :user_id, 1, type: :string, json_name: "userId" + field :timestamp, 2, type: Google.Protobuf.Timestamp + field :old_email, 3, type: :string, json_name: "oldEmail" + field :new_email, 4, type: :string, json_name: "newEmail" end defmodule InternalApi.User.FavoriteCreated do @@ -478,8 +470,8 @@ defmodule InternalApi.User.FavoriteCreated do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:favorite, 1, type: InternalApi.User.Favorite) - field(:timestamp, 2, type: Google.Protobuf.Timestamp) + field :favorite, 1, type: InternalApi.User.Favorite + field :timestamp, 2, type: Google.Protobuf.Timestamp end defmodule InternalApi.User.FavoriteDeleted do @@ -487,8 +479,8 @@ defmodule InternalApi.User.FavoriteDeleted do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field(:favorite, 1, type: InternalApi.User.Favorite) - field(:timestamp, 2, type: Google.Protobuf.Timestamp) + field :favorite, 1, type: InternalApi.User.Favorite + field :timestamp, 2, type: Google.Protobuf.Timestamp end defmodule InternalApi.User.UserService.Service do @@ -496,67 +488,55 @@ defmodule InternalApi.User.UserService.Service do use GRPC.Service, name: "InternalApi.User.UserService", protoc_gen_elixir_version: "0.13.0" - rpc(:Describe, InternalApi.User.DescribeRequest, InternalApi.User.DescribeResponse) + rpc :Describe, InternalApi.User.DescribeRequest, InternalApi.User.DescribeResponse - rpc( - :DescribeByRepositoryProvider, - InternalApi.User.DescribeByRepositoryProviderRequest, - InternalApi.User.User - ) + rpc :DescribeByRepositoryProvider, + InternalApi.User.DescribeByRepositoryProviderRequest, + InternalApi.User.User - rpc(:DescribeByEmail, InternalApi.User.DescribeByEmailRequest, InternalApi.User.User) + rpc :DescribeByEmail, InternalApi.User.DescribeByEmailRequest, InternalApi.User.User - rpc(:SearchUsers, InternalApi.User.SearchUsersRequest, InternalApi.User.SearchUsersResponse) + rpc :SearchUsers, InternalApi.User.SearchUsersRequest, InternalApi.User.SearchUsersResponse - rpc(:DescribeMany, InternalApi.User.DescribeManyRequest, InternalApi.User.DescribeManyResponse) + rpc :DescribeMany, InternalApi.User.DescribeManyRequest, InternalApi.User.DescribeManyResponse - rpc(:Update, InternalApi.User.UpdateRequest, InternalApi.User.UpdateResponse) + rpc :Update, InternalApi.User.UpdateRequest, InternalApi.User.UpdateResponse - rpc(:DeleteWithOwnedOrgs, InternalApi.User.DeleteWithOwnedOrgsRequest, InternalApi.User.User) + rpc :DeleteWithOwnedOrgs, InternalApi.User.DeleteWithOwnedOrgsRequest, InternalApi.User.User - rpc( - :RegenerateToken, - InternalApi.User.RegenerateTokenRequest, - InternalApi.User.RegenerateTokenResponse - ) + rpc :RegenerateToken, + InternalApi.User.RegenerateTokenRequest, + InternalApi.User.RegenerateTokenResponse - rpc( - :ListFavorites, - InternalApi.User.ListFavoritesRequest, - InternalApi.User.ListFavoritesResponse - ) + rpc :ListFavorites, + InternalApi.User.ListFavoritesRequest, + InternalApi.User.ListFavoritesResponse - rpc(:CreateFavorite, InternalApi.User.Favorite, InternalApi.User.Favorite) + rpc :CreateFavorite, InternalApi.User.Favorite, InternalApi.User.Favorite - rpc(:DeleteFavorite, InternalApi.User.Favorite, InternalApi.User.Favorite) + rpc :DeleteFavorite, InternalApi.User.Favorite, InternalApi.User.Favorite - rpc( - :CheckGithubToken, - InternalApi.User.CheckGithubTokenRequest, - InternalApi.User.CheckGithubTokenResponse - ) + rpc :CheckGithubToken, + InternalApi.User.CheckGithubTokenRequest, + InternalApi.User.CheckGithubTokenResponse - rpc(:BlockAccount, InternalApi.User.BlockAccountRequest, InternalApi.User.User) + rpc :BlockAccount, InternalApi.User.BlockAccountRequest, InternalApi.User.User - rpc(:UnblockAccount, InternalApi.User.UnblockAccountRequest, InternalApi.User.User) + rpc :UnblockAccount, InternalApi.User.UnblockAccountRequest, InternalApi.User.User - rpc( - :GetRepositoryToken, - InternalApi.User.GetRepositoryTokenRequest, - InternalApi.User.GetRepositoryTokenResponse - ) + rpc :GetRepositoryToken, + InternalApi.User.GetRepositoryTokenRequest, + InternalApi.User.GetRepositoryTokenResponse - rpc( - :RefreshRepositoryProvider, - InternalApi.User.RefreshRepositoryProviderRequest, - InternalApi.User.RefreshRepositoryProviderResponse - ) + rpc :RefreshRepositoryProvider, + InternalApi.User.RefreshRepositoryProviderRequest, + InternalApi.User.RefreshRepositoryProviderResponse - rpc(:Create, InternalApi.User.CreateRequest, InternalApi.User.User) + rpc :Create, InternalApi.User.CreateRequest, InternalApi.User.User end defmodule InternalApi.User.UserService.Stub do @moduledoc false use GRPC.Stub, service: InternalApi.User.UserService.Service -end +end \ No newline at end of file diff --git a/rbac/ce/lib/rbac/grpc_servers/rbac_server.ex b/rbac/ce/lib/rbac/grpc_servers/rbac_server.ex index 67422ba3b..a09b8e829 100644 --- a/rbac/ce/lib/rbac/grpc_servers/rbac_server.ex +++ b/rbac/ce/lib/rbac/grpc_servers/rbac_server.ex @@ -261,6 +261,21 @@ defmodule Rbac.GrpcServers.RbacServer do end) end + @spec list_subjects(RBAC.ListSubjectsRequest.t(), GRPC.Server.Stream.t()) :: + RBAC.ListSubjectsResponse.t() + def list_subjects(%RBAC.ListSubjectsRequest{} = req, _stream) do + Log.observe("grpc.rbac.list_subjects", fn -> + validate_uuid!(req.org_id) + + role_assignments = RoleAssignment.find_by_ids_and_org(req.subject_ids, req.org_id) + display_names_by_id = fetch_display_names(role_assignments) + + %RBAC.ListSubjectsResponse{ + subjects: Enum.map(role_assignments, &construct_grpc_subject(&1, display_names_by_id)) + } + end) + end + # ---------------- # Helper functions # ---------------- @@ -539,4 +554,14 @@ defmodule Rbac.GrpcServers.RbacServer do _ -> "user" end end + + defp construct_grpc_subject(assignment, display_names_by_id) do + subject_type = assignment.subject_type |> String.upcase() |> String.to_existing_atom() + + %RBAC.Subject{ + subject_type: subject_type, + subject_id: assignment.user_id, + display_name: display_names_by_id[assignment.user_id] || "" + } + end end diff --git a/rbac/ce/lib/rbac/models/role_assignment.ex b/rbac/ce/lib/rbac/models/role_assignment.ex index 4ff5b1aac..989a698c0 100644 --- a/rbac/ce/lib/rbac/models/role_assignment.ex +++ b/rbac/ce/lib/rbac/models/role_assignment.ex @@ -73,6 +73,18 @@ defmodule Rbac.Models.RoleAssignment do |> Repo.all() end + @doc """ + Finds role assignments by subject IDs and organization ID. + Returns distinct assignments filtered by org_id. + """ + def find_by_ids_and_org(subject_ids, org_id) do + from(r in __MODULE__, + where: r.user_id in ^subject_ids and r.org_id == ^org_id, + distinct: r.user_id + ) + |> Repo.all() + end + @doc """ Get user ids that are owner or admin in the given organization """ diff --git a/rbac/ce/test/rbac/grpc_servers/rbac_server_test.exs b/rbac/ce/test/rbac/grpc_servers/rbac_server_test.exs index 719250b84..064da1794 100644 --- a/rbac/ce/test/rbac/grpc_servers/rbac_server_test.exs +++ b/rbac/ce/test/rbac/grpc_servers/rbac_server_test.exs @@ -1141,6 +1141,137 @@ defmodule Rbac.GrpcServers.RbacServerTest do end end + describe "list_subjects/2" do + test "invalid org_id returns error", %{channel: channel} do + request = %InternalApi.RBAC.ListSubjectsRequest{ + org_id: "invalid-uuid", + subject_ids: [] + } + + {:error, grpc_error} = Stub.list_subjects(channel, request) + assert grpc_error.message =~ "Invalid uuid" + end + + test "returns subjects that are part of the organization", %{channel: channel} do + org_id = Ecto.UUID.generate() + user1_id = Ecto.UUID.generate() + user2_id = Ecto.UUID.generate() + user3_id = Ecto.UUID.generate() + + Rbac.Support.RoleAssignmentsFixtures.role_assignment_fixture(%{ + user_id: user1_id, + role_id: Rbac.Roles.Admin.role().id, + org_id: org_id + }) + + Rbac.Support.RoleAssignmentsFixtures.role_assignment_fixture(%{ + user_id: user2_id, + role_id: Rbac.Roles.Member.role().id, + org_id: org_id + }) + + GrpcMock.stub(UserMock, :describe_many, fn _request, _ -> + %InternalApi.User.DescribeManyResponse{ + users: [ + %InternalApi.User.User{id: user1_id, name: "User One"}, + %InternalApi.User.User{id: user2_id, name: "User Two"} + ] + } + end) + + request = %InternalApi.RBAC.ListSubjectsRequest{ + org_id: org_id, + subject_ids: [user1_id, user2_id, user3_id] + } + + {:ok, response} = Stub.list_subjects(channel, request) + + assert length(response.subjects) == 2 + subject_ids = Enum.map(response.subjects, & &1.subject_id) + assert user1_id in subject_ids + assert user2_id in subject_ids + refute user3_id in subject_ids + end + + test "returns empty list when no subjects match", %{channel: channel} do + org_id = Ecto.UUID.generate() + user_id = Ecto.UUID.generate() + + request = %InternalApi.RBAC.ListSubjectsRequest{ + org_id: org_id, + subject_ids: [user_id] + } + + {:ok, response} = Stub.list_subjects(channel, request) + + assert response.subjects == [] + end + + test "returns subjects with correct type and display name", %{channel: channel} do + org_id = Ecto.UUID.generate() + user_id = Ecto.UUID.generate() + + Rbac.Support.RoleAssignmentsFixtures.role_assignment_fixture(%{ + user_id: user_id, + role_id: Rbac.Roles.Admin.role().id, + org_id: org_id + }) + + GrpcMock.stub(UserMock, :describe_many, fn _request, _ -> + %InternalApi.User.DescribeManyResponse{ + users: [%InternalApi.User.User{id: user_id, name: "Test User"}] + } + end) + + request = %InternalApi.RBAC.ListSubjectsRequest{ + org_id: org_id, + subject_ids: [user_id] + } + + {:ok, response} = Stub.list_subjects(channel, request) + + assert length(response.subjects) == 1 + subject = hd(response.subjects) + assert subject.subject_id == user_id + assert subject.display_name == "Test User" + assert subject.subject_type == :USER + end + + test "returns empty list when subject_ids is empty", %{channel: channel} do + org_id = Ecto.UUID.generate() + + request = %InternalApi.RBAC.ListSubjectsRequest{ + org_id: org_id, + subject_ids: [] + } + + {:ok, response} = Stub.list_subjects(channel, request) + + assert response.subjects == [] + end + + test "filters subjects by organization correctly", %{channel: channel} do + org_id = Ecto.UUID.generate() + other_org_id = Ecto.UUID.generate() + user_id = Ecto.UUID.generate() + + Rbac.Support.RoleAssignmentsFixtures.role_assignment_fixture(%{ + user_id: user_id, + role_id: Rbac.Roles.Admin.role().id, + org_id: other_org_id + }) + + request = %InternalApi.RBAC.ListSubjectsRequest{ + org_id: org_id, + subject_ids: [user_id] + } + + {:ok, response} = Stub.list_subjects(channel, request) + + assert response.subjects == [] + end + end + defp setup_assign_and_retract(channel) do alias InternalApi.{User, ResponseStatus} From 9d15018ae58b081de055a6672614d0452b2756e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Kutryj?= Date: Wed, 1 Oct 2025 13:34:18 +0200 Subject: [PATCH 2/2] toil(rbac): code formatting --- rbac/ce/lib/internal_api/feature.pb.ex | 114 ++-- rbac/ce/lib/internal_api/guard.pb.ex | 363 ++++++----- rbac/ce/lib/internal_api/health.pb.ex | 18 +- .../include/google/protobuf/timestamp.pb.ex | 6 +- .../include/google/rpc/code.pb.ex | 36 +- .../include/google/rpc/status.pb.ex | 8 +- .../internal_api/response_status.pb.ex | 10 +- rbac/ce/lib/internal_api/organization.pb.ex | 478 ++++++++------- rbac/ce/lib/internal_api/projecthub.pb.ex | 580 +++++++++--------- rbac/ce/lib/internal_api/rbac.pb.ex | 259 ++++---- .../internal_api/repository_integrator.pb.ex | 145 +++-- rbac/ce/lib/internal_api/user.pb.ex | 336 +++++----- 12 files changed, 1255 insertions(+), 1098 deletions(-) diff --git a/rbac/ce/lib/internal_api/feature.pb.ex b/rbac/ce/lib/internal_api/feature.pb.ex index 2613ad9e6..1c4981d49 100644 --- a/rbac/ce/lib/internal_api/feature.pb.ex +++ b/rbac/ce/lib/internal_api/feature.pb.ex @@ -3,8 +3,8 @@ defmodule InternalApi.Feature.Machine.Platform do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :LINUX, 0 - field :MAC, 1 + field(:LINUX, 0) + field(:MAC, 1) end defmodule InternalApi.Feature.Availability.State do @@ -12,9 +12,9 @@ defmodule InternalApi.Feature.Availability.State do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :HIDDEN, 0 - field :ZERO_STATE, 1 - field :ENABLED, 2 + field(:HIDDEN, 0) + field(:ZERO_STATE, 1) + field(:ENABLED, 2) end defmodule InternalApi.Feature.ListOrganizationFeaturesRequest do @@ -22,7 +22,7 @@ defmodule InternalApi.Feature.ListOrganizationFeaturesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" + field(:org_id, 1, type: :string, json_name: "orgId") end defmodule InternalApi.Feature.ListOrganizationFeaturesResponse do @@ -30,10 +30,11 @@ defmodule InternalApi.Feature.ListOrganizationFeaturesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :organization_features, 1, + field(:organization_features, 1, repeated: true, type: InternalApi.Feature.OrganizationFeature, json_name: "organizationFeatures" + ) end defmodule InternalApi.Feature.OrganizationFeature do @@ -41,12 +42,12 @@ defmodule InternalApi.Feature.OrganizationFeature do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :feature, 1, type: InternalApi.Feature.Feature - field :availability, 2, type: InternalApi.Feature.Availability - field :project_ids, 3, repeated: true, type: :string, json_name: "projectIds" - field :requester_id, 5, type: :string, json_name: "requesterId" - field :created_at, 6, type: Google.Protobuf.Timestamp, json_name: "createdAt" - field :updated_at, 7, type: Google.Protobuf.Timestamp, json_name: "updatedAt" + field(:feature, 1, type: InternalApi.Feature.Feature) + field(:availability, 2, type: InternalApi.Feature.Availability) + field(:project_ids, 3, repeated: true, type: :string, json_name: "projectIds") + field(:requester_id, 5, type: :string, json_name: "requesterId") + field(:created_at, 6, type: Google.Protobuf.Timestamp, json_name: "createdAt") + field(:updated_at, 7, type: Google.Protobuf.Timestamp, json_name: "updatedAt") end defmodule InternalApi.Feature.ListFeaturesRequest do @@ -60,7 +61,7 @@ defmodule InternalApi.Feature.ListFeaturesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :features, 1, repeated: true, type: InternalApi.Feature.Feature + field(:features, 1, repeated: true, type: InternalApi.Feature.Feature) end defmodule InternalApi.Feature.Feature do @@ -68,10 +69,10 @@ defmodule InternalApi.Feature.Feature do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :type, 1, type: :string - field :availability, 2, type: InternalApi.Feature.Availability - field :name, 3, type: :string - field :description, 4, type: :string + field(:type, 1, type: :string) + field(:availability, 2, type: InternalApi.Feature.Availability) + field(:name, 3, type: :string) + field(:description, 4, type: :string) end defmodule InternalApi.Feature.ListOrganizationMachinesRequest do @@ -79,7 +80,7 @@ defmodule InternalApi.Feature.ListOrganizationMachinesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" + field(:org_id, 1, type: :string, json_name: "orgId") end defmodule InternalApi.Feature.ListOrganizationMachinesResponse do @@ -87,12 +88,13 @@ defmodule InternalApi.Feature.ListOrganizationMachinesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :organization_machines, 1, + field(:organization_machines, 1, repeated: true, type: InternalApi.Feature.OrganizationMachine, json_name: "organizationMachines" + ) - field :default_type, 2, type: :string, json_name: "defaultType" + field(:default_type, 2, type: :string, json_name: "defaultType") end defmodule InternalApi.Feature.OrganizationMachine do @@ -100,11 +102,11 @@ defmodule InternalApi.Feature.OrganizationMachine do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :machine, 1, type: InternalApi.Feature.Machine - field :availability, 2, type: InternalApi.Feature.Availability - field :requester_id, 3, type: :string, json_name: "requesterId" - field :created_at, 4, type: Google.Protobuf.Timestamp, json_name: "createdAt" - field :updated_at, 5, type: Google.Protobuf.Timestamp, json_name: "updatedAt" + field(:machine, 1, type: InternalApi.Feature.Machine) + field(:availability, 2, type: InternalApi.Feature.Availability) + field(:requester_id, 3, type: :string, json_name: "requesterId") + field(:created_at, 4, type: Google.Protobuf.Timestamp, json_name: "createdAt") + field(:updated_at, 5, type: Google.Protobuf.Timestamp, json_name: "updatedAt") end defmodule InternalApi.Feature.ListMachinesRequest do @@ -118,7 +120,7 @@ defmodule InternalApi.Feature.ListMachinesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :machines, 1, repeated: true, type: InternalApi.Feature.Machine + field(:machines, 1, repeated: true, type: InternalApi.Feature.Machine) end defmodule InternalApi.Feature.Machine do @@ -126,14 +128,14 @@ defmodule InternalApi.Feature.Machine do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :type, 1, type: :string - field :availability, 2, type: InternalApi.Feature.Availability - field :platform, 3, type: InternalApi.Feature.Machine.Platform, enum: true - field :vcpu, 4, type: :string - field :ram, 5, type: :string - field :disk, 6, type: :string - field :default_os_image, 7, type: :string, json_name: "defaultOsImage" - field :os_images, 8, repeated: true, type: :string, json_name: "osImages" + field(:type, 1, type: :string) + field(:availability, 2, type: InternalApi.Feature.Availability) + field(:platform, 3, type: InternalApi.Feature.Machine.Platform, enum: true) + field(:vcpu, 4, type: :string) + field(:ram, 5, type: :string) + field(:disk, 6, type: :string) + field(:default_os_image, 7, type: :string, json_name: "defaultOsImage") + field(:os_images, 8, repeated: true, type: :string, json_name: "osImages") end defmodule InternalApi.Feature.Availability do @@ -141,8 +143,8 @@ defmodule InternalApi.Feature.Availability do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :state, 1, type: InternalApi.Feature.Availability.State, enum: true - field :quantity, 2, type: :uint32 + field(:state, 1, type: InternalApi.Feature.Availability.State, enum: true) + field(:quantity, 2, type: :uint32) end defmodule InternalApi.Feature.MachinesChanged do @@ -156,7 +158,7 @@ defmodule InternalApi.Feature.OrganizationMachinesChanged do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" + field(:org_id, 1, type: :string, json_name: "orgId") end defmodule InternalApi.Feature.FeaturesChanged do @@ -170,7 +172,7 @@ defmodule InternalApi.Feature.OrganizationFeaturesChanged do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" + field(:org_id, 1, type: :string, json_name: "orgId") end defmodule InternalApi.Feature.FeatureService.Service do @@ -180,25 +182,33 @@ defmodule InternalApi.Feature.FeatureService.Service do name: "InternalApi.Feature.FeatureService", protoc_gen_elixir_version: "0.13.0" - rpc :ListOrganizationFeatures, - InternalApi.Feature.ListOrganizationFeaturesRequest, - InternalApi.Feature.ListOrganizationFeaturesResponse + rpc( + :ListOrganizationFeatures, + InternalApi.Feature.ListOrganizationFeaturesRequest, + InternalApi.Feature.ListOrganizationFeaturesResponse + ) - rpc :ListFeatures, - InternalApi.Feature.ListFeaturesRequest, - InternalApi.Feature.ListFeaturesResponse + rpc( + :ListFeatures, + InternalApi.Feature.ListFeaturesRequest, + InternalApi.Feature.ListFeaturesResponse + ) - rpc :ListOrganizationMachines, - InternalApi.Feature.ListOrganizationMachinesRequest, - InternalApi.Feature.ListOrganizationMachinesResponse + rpc( + :ListOrganizationMachines, + InternalApi.Feature.ListOrganizationMachinesRequest, + InternalApi.Feature.ListOrganizationMachinesResponse + ) - rpc :ListMachines, - InternalApi.Feature.ListMachinesRequest, - InternalApi.Feature.ListMachinesResponse + rpc( + :ListMachines, + InternalApi.Feature.ListMachinesRequest, + InternalApi.Feature.ListMachinesResponse + ) end defmodule InternalApi.Feature.FeatureService.Stub do @moduledoc false use GRPC.Stub, service: InternalApi.Feature.FeatureService.Service -end \ No newline at end of file +end diff --git a/rbac/ce/lib/internal_api/guard.pb.ex b/rbac/ce/lib/internal_api/guard.pb.ex index ea5424ffc..f950ec7ae 100644 --- a/rbac/ce/lib/internal_api/guard.pb.ex +++ b/rbac/ce/lib/internal_api/guard.pb.ex @@ -3,10 +3,10 @@ defmodule InternalApi.Guard.Action do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :CREATE, 0 - field :READ, 1 - field :UPDATE, 2 - field :DELETE, 3 + field(:CREATE, 0) + field(:READ, 1) + field(:UPDATE, 2) + field(:DELETE, 3) end defmodule InternalApi.Guard.Resource.Type do @@ -14,16 +14,16 @@ defmodule InternalApi.Guard.Resource.Type do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :Project, 0 - field :Organization, 1 - field :Secret, 2 - field :Member, 3 - field :Pipeline, 4 - field :Dashboard, 5 - field :Coupon, 6 - field :Periodic, 7 - field :Job, 8 - field :Workflow, 9 + field(:Project, 0) + field(:Organization, 1) + field(:Secret, 2) + field(:Member, 3) + field(:Pipeline, 4) + field(:Dashboard, 5) + field(:Coupon, 6) + field(:Periodic, 7) + field(:Job, 8) + field(:Workflow, 9) end defmodule InternalApi.Guard.Role.Name do @@ -31,8 +31,8 @@ defmodule InternalApi.Guard.Role.Name do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :Admin, 0 - field :Owner, 1 + field(:Admin, 0) + field(:Owner, 1) end defmodule InternalApi.Guard.Operation.Name do @@ -40,29 +40,29 @@ defmodule InternalApi.Guard.Operation.Name do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :ViewOrganizationSettings, 0 - field :ViewProjectSettings, 1 - field :AddProject, 2 - field :DeleteProject, 3 - field :ManagePeople, 4 - field :ManageSecrets, 5 - field :ManageProjectSettings, 6 - field :ManageOrganizationSettings, 7 - field :ViewProjectScheduler, 8 - field :ManageProjectScheduler, 9 - field :ViewProject, 10 - field :ViewSelfHostedAgentTypes, 11 - field :ManageSelfHostedAgentTypes, 12 - field :ManageBilling, 13 - field :ViewBilling, 14 - field :ViewSecretsPolicySettings, 15 - field :ManageSecretsPolicySettings, 16 - field :ViewSecrets, 17 - field :ViewOrganizationIpAllowList, 18 - field :ManageOrganizationIpAllowList, 19 - field :ManageProjectSecrets, 20 - field :ViewDeploymentTargets, 21 - field :ManageDeploymentTargets, 22 + field(:ViewOrganizationSettings, 0) + field(:ViewProjectSettings, 1) + field(:AddProject, 2) + field(:DeleteProject, 3) + field(:ManagePeople, 4) + field(:ManageSecrets, 5) + field(:ManageProjectSettings, 6) + field(:ManageOrganizationSettings, 7) + field(:ViewProjectScheduler, 8) + field(:ManageProjectScheduler, 9) + field(:ViewProject, 10) + field(:ViewSelfHostedAgentTypes, 11) + field(:ManageSelfHostedAgentTypes, 12) + field(:ManageBilling, 13) + field(:ViewBilling, 14) + field(:ViewSecretsPolicySettings, 15) + field(:ManageSecretsPolicySettings, 16) + field(:ViewSecrets, 17) + field(:ViewOrganizationIpAllowList, 18) + field(:ManageOrganizationIpAllowList, 19) + field(:ManageProjectSecrets, 20) + field(:ViewDeploymentTargets, 21) + field(:ManageDeploymentTargets, 22) end defmodule InternalApi.Guard.ChangeEmailRequest do @@ -70,9 +70,9 @@ defmodule InternalApi.Guard.ChangeEmailRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :requester_id, 1, type: :string, json_name: "requesterId" - field :user_id, 2, type: :string, json_name: "userId" - field :email, 3, type: :string + field(:requester_id, 1, type: :string, json_name: "requesterId") + field(:user_id, 2, type: :string, json_name: "userId") + field(:email, 3, type: :string) end defmodule InternalApi.Guard.ChangeEmailResponse do @@ -80,8 +80,8 @@ defmodule InternalApi.Guard.ChangeEmailResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :email, 1, type: :string - field :msg, 2, type: :string + field(:email, 1, type: :string) + field(:msg, 2, type: :string) end defmodule InternalApi.Guard.ResetPasswordRequest do @@ -89,8 +89,8 @@ defmodule InternalApi.Guard.ResetPasswordRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :requester_id, 1, type: :string, json_name: "requesterId" - field :user_id, 2, type: :string, json_name: "userId" + field(:requester_id, 1, type: :string, json_name: "requesterId") + field(:user_id, 2, type: :string, json_name: "userId") end defmodule InternalApi.Guard.ResetPasswordResponse do @@ -98,8 +98,8 @@ defmodule InternalApi.Guard.ResetPasswordResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :password, 1, type: :string - field :msg, 2, type: :string + field(:password, 1, type: :string) + field(:msg, 2, type: :string) end defmodule InternalApi.Guard.CreateMemberRequest do @@ -107,10 +107,10 @@ defmodule InternalApi.Guard.CreateMemberRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :inviter_id, 1, type: :string, json_name: "inviterId" - field :org_id, 2, type: :string, json_name: "orgId" - field :email, 3, type: :string - field :name, 4, type: :string + field(:inviter_id, 1, type: :string, json_name: "inviterId") + field(:org_id, 2, type: :string, json_name: "orgId") + field(:email, 3, type: :string) + field(:name, 4, type: :string) end defmodule InternalApi.Guard.CreateMemberResponse do @@ -118,8 +118,8 @@ defmodule InternalApi.Guard.CreateMemberResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :password, 1, type: :string - field :msg, 2, type: :string + field(:password, 1, type: :string) + field(:msg, 2, type: :string) end defmodule InternalApi.Guard.InviteCollaboratorsRequest do @@ -127,9 +127,9 @@ defmodule InternalApi.Guard.InviteCollaboratorsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :inviter_id, 1, type: :string, json_name: "inviterId" - field :org_id, 2, type: :string, json_name: "orgId" - field :invitees, 3, repeated: true, type: InternalApi.Guard.Invitee + field(:inviter_id, 1, type: :string, json_name: "inviterId") + field(:org_id, 2, type: :string, json_name: "orgId") + field(:invitees, 3, repeated: true, type: InternalApi.Guard.Invitee) end defmodule InternalApi.Guard.InviteCollaboratorsResponse do @@ -137,7 +137,7 @@ defmodule InternalApi.Guard.InviteCollaboratorsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :invitees, 1, repeated: true, type: InternalApi.Guard.Invitee + field(:invitees, 1, repeated: true, type: InternalApi.Guard.Invitee) end defmodule InternalApi.Guard.Invitee do @@ -145,9 +145,9 @@ defmodule InternalApi.Guard.Invitee do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :email, 1, type: :string - field :name, 2, type: :string - field :provider, 3, type: InternalApi.User.RepositoryProvider + field(:email, 1, type: :string) + field(:name, 2, type: :string) + field(:provider, 3, type: InternalApi.User.RepositoryProvider) end defmodule InternalApi.Guard.OrganizationMembersRequest do @@ -155,8 +155,8 @@ defmodule InternalApi.Guard.OrganizationMembersRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :name_contains, 4, type: :string, json_name: "nameContains" + field(:org_id, 1, type: :string, json_name: "orgId") + field(:name_contains, 4, type: :string, json_name: "nameContains") end defmodule InternalApi.Guard.OrganizationMembersResponse do @@ -164,7 +164,7 @@ defmodule InternalApi.Guard.OrganizationMembersResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :members, 1, repeated: true, type: InternalApi.Guard.OrganizationMember + field(:members, 1, repeated: true, type: InternalApi.Guard.OrganizationMember) end defmodule InternalApi.Guard.OrganizationMember do @@ -172,15 +172,16 @@ defmodule InternalApi.Guard.OrganizationMember do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :display_name, 2, type: :string, json_name: "displayName" - field :avatar_url, 3, type: :string, json_name: "avatarUrl" - field :organization_role, 4, type: :string, json_name: "organizationRole" + field(:user_id, 1, type: :string, json_name: "userId") + field(:display_name, 2, type: :string, json_name: "displayName") + field(:avatar_url, 3, type: :string, json_name: "avatarUrl") + field(:organization_role, 4, type: :string, json_name: "organizationRole") - field :repository_providers, 5, + field(:repository_providers, 5, repeated: true, type: InternalApi.User.RepositoryProvider, json_name: "repositoryProviders" + ) end defmodule InternalApi.Guard.ProjectMembersRequest do @@ -188,8 +189,8 @@ defmodule InternalApi.Guard.ProjectMembersRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :project_id, 1, type: :string, json_name: "projectId" - field :name_contains, 4, type: :string, json_name: "nameContains" + field(:project_id, 1, type: :string, json_name: "projectId") + field(:name_contains, 4, type: :string, json_name: "nameContains") end defmodule InternalApi.Guard.ProjectMembersResponse do @@ -197,7 +198,7 @@ defmodule InternalApi.Guard.ProjectMembersResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :members, 1, repeated: true, type: InternalApi.Guard.ProjectMember + field(:members, 1, repeated: true, type: InternalApi.Guard.ProjectMember) end defmodule InternalApi.Guard.ProjectMember do @@ -205,16 +206,17 @@ defmodule InternalApi.Guard.ProjectMember do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :display_name, 2, type: :string, json_name: "displayName" - field :avatar_url, 3, type: :string, json_name: "avatarUrl" - field :organization_role, 4, type: :string, json_name: "organizationRole" - field :project_role, 5, type: :string, json_name: "projectRole" + field(:user_id, 1, type: :string, json_name: "userId") + field(:display_name, 2, type: :string, json_name: "displayName") + field(:avatar_url, 3, type: :string, json_name: "avatarUrl") + field(:organization_role, 4, type: :string, json_name: "organizationRole") + field(:project_role, 5, type: :string, json_name: "projectRole") - field :repository_providers, 6, + field(:repository_providers, 6, repeated: true, type: InternalApi.User.RepositoryProvider, json_name: "repositoryProviders" + ) end defmodule InternalApi.Guard.RepositoryCollaboratorsRequest do @@ -222,8 +224,8 @@ defmodule InternalApi.Guard.RepositoryCollaboratorsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :project_id, 2, type: :string, json_name: "projectId" + field(:org_id, 1, type: :string, json_name: "orgId") + field(:project_id, 2, type: :string, json_name: "projectId") end defmodule InternalApi.Guard.RepositoryCollaboratorsResponse do @@ -231,7 +233,7 @@ defmodule InternalApi.Guard.RepositoryCollaboratorsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :collaborators, 1, repeated: true, type: InternalApi.Guard.RepositoryCollaborator + field(:collaborators, 1, repeated: true, type: InternalApi.Guard.RepositoryCollaborator) end defmodule InternalApi.Guard.RepositoryCollaborator do @@ -239,12 +241,13 @@ defmodule InternalApi.Guard.RepositoryCollaborator do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :display_name, 1, type: :string, json_name: "displayName" - field :avatar_url, 2, type: :string, json_name: "avatarUrl" + field(:display_name, 1, type: :string, json_name: "displayName") + field(:avatar_url, 2, type: :string, json_name: "avatarUrl") - field :repository_provider, 3, + field(:repository_provider, 3, type: InternalApi.User.RepositoryProvider, json_name: "repositoryProvider" + ) end defmodule InternalApi.Guard.InvitationsRequest do @@ -252,7 +255,7 @@ defmodule InternalApi.Guard.InvitationsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" + field(:org_id, 1, type: :string, json_name: "orgId") end defmodule InternalApi.Guard.InvitationsResponse do @@ -260,7 +263,7 @@ defmodule InternalApi.Guard.InvitationsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :invitations, 1, repeated: true, type: InternalApi.Guard.Invitation + field(:invitations, 1, repeated: true, type: InternalApi.Guard.Invitation) end defmodule InternalApi.Guard.Invitation do @@ -268,10 +271,10 @@ defmodule InternalApi.Guard.Invitation do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :id, 1, type: :string - field :invited_at, 2, type: Google.Protobuf.Timestamp, json_name: "invitedAt" - field :display_name, 3, type: :string, json_name: "displayName" - field :avatar_url, 4, type: :string, json_name: "avatarUrl" + field(:id, 1, type: :string) + field(:invited_at, 2, type: Google.Protobuf.Timestamp, json_name: "invitedAt") + field(:display_name, 3, type: :string, json_name: "displayName") + field(:avatar_url, 4, type: :string, json_name: "avatarUrl") end defmodule InternalApi.Guard.FilterRequest do @@ -279,10 +282,10 @@ defmodule InternalApi.Guard.FilterRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :resources, 1, repeated: true, type: InternalApi.Guard.Resource - field :action, 2, type: InternalApi.Guard.Action, enum: true - field :user_id, 3, type: :string, json_name: "userId" - field :org_id, 4, type: :string, json_name: "orgId" + field(:resources, 1, repeated: true, type: InternalApi.Guard.Resource) + field(:action, 2, type: InternalApi.Guard.Action, enum: true) + field(:user_id, 3, type: :string, json_name: "userId") + field(:org_id, 4, type: :string, json_name: "orgId") end defmodule InternalApi.Guard.FilterResponse do @@ -290,7 +293,7 @@ defmodule InternalApi.Guard.FilterResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :resources, 1, repeated: true, type: InternalApi.Guard.Resource + field(:resources, 1, repeated: true, type: InternalApi.Guard.Resource) end defmodule InternalApi.Guard.RefreshRequest do @@ -298,7 +301,7 @@ defmodule InternalApi.Guard.RefreshRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :resources, 1, repeated: true, type: InternalApi.Guard.Resource + field(:resources, 1, repeated: true, type: InternalApi.Guard.Resource) end defmodule InternalApi.Guard.ListRequest do @@ -306,7 +309,7 @@ defmodule InternalApi.Guard.ListRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :project_ids, 1, repeated: true, type: :string, json_name: "projectIds" + field(:project_ids, 1, repeated: true, type: :string, json_name: "projectIds") end defmodule InternalApi.Guard.RefreshResponse do @@ -314,7 +317,7 @@ defmodule InternalApi.Guard.RefreshResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: InternalApi.ResponseStatus + field(:status, 1, type: InternalApi.ResponseStatus) end defmodule InternalApi.Guard.ListResponse.User do @@ -322,12 +325,12 @@ defmodule InternalApi.Guard.ListResponse.User do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :id, 1, type: :string - field :avatar_url, 2, type: :string, json_name: "avatarUrl" - field :login, 3, type: :string - field :name, 4, type: :string - field :projects, 5, repeated: true, type: :string - field :email, 6, type: :string + field(:id, 1, type: :string) + field(:avatar_url, 2, type: :string, json_name: "avatarUrl") + field(:login, 3, type: :string) + field(:name, 4, type: :string) + field(:projects, 5, repeated: true, type: :string) + field(:email, 6, type: :string) end defmodule InternalApi.Guard.ListResponse do @@ -335,8 +338,8 @@ defmodule InternalApi.Guard.ListResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: InternalApi.ResponseStatus - field :users, 2, repeated: true, type: InternalApi.Guard.ListResponse.User + field(:status, 1, type: InternalApi.ResponseStatus) + field(:users, 2, repeated: true, type: InternalApi.Guard.ListResponse.User) end defmodule InternalApi.Guard.ListResourcesRequest do @@ -344,10 +347,10 @@ defmodule InternalApi.Guard.ListResourcesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :org_id, 2, type: :string, json_name: "orgId" - field :type, 3, type: InternalApi.Guard.Resource.Type, enum: true - field :action, 4, type: InternalApi.Guard.Action, enum: true + field(:user_id, 1, type: :string, json_name: "userId") + field(:org_id, 2, type: :string, json_name: "orgId") + field(:type, 3, type: InternalApi.Guard.Resource.Type, enum: true) + field(:action, 4, type: InternalApi.Guard.Action, enum: true) end defmodule InternalApi.Guard.ListResourcesResponse do @@ -355,8 +358,8 @@ defmodule InternalApi.Guard.ListResourcesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: InternalApi.ResponseStatus - field :ids, 2, repeated: true, type: :string + field(:status, 1, type: InternalApi.ResponseStatus) + field(:ids, 2, repeated: true, type: :string) end defmodule InternalApi.Guard.ListRolesRequest do @@ -364,7 +367,7 @@ defmodule InternalApi.Guard.ListRolesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" + field(:org_id, 1, type: :string, json_name: "orgId") end defmodule InternalApi.Guard.ListRolesResponse do @@ -372,8 +375,8 @@ defmodule InternalApi.Guard.ListRolesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: InternalApi.ResponseStatus - field :roles, 2, repeated: true, type: InternalApi.Guard.Role + field(:status, 1, type: InternalApi.ResponseStatus) + field(:roles, 2, repeated: true, type: InternalApi.Guard.Role) end defmodule InternalApi.Guard.AddRolesRequest do @@ -381,7 +384,7 @@ defmodule InternalApi.Guard.AddRolesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :roles, 1, repeated: true, type: InternalApi.Guard.Role + field(:roles, 1, repeated: true, type: InternalApi.Guard.Role) end defmodule InternalApi.Guard.AddRolesResponse do @@ -389,7 +392,7 @@ defmodule InternalApi.Guard.AddRolesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: InternalApi.ResponseStatus + field(:status, 1, type: InternalApi.ResponseStatus) end defmodule InternalApi.Guard.DeleteRolesRequest do @@ -397,7 +400,7 @@ defmodule InternalApi.Guard.DeleteRolesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :roles, 1, repeated: true, type: InternalApi.Guard.Role + field(:roles, 1, repeated: true, type: InternalApi.Guard.Role) end defmodule InternalApi.Guard.DeleteRolesResponse do @@ -405,7 +408,7 @@ defmodule InternalApi.Guard.DeleteRolesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: InternalApi.ResponseStatus + field(:status, 1, type: InternalApi.ResponseStatus) end defmodule InternalApi.Guard.Resource do @@ -413,11 +416,11 @@ defmodule InternalApi.Guard.Resource do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :name, 1, type: :string - field :id, 2, type: :string - field :type, 3, type: InternalApi.Guard.Resource.Type, enum: true - field :project_id, 4, type: :string, json_name: "projectId" - field :org_id, 5, type: :string, json_name: "orgId" + field(:name, 1, type: :string) + field(:id, 2, type: :string) + field(:type, 3, type: InternalApi.Guard.Resource.Type, enum: true) + field(:project_id, 4, type: :string, json_name: "projectId") + field(:org_id, 5, type: :string, json_name: "orgId") end defmodule InternalApi.Guard.Role do @@ -425,9 +428,9 @@ defmodule InternalApi.Guard.Role do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :org_id, 2, type: :string, json_name: "orgId" - field :name, 3, type: InternalApi.Guard.Role.Name, enum: true + field(:user_id, 1, type: :string, json_name: "userId") + field(:org_id, 2, type: :string, json_name: "orgId") + field(:name, 3, type: InternalApi.Guard.Role.Name, enum: true) end defmodule InternalApi.Guard.IsAuthorizedRequest do @@ -435,7 +438,7 @@ defmodule InternalApi.Guard.IsAuthorizedRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :objects, 1, repeated: true, type: InternalApi.Guard.AuthorizationObject + field(:objects, 1, repeated: true, type: InternalApi.Guard.AuthorizationObject) end defmodule InternalApi.Guard.IsAuthorizedResponse do @@ -443,7 +446,7 @@ defmodule InternalApi.Guard.IsAuthorizedResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :objects, 1, repeated: true, type: InternalApi.Guard.AuthorizationObject + field(:objects, 1, repeated: true, type: InternalApi.Guard.AuthorizationObject) end defmodule InternalApi.Guard.AuthorizationObject do @@ -451,10 +454,10 @@ defmodule InternalApi.Guard.AuthorizationObject do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :subject, 1, type: InternalApi.Guard.Subject - field :operation, 2, type: InternalApi.Guard.Operation - field :authorized, 3, type: :bool - field :message, 4, type: :string + field(:subject, 1, type: InternalApi.Guard.Subject) + field(:operation, 2, type: InternalApi.Guard.Operation) + field(:authorized, 3, type: :bool) + field(:message, 4, type: :string) end defmodule InternalApi.Guard.Subject do @@ -462,8 +465,8 @@ defmodule InternalApi.Guard.Subject do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :org_id, 2, type: :string, json_name: "orgId" + field(:user_id, 1, type: :string, json_name: "userId") + field(:org_id, 2, type: :string, json_name: "orgId") end defmodule InternalApi.Guard.Operation do @@ -471,8 +474,8 @@ defmodule InternalApi.Guard.Operation do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :name, 1, type: InternalApi.Guard.Operation.Name, enum: true - field :project_id, 2, type: :string, json_name: "projectId" + field(:name, 1, type: InternalApi.Guard.Operation.Name, enum: true) + field(:project_id, 2, type: :string, json_name: "projectId") end defmodule InternalApi.Guard.AuthorizationEvent do @@ -480,10 +483,10 @@ defmodule InternalApi.Guard.AuthorizationEvent do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :project_id, 2, type: :string, json_name: "projectId" - field :user_id, 3, type: :string, json_name: "userId" - field :timestamp, 4, type: Google.Protobuf.Timestamp + field(:org_id, 1, type: :string, json_name: "orgId") + field(:project_id, 2, type: :string, json_name: "projectId") + field(:user_id, 3, type: :string, json_name: "userId") + field(:timestamp, 4, type: Google.Protobuf.Timestamp) end defmodule InternalApi.Guard.Guard.Service do @@ -491,53 +494,73 @@ defmodule InternalApi.Guard.Guard.Service do use GRPC.Service, name: "InternalApi.Guard.Guard", protoc_gen_elixir_version: "0.13.0" - rpc :Refresh, InternalApi.Guard.RefreshRequest, InternalApi.Guard.RefreshResponse + rpc(:Refresh, InternalApi.Guard.RefreshRequest, InternalApi.Guard.RefreshResponse) - rpc :List, InternalApi.Guard.ListRequest, InternalApi.Guard.ListResponse + rpc(:List, InternalApi.Guard.ListRequest, InternalApi.Guard.ListResponse) - rpc :ListResources, - InternalApi.Guard.ListResourcesRequest, - InternalApi.Guard.ListResourcesResponse + rpc( + :ListResources, + InternalApi.Guard.ListResourcesRequest, + InternalApi.Guard.ListResourcesResponse + ) - rpc :Filter, InternalApi.Guard.FilterRequest, InternalApi.Guard.FilterResponse + rpc(:Filter, InternalApi.Guard.FilterRequest, InternalApi.Guard.FilterResponse) - rpc :ListRoles, InternalApi.Guard.ListRolesRequest, InternalApi.Guard.ListRolesResponse + rpc(:ListRoles, InternalApi.Guard.ListRolesRequest, InternalApi.Guard.ListRolesResponse) - rpc :AddRoles, InternalApi.Guard.AddRolesRequest, InternalApi.Guard.AddRolesResponse + rpc(:AddRoles, InternalApi.Guard.AddRolesRequest, InternalApi.Guard.AddRolesResponse) - rpc :DeleteRoles, InternalApi.Guard.DeleteRolesRequest, InternalApi.Guard.DeleteRolesResponse + rpc(:DeleteRoles, InternalApi.Guard.DeleteRolesRequest, InternalApi.Guard.DeleteRolesResponse) - rpc :IsAuthorized, InternalApi.Guard.IsAuthorizedRequest, InternalApi.Guard.IsAuthorizedResponse + rpc( + :IsAuthorized, + InternalApi.Guard.IsAuthorizedRequest, + InternalApi.Guard.IsAuthorizedResponse + ) - rpc :OrganizationMembers, - InternalApi.Guard.OrganizationMembersRequest, - InternalApi.Guard.OrganizationMembersResponse + rpc( + :OrganizationMembers, + InternalApi.Guard.OrganizationMembersRequest, + InternalApi.Guard.OrganizationMembersResponse + ) - rpc :ProjectMembers, - InternalApi.Guard.ProjectMembersRequest, - InternalApi.Guard.ProjectMembersResponse + rpc( + :ProjectMembers, + InternalApi.Guard.ProjectMembersRequest, + InternalApi.Guard.ProjectMembersResponse + ) - rpc :RepositoryCollaborators, - InternalApi.Guard.RepositoryCollaboratorsRequest, - InternalApi.Guard.RepositoryCollaboratorsResponse + rpc( + :RepositoryCollaborators, + InternalApi.Guard.RepositoryCollaboratorsRequest, + InternalApi.Guard.RepositoryCollaboratorsResponse + ) - rpc :Invitations, InternalApi.Guard.InvitationsRequest, InternalApi.Guard.InvitationsResponse + rpc(:Invitations, InternalApi.Guard.InvitationsRequest, InternalApi.Guard.InvitationsResponse) - rpc :InviteCollaborators, - InternalApi.Guard.InviteCollaboratorsRequest, - InternalApi.Guard.InviteCollaboratorsResponse + rpc( + :InviteCollaborators, + InternalApi.Guard.InviteCollaboratorsRequest, + InternalApi.Guard.InviteCollaboratorsResponse + ) - rpc :CreateMember, InternalApi.Guard.CreateMemberRequest, InternalApi.Guard.CreateMemberResponse + rpc( + :CreateMember, + InternalApi.Guard.CreateMemberRequest, + InternalApi.Guard.CreateMemberResponse + ) - rpc :ResetPassword, - InternalApi.Guard.ResetPasswordRequest, - InternalApi.Guard.ResetPasswordResponse + rpc( + :ResetPassword, + InternalApi.Guard.ResetPasswordRequest, + InternalApi.Guard.ResetPasswordResponse + ) - rpc :ChangeEmail, InternalApi.Guard.ChangeEmailRequest, InternalApi.Guard.ChangeEmailResponse + rpc(:ChangeEmail, InternalApi.Guard.ChangeEmailRequest, InternalApi.Guard.ChangeEmailResponse) end defmodule InternalApi.Guard.Guard.Stub do @moduledoc false use GRPC.Stub, service: InternalApi.Guard.Guard.Service -end \ No newline at end of file +end diff --git a/rbac/ce/lib/internal_api/health.pb.ex b/rbac/ce/lib/internal_api/health.pb.ex index 4adddca0e..5e049d0bf 100644 --- a/rbac/ce/lib/internal_api/health.pb.ex +++ b/rbac/ce/lib/internal_api/health.pb.ex @@ -3,10 +3,10 @@ defmodule Grpc.Health.V1.HealthCheckResponse.ServingStatus do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :UNKNOWN, 0 - field :SERVING, 1 - field :NOT_SERVING, 2 - field :SERVICE_UNKNOWN, 3 + field(:UNKNOWN, 0) + field(:SERVING, 1) + field(:NOT_SERVING, 2) + field(:SERVICE_UNKNOWN, 3) end defmodule Grpc.Health.V1.HealthCheckRequest do @@ -14,7 +14,7 @@ defmodule Grpc.Health.V1.HealthCheckRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :service, 1, type: :string + field(:service, 1, type: :string) end defmodule Grpc.Health.V1.HealthCheckResponse do @@ -22,7 +22,7 @@ defmodule Grpc.Health.V1.HealthCheckResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: Grpc.Health.V1.HealthCheckResponse.ServingStatus, enum: true + field(:status, 1, type: Grpc.Health.V1.HealthCheckResponse.ServingStatus, enum: true) end defmodule Grpc.Health.V1.Health.Service do @@ -30,13 +30,13 @@ defmodule Grpc.Health.V1.Health.Service do use GRPC.Service, name: "grpc.health.v1.Health", protoc_gen_elixir_version: "0.13.0" - rpc :Check, Grpc.Health.V1.HealthCheckRequest, Grpc.Health.V1.HealthCheckResponse + rpc(:Check, Grpc.Health.V1.HealthCheckRequest, Grpc.Health.V1.HealthCheckResponse) - rpc :Watch, Grpc.Health.V1.HealthCheckRequest, stream(Grpc.Health.V1.HealthCheckResponse) + rpc(:Watch, Grpc.Health.V1.HealthCheckRequest, stream(Grpc.Health.V1.HealthCheckResponse)) end defmodule Grpc.Health.V1.Health.Stub do @moduledoc false use GRPC.Stub, service: Grpc.Health.V1.Health.Service -end \ No newline at end of file +end diff --git a/rbac/ce/lib/internal_api/include/google/protobuf/timestamp.pb.ex b/rbac/ce/lib/internal_api/include/google/protobuf/timestamp.pb.ex index d7e0566d9..410019fb7 100644 --- a/rbac/ce/lib/internal_api/include/google/protobuf/timestamp.pb.ex +++ b/rbac/ce/lib/internal_api/include/google/protobuf/timestamp.pb.ex @@ -3,6 +3,6 @@ defmodule Google.Protobuf.Timestamp do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :seconds, 1, type: :int64 - field :nanos, 2, type: :int32 -end \ No newline at end of file + field(:seconds, 1, type: :int64) + field(:nanos, 2, type: :int32) +end diff --git a/rbac/ce/lib/internal_api/include/google/rpc/code.pb.ex b/rbac/ce/lib/internal_api/include/google/rpc/code.pb.ex index de1589fe4..0a887554a 100644 --- a/rbac/ce/lib/internal_api/include/google/rpc/code.pb.ex +++ b/rbac/ce/lib/internal_api/include/google/rpc/code.pb.ex @@ -3,21 +3,21 @@ defmodule Google.Rpc.Code do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :OK, 0 - field :CANCELLED, 1 - field :UNKNOWN, 2 - field :INVALID_ARGUMENT, 3 - field :DEADLINE_EXCEEDED, 4 - field :NOT_FOUND, 5 - field :ALREADY_EXISTS, 6 - field :PERMISSION_DENIED, 7 - field :UNAUTHENTICATED, 16 - field :RESOURCE_EXHAUSTED, 8 - field :FAILED_PRECONDITION, 9 - field :ABORTED, 10 - field :OUT_OF_RANGE, 11 - field :UNIMPLEMENTED, 12 - field :INTERNAL, 13 - field :UNAVAILABLE, 14 - field :DATA_LOSS, 15 -end \ No newline at end of file + field(:OK, 0) + field(:CANCELLED, 1) + field(:UNKNOWN, 2) + field(:INVALID_ARGUMENT, 3) + field(:DEADLINE_EXCEEDED, 4) + field(:NOT_FOUND, 5) + field(:ALREADY_EXISTS, 6) + field(:PERMISSION_DENIED, 7) + field(:UNAUTHENTICATED, 16) + field(:RESOURCE_EXHAUSTED, 8) + field(:FAILED_PRECONDITION, 9) + field(:ABORTED, 10) + field(:OUT_OF_RANGE, 11) + field(:UNIMPLEMENTED, 12) + field(:INTERNAL, 13) + field(:UNAVAILABLE, 14) + field(:DATA_LOSS, 15) +end diff --git a/rbac/ce/lib/internal_api/include/google/rpc/status.pb.ex b/rbac/ce/lib/internal_api/include/google/rpc/status.pb.ex index f062e2acb..e283763c7 100644 --- a/rbac/ce/lib/internal_api/include/google/rpc/status.pb.ex +++ b/rbac/ce/lib/internal_api/include/google/rpc/status.pb.ex @@ -3,7 +3,7 @@ defmodule Google.Rpc.Status do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :code, 1, type: :int32 - field :message, 2, type: :string - field :details, 3, repeated: true, type: Google.Protobuf.Any -end \ No newline at end of file + field(:code, 1, type: :int32) + field(:message, 2, type: :string) + field(:details, 3, repeated: true, type: Google.Protobuf.Any) +end diff --git a/rbac/ce/lib/internal_api/include/internal_api/response_status.pb.ex b/rbac/ce/lib/internal_api/include/internal_api/response_status.pb.ex index 650c63409..c3e16bb0a 100644 --- a/rbac/ce/lib/internal_api/include/internal_api/response_status.pb.ex +++ b/rbac/ce/lib/internal_api/include/internal_api/response_status.pb.ex @@ -3,8 +3,8 @@ defmodule InternalApi.ResponseStatus.Code do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :OK, 0 - field :BAD_PARAM, 1 + field(:OK, 0) + field(:BAD_PARAM, 1) end defmodule InternalApi.ResponseStatus do @@ -12,6 +12,6 @@ defmodule InternalApi.ResponseStatus do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :code, 1, type: InternalApi.ResponseStatus.Code, enum: true - field :message, 2, type: :string -end \ No newline at end of file + field(:code, 1, type: InternalApi.ResponseStatus.Code, enum: true) + field(:message, 2, type: :string) +end diff --git a/rbac/ce/lib/internal_api/organization.pb.ex b/rbac/ce/lib/internal_api/organization.pb.ex index 679155f9c..53dca1902 100644 --- a/rbac/ce/lib/internal_api/organization.pb.ex +++ b/rbac/ce/lib/internal_api/organization.pb.ex @@ -3,8 +3,8 @@ defmodule InternalApi.Organization.ListRequest.Order do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :BY_NAME_ASC, 0 - field :BY_CREATION_TIME_ASC, 1 + field(:BY_NAME_ASC, 0) + field(:BY_CREATION_TIME_ASC, 1) end defmodule InternalApi.Organization.Suspension.Reason do @@ -12,9 +12,9 @@ defmodule InternalApi.Organization.Suspension.Reason do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :INSUFFICIENT_FUNDS, 0 - field :ACCOUNT_AT_RISK, 1 - field :VIOLATION_OF_TOS, 2 + field(:INSUFFICIENT_FUNDS, 0) + field(:ACCOUNT_AT_RISK, 1) + field(:VIOLATION_OF_TOS, 2) end defmodule InternalApi.Organization.Member.Role do @@ -22,9 +22,9 @@ defmodule InternalApi.Organization.Member.Role do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :MEMBER, 0 - field :OWNER, 1 - field :ADMIN, 2 + field(:MEMBER, 0) + field(:OWNER, 1) + field(:ADMIN, 2) end defmodule InternalApi.Organization.OrganizationContact.ContactType do @@ -32,10 +32,10 @@ defmodule InternalApi.Organization.OrganizationContact.ContactType do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :CONTACT_TYPE_UNSPECIFIED, 0 - field :CONTACT_TYPE_MAIN, 1 - field :CONTACT_TYPE_FINANCES, 2 - field :CONTACT_TYPE_SECURITY, 3 + field(:CONTACT_TYPE_UNSPECIFIED, 0) + field(:CONTACT_TYPE_MAIN, 1) + field(:CONTACT_TYPE_FINANCES, 2) + field(:CONTACT_TYPE_SECURITY, 3) end defmodule InternalApi.Organization.DescribeRequest do @@ -43,10 +43,10 @@ defmodule InternalApi.Organization.DescribeRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :org_username, 2, type: :string, json_name: "orgUsername" - field :include_quotas, 3, type: :bool, json_name: "includeQuotas" - field :soft_deleted, 4, type: :bool, json_name: "softDeleted" + field(:org_id, 1, type: :string, json_name: "orgId") + field(:org_username, 2, type: :string, json_name: "orgUsername") + field(:include_quotas, 3, type: :bool, json_name: "includeQuotas") + field(:soft_deleted, 4, type: :bool, json_name: "softDeleted") end defmodule InternalApi.Organization.DescribeResponse do @@ -54,8 +54,8 @@ defmodule InternalApi.Organization.DescribeResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: InternalApi.ResponseStatus - field :organization, 2, type: InternalApi.Organization.Organization + field(:status, 1, type: InternalApi.ResponseStatus) + field(:organization, 2, type: InternalApi.Organization.Organization) end defmodule InternalApi.Organization.DescribeManyRequest do @@ -63,8 +63,8 @@ defmodule InternalApi.Organization.DescribeManyRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_ids, 1, repeated: true, type: :string, json_name: "orgIds" - field :soft_deleted, 2, type: :bool, json_name: "softDeleted" + field(:org_ids, 1, repeated: true, type: :string, json_name: "orgIds") + field(:soft_deleted, 2, type: :bool, json_name: "softDeleted") end defmodule InternalApi.Organization.DescribeManyResponse do @@ -72,7 +72,7 @@ defmodule InternalApi.Organization.DescribeManyResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :organizations, 1, repeated: true, type: InternalApi.Organization.Organization + field(:organizations, 1, repeated: true, type: InternalApi.Organization.Organization) end defmodule InternalApi.Organization.ListRequest do @@ -80,12 +80,12 @@ defmodule InternalApi.Organization.ListRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 2, type: :string, json_name: "userId" - field :created_at_gt, 3, type: Google.Protobuf.Timestamp, json_name: "createdAtGt" - field :order, 4, type: InternalApi.Organization.ListRequest.Order, enum: true - field :page_size, 5, type: :int32, json_name: "pageSize" - field :page_token, 6, type: :string, json_name: "pageToken" - field :soft_deleted, 7, type: :bool, json_name: "softDeleted" + field(:user_id, 2, type: :string, json_name: "userId") + field(:created_at_gt, 3, type: Google.Protobuf.Timestamp, json_name: "createdAtGt") + field(:order, 4, type: InternalApi.Organization.ListRequest.Order, enum: true) + field(:page_size, 5, type: :int32, json_name: "pageSize") + field(:page_token, 6, type: :string, json_name: "pageToken") + field(:soft_deleted, 7, type: :bool, json_name: "softDeleted") end defmodule InternalApi.Organization.ListResponse do @@ -93,9 +93,9 @@ defmodule InternalApi.Organization.ListResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: InternalApi.ResponseStatus - field :organizations, 2, repeated: true, type: InternalApi.Organization.Organization - field :next_page_token, 3, type: :string, json_name: "nextPageToken" + field(:status, 1, type: InternalApi.ResponseStatus) + field(:organizations, 2, repeated: true, type: InternalApi.Organization.Organization) + field(:next_page_token, 3, type: :string, json_name: "nextPageToken") end defmodule InternalApi.Organization.CreateRequest do @@ -103,9 +103,9 @@ defmodule InternalApi.Organization.CreateRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :creator_id, 1, type: :string, json_name: "creatorId" - field :organization_name, 2, type: :string, json_name: "organizationName" - field :organization_username, 3, type: :string, json_name: "organizationUsername" + field(:creator_id, 1, type: :string, json_name: "creatorId") + field(:organization_name, 2, type: :string, json_name: "organizationName") + field(:organization_username, 3, type: :string, json_name: "organizationUsername") end defmodule InternalApi.Organization.CreateResponse do @@ -113,8 +113,8 @@ defmodule InternalApi.Organization.CreateResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: InternalApi.ResponseStatus - field :organization, 2, type: InternalApi.Organization.Organization + field(:status, 1, type: InternalApi.ResponseStatus) + field(:organization, 2, type: InternalApi.Organization.Organization) end defmodule InternalApi.Organization.UpdateRequest do @@ -122,7 +122,7 @@ defmodule InternalApi.Organization.UpdateRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :organization, 1, type: InternalApi.Organization.Organization + field(:organization, 1, type: InternalApi.Organization.Organization) end defmodule InternalApi.Organization.UpdateResponse do @@ -130,8 +130,8 @@ defmodule InternalApi.Organization.UpdateResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: Google.Rpc.Status - field :organization, 2, type: InternalApi.Organization.Organization + field(:status, 1, type: Google.Rpc.Status) + field(:organization, 2, type: InternalApi.Organization.Organization) end defmodule InternalApi.Organization.IsValidResponse do @@ -139,8 +139,8 @@ defmodule InternalApi.Organization.IsValidResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :is_valid, 1, type: :bool, json_name: "isValid" - field :errors, 2, type: :string + field(:is_valid, 1, type: :bool, json_name: "isValid") + field(:errors, 2, type: :string) end defmodule InternalApi.Organization.IsMemberRequest do @@ -148,9 +148,9 @@ defmodule InternalApi.Organization.IsMemberRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :org_id, 3, type: :string, json_name: "orgId" - field :org_username, 4, type: :string, json_name: "orgUsername" + field(:user_id, 1, type: :string, json_name: "userId") + field(:org_id, 3, type: :string, json_name: "orgId") + field(:org_username, 4, type: :string, json_name: "orgUsername") end defmodule InternalApi.Organization.IsMemberResponse do @@ -158,8 +158,8 @@ defmodule InternalApi.Organization.IsMemberResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: InternalApi.ResponseStatus - field :is_member, 2, type: :bool, json_name: "isMember" + field(:status, 1, type: InternalApi.ResponseStatus) + field(:is_member, 2, type: :bool, json_name: "isMember") end defmodule InternalApi.Organization.IsOwnerRequest do @@ -167,8 +167,8 @@ defmodule InternalApi.Organization.IsOwnerRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :org_id, 2, type: :string, json_name: "orgId" + field(:user_id, 1, type: :string, json_name: "userId") + field(:org_id, 2, type: :string, json_name: "orgId") end defmodule InternalApi.Organization.IsOwnerResponse do @@ -176,8 +176,8 @@ defmodule InternalApi.Organization.IsOwnerResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: InternalApi.ResponseStatus - field :is_owner, 2, type: :bool, json_name: "isOwner" + field(:status, 1, type: InternalApi.ResponseStatus) + field(:is_owner, 2, type: :bool, json_name: "isOwner") end defmodule InternalApi.Organization.MakeOwnerRequest do @@ -185,8 +185,8 @@ defmodule InternalApi.Organization.MakeOwnerRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :owner_id, 2, type: :string, json_name: "ownerId" + field(:org_id, 1, type: :string, json_name: "orgId") + field(:owner_id, 2, type: :string, json_name: "ownerId") end defmodule InternalApi.Organization.MembersRequest do @@ -194,10 +194,10 @@ defmodule InternalApi.Organization.MembersRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :org_username, 2, type: :string, json_name: "orgUsername" - field :only_members, 3, type: :bool, json_name: "onlyMembers" - field :name_contains, 4, type: :string, json_name: "nameContains" + field(:org_id, 1, type: :string, json_name: "orgId") + field(:org_username, 2, type: :string, json_name: "orgUsername") + field(:only_members, 3, type: :bool, json_name: "onlyMembers") + field(:name_contains, 4, type: :string, json_name: "nameContains") end defmodule InternalApi.Organization.MembersResponse do @@ -205,13 +205,14 @@ defmodule InternalApi.Organization.MembersResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: InternalApi.ResponseStatus - field :members, 2, repeated: true, type: InternalApi.Organization.Member + field(:status, 1, type: InternalApi.ResponseStatus) + field(:members, 2, repeated: true, type: InternalApi.Organization.Member) - field :not_logged_in_members, 3, + field(:not_logged_in_members, 3, repeated: true, type: InternalApi.Organization.Member, json_name: "notLoggedInMembers" + ) end defmodule InternalApi.Organization.AddMemberRequest do @@ -219,9 +220,9 @@ defmodule InternalApi.Organization.AddMemberRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :creator_id, 2, type: :string, json_name: "creatorId" - field :username, 3, type: :string + field(:org_id, 1, type: :string, json_name: "orgId") + field(:creator_id, 2, type: :string, json_name: "creatorId") + field(:username, 3, type: :string) end defmodule InternalApi.Organization.AddMemberResponse do @@ -229,8 +230,8 @@ defmodule InternalApi.Organization.AddMemberResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: Google.Rpc.Status - field :member, 2, type: InternalApi.Organization.Member + field(:status, 1, type: Google.Rpc.Status) + field(:member, 2, type: InternalApi.Organization.Member) end defmodule InternalApi.Organization.AddMembersRequest.MemberData do @@ -238,9 +239,9 @@ defmodule InternalApi.Organization.AddMembersRequest.MemberData do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :github_username, 1, type: :string, json_name: "githubUsername" - field :github_uid, 2, type: :string, json_name: "githubUid" - field :invite_email, 3, type: :string, json_name: "inviteEmail" + field(:github_username, 1, type: :string, json_name: "githubUsername") + field(:github_uid, 2, type: :string, json_name: "githubUid") + field(:invite_email, 3, type: :string, json_name: "inviteEmail") end defmodule InternalApi.Organization.AddMembersRequest do @@ -248,13 +249,14 @@ defmodule InternalApi.Organization.AddMembersRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :creator_id, 2, type: :string, json_name: "creatorId" + field(:org_id, 1, type: :string, json_name: "orgId") + field(:creator_id, 2, type: :string, json_name: "creatorId") - field :members_data, 3, + field(:members_data, 3, repeated: true, type: InternalApi.Organization.AddMembersRequest.MemberData, json_name: "membersData" + ) end defmodule InternalApi.Organization.AddMembersResponse do @@ -262,7 +264,7 @@ defmodule InternalApi.Organization.AddMembersResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :members, 1, repeated: true, type: InternalApi.Organization.Member + field(:members, 1, repeated: true, type: InternalApi.Organization.Member) end defmodule InternalApi.Organization.DeleteMemberRequest do @@ -270,9 +272,9 @@ defmodule InternalApi.Organization.DeleteMemberRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :membership_id, 3, type: :string, json_name: "membershipId" - field :user_id, 4, type: :string, json_name: "userId" + field(:org_id, 1, type: :string, json_name: "orgId") + field(:membership_id, 3, type: :string, json_name: "membershipId") + field(:user_id, 4, type: :string, json_name: "userId") end defmodule InternalApi.Organization.DeleteMemberResponse do @@ -280,7 +282,7 @@ defmodule InternalApi.Organization.DeleteMemberResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: Google.Rpc.Status + field(:status, 1, type: Google.Rpc.Status) end defmodule InternalApi.Organization.SuspendRequest do @@ -288,10 +290,10 @@ defmodule InternalApi.Organization.SuspendRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :origin, 2, type: :string - field :description, 3, type: :string - field :reason, 4, type: InternalApi.Organization.Suspension.Reason, enum: true + field(:org_id, 1, type: :string, json_name: "orgId") + field(:origin, 2, type: :string) + field(:description, 3, type: :string) + field(:reason, 4, type: InternalApi.Organization.Suspension.Reason, enum: true) end defmodule InternalApi.Organization.SuspendResponse do @@ -299,7 +301,7 @@ defmodule InternalApi.Organization.SuspendResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: Google.Rpc.Status + field(:status, 1, type: Google.Rpc.Status) end defmodule InternalApi.Organization.SetOpenSourceRequest do @@ -307,7 +309,7 @@ defmodule InternalApi.Organization.SetOpenSourceRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" + field(:org_id, 1, type: :string, json_name: "orgId") end defmodule InternalApi.Organization.SetOpenSourceResponse do @@ -315,7 +317,7 @@ defmodule InternalApi.Organization.SetOpenSourceResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :organization, 1, type: InternalApi.Organization.Organization + field(:organization, 1, type: InternalApi.Organization.Organization) end defmodule InternalApi.Organization.UnsuspendRequest do @@ -323,10 +325,10 @@ defmodule InternalApi.Organization.UnsuspendRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :origin, 3, type: :string - field :description, 2, type: :string - field :reason, 4, type: InternalApi.Organization.Suspension.Reason, enum: true + field(:org_id, 1, type: :string, json_name: "orgId") + field(:origin, 3, type: :string) + field(:description, 2, type: :string) + field(:reason, 4, type: InternalApi.Organization.Suspension.Reason, enum: true) end defmodule InternalApi.Organization.UnsuspendResponse do @@ -334,7 +336,7 @@ defmodule InternalApi.Organization.UnsuspendResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: Google.Rpc.Status + field(:status, 1, type: Google.Rpc.Status) end defmodule InternalApi.Organization.VerifyRequest do @@ -342,7 +344,7 @@ defmodule InternalApi.Organization.VerifyRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" + field(:org_id, 1, type: :string, json_name: "orgId") end defmodule InternalApi.Organization.ListSuspensionsRequest do @@ -350,7 +352,7 @@ defmodule InternalApi.Organization.ListSuspensionsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" + field(:org_id, 1, type: :string, json_name: "orgId") end defmodule InternalApi.Organization.ListSuspensionsResponse do @@ -358,8 +360,8 @@ defmodule InternalApi.Organization.ListSuspensionsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: Google.Rpc.Status - field :suspensions, 2, repeated: true, type: InternalApi.Organization.Suspension + field(:status, 1, type: Google.Rpc.Status) + field(:suspensions, 2, repeated: true, type: InternalApi.Organization.Suspension) end defmodule InternalApi.Organization.DestroyRequest do @@ -367,7 +369,7 @@ defmodule InternalApi.Organization.DestroyRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" + field(:org_id, 1, type: :string, json_name: "orgId") end defmodule InternalApi.Organization.RestoreRequest do @@ -375,7 +377,7 @@ defmodule InternalApi.Organization.RestoreRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" + field(:org_id, 1, type: :string, json_name: "orgId") end defmodule InternalApi.Organization.Organization do @@ -383,21 +385,21 @@ defmodule InternalApi.Organization.Organization do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_username, 1, type: :string, json_name: "orgUsername" - field :created_at, 2, type: Google.Protobuf.Timestamp, json_name: "createdAt" - field :avatar_url, 3, type: :string, json_name: "avatarUrl" - field :org_id, 4, type: :string, json_name: "orgId" - field :name, 5, type: :string - field :owner_id, 6, type: :string, json_name: "ownerId" - field :suspended, 7, type: :bool - field :open_source, 9, type: :bool, json_name: "openSource" - field :verified, 10, type: :bool - field :restricted, 11, type: :bool - field :ip_allow_list, 12, repeated: true, type: :string, json_name: "ipAllowList" - field :allowed_id_providers, 13, repeated: true, type: :string, json_name: "allowedIdProviders" - field :deny_member_workflows, 14, type: :bool, json_name: "denyMemberWorkflows" - field :deny_non_member_workflows, 15, type: :bool, json_name: "denyNonMemberWorkflows" - field :settings, 16, repeated: true, type: InternalApi.Organization.OrganizationSetting + field(:org_username, 1, type: :string, json_name: "orgUsername") + field(:created_at, 2, type: Google.Protobuf.Timestamp, json_name: "createdAt") + field(:avatar_url, 3, type: :string, json_name: "avatarUrl") + field(:org_id, 4, type: :string, json_name: "orgId") + field(:name, 5, type: :string) + field(:owner_id, 6, type: :string, json_name: "ownerId") + field(:suspended, 7, type: :bool) + field(:open_source, 9, type: :bool, json_name: "openSource") + field(:verified, 10, type: :bool) + field(:restricted, 11, type: :bool) + field(:ip_allow_list, 12, repeated: true, type: :string, json_name: "ipAllowList") + field(:allowed_id_providers, 13, repeated: true, type: :string, json_name: "allowedIdProviders") + field(:deny_member_workflows, 14, type: :bool, json_name: "denyMemberWorkflows") + field(:deny_non_member_workflows, 15, type: :bool, json_name: "denyNonMemberWorkflows") + field(:settings, 16, repeated: true, type: InternalApi.Organization.OrganizationSetting) end defmodule InternalApi.Organization.Suspension do @@ -405,10 +407,10 @@ defmodule InternalApi.Organization.Suspension do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :origin, 1, type: :string - field :description, 2, type: :string - field :reason, 3, type: InternalApi.Organization.Suspension.Reason, enum: true - field :created_at, 4, type: Google.Protobuf.Timestamp, json_name: "createdAt" + field(:origin, 1, type: :string) + field(:description, 2, type: :string) + field(:reason, 3, type: InternalApi.Organization.Suspension.Reason, enum: true) + field(:created_at, 4, type: Google.Protobuf.Timestamp, json_name: "createdAt") end defmodule InternalApi.Organization.Member do @@ -416,14 +418,14 @@ defmodule InternalApi.Organization.Member do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :screen_name, 1, type: :string, json_name: "screenName" - field :avatar_url, 2, type: :string, json_name: "avatarUrl" - field :user_id, 3, type: :string, json_name: "userId" - field :role, 4, type: InternalApi.Organization.Member.Role, enum: true - field :invited_at, 5, type: Google.Protobuf.Timestamp, json_name: "invitedAt" - field :membership_id, 6, type: :string, json_name: "membershipId" - field :github_username, 7, type: :string, json_name: "githubUsername" - field :github_uid, 8, type: :string, json_name: "githubUid" + field(:screen_name, 1, type: :string, json_name: "screenName") + field(:avatar_url, 2, type: :string, json_name: "avatarUrl") + field(:user_id, 3, type: :string, json_name: "userId") + field(:role, 4, type: InternalApi.Organization.Member.Role, enum: true) + field(:invited_at, 5, type: Google.Protobuf.Timestamp, json_name: "invitedAt") + field(:membership_id, 6, type: :string, json_name: "membershipId") + field(:github_username, 7, type: :string, json_name: "githubUsername") + field(:github_uid, 8, type: :string, json_name: "githubUid") end defmodule InternalApi.Organization.OrganizationSetting do @@ -431,8 +433,8 @@ defmodule InternalApi.Organization.OrganizationSetting do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :key, 1, type: :string - field :value, 2, type: :string + field(:key, 1, type: :string) + field(:value, 2, type: :string) end defmodule InternalApi.Organization.RepositoryIntegratorsRequest do @@ -440,7 +442,7 @@ defmodule InternalApi.Organization.RepositoryIntegratorsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" + field(:org_id, 1, type: :string, json_name: "orgId") end defmodule InternalApi.Organization.RepositoryIntegratorsResponse do @@ -448,17 +450,19 @@ defmodule InternalApi.Organization.RepositoryIntegratorsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :primary, 1, type: InternalApi.RepositoryIntegrator.IntegrationType, enum: true + field(:primary, 1, type: InternalApi.RepositoryIntegrator.IntegrationType, enum: true) - field :enabled, 2, + field(:enabled, 2, repeated: true, type: InternalApi.RepositoryIntegrator.IntegrationType, enum: true + ) - field :available, 3, + field(:available, 3, repeated: true, type: InternalApi.RepositoryIntegrator.IntegrationType, enum: true + ) end defmodule InternalApi.Organization.FetchOrganizationContactsRequest do @@ -466,7 +470,7 @@ defmodule InternalApi.Organization.FetchOrganizationContactsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" + field(:org_id, 1, type: :string, json_name: "orgId") end defmodule InternalApi.Organization.FetchOrganizationContactsResponse do @@ -474,10 +478,11 @@ defmodule InternalApi.Organization.FetchOrganizationContactsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_contacts, 1, + field(:org_contacts, 1, repeated: true, type: InternalApi.Organization.OrganizationContact, json_name: "orgContacts" + ) end defmodule InternalApi.Organization.ModifyOrganizationContactRequest do @@ -485,9 +490,10 @@ defmodule InternalApi.Organization.ModifyOrganizationContactRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_contact, 1, + field(:org_contact, 1, type: InternalApi.Organization.OrganizationContact, json_name: "orgContact" + ) end defmodule InternalApi.Organization.ModifyOrganizationContactResponse do @@ -501,11 +507,11 @@ defmodule InternalApi.Organization.OrganizationContact do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :type, 2, type: InternalApi.Organization.OrganizationContact.ContactType, enum: true - field :name, 3, type: :string - field :email, 4, type: :string - field :phone, 5, type: :string + field(:org_id, 1, type: :string, json_name: "orgId") + field(:type, 2, type: InternalApi.Organization.OrganizationContact.ContactType, enum: true) + field(:name, 3, type: :string) + field(:email, 4, type: :string) + field(:phone, 5, type: :string) end defmodule InternalApi.Organization.FetchOrganizationSettingsRequest do @@ -513,7 +519,7 @@ defmodule InternalApi.Organization.FetchOrganizationSettingsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" + field(:org_id, 1, type: :string, json_name: "orgId") end defmodule InternalApi.Organization.FetchOrganizationSettingsResponse do @@ -521,7 +527,7 @@ defmodule InternalApi.Organization.FetchOrganizationSettingsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :settings, 1, repeated: true, type: InternalApi.Organization.OrganizationSetting + field(:settings, 1, repeated: true, type: InternalApi.Organization.OrganizationSetting) end defmodule InternalApi.Organization.ModifyOrganizationSettingsRequest do @@ -529,8 +535,8 @@ defmodule InternalApi.Organization.ModifyOrganizationSettingsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :settings, 2, repeated: true, type: InternalApi.Organization.OrganizationSetting + field(:org_id, 1, type: :string, json_name: "orgId") + field(:settings, 2, repeated: true, type: InternalApi.Organization.OrganizationSetting) end defmodule InternalApi.Organization.ModifyOrganizationSettingsResponse do @@ -538,7 +544,7 @@ defmodule InternalApi.Organization.ModifyOrganizationSettingsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :settings, 1, repeated: true, type: InternalApi.Organization.OrganizationSetting + field(:settings, 1, repeated: true, type: InternalApi.Organization.OrganizationSetting) end defmodule InternalApi.Organization.OrganizationCreated do @@ -546,8 +552,8 @@ defmodule InternalApi.Organization.OrganizationCreated do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :timestamp, 2, type: Google.Protobuf.Timestamp + field(:org_id, 1, type: :string, json_name: "orgId") + field(:timestamp, 2, type: Google.Protobuf.Timestamp) end defmodule InternalApi.Organization.OrganizationDeleted do @@ -555,8 +561,8 @@ defmodule InternalApi.Organization.OrganizationDeleted do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :timestamp, 2, type: Google.Protobuf.Timestamp + field(:org_id, 1, type: :string, json_name: "orgId") + field(:timestamp, 2, type: Google.Protobuf.Timestamp) end defmodule InternalApi.Organization.OrganizationUpdated do @@ -564,8 +570,8 @@ defmodule InternalApi.Organization.OrganizationUpdated do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :timestamp, 2, type: Google.Protobuf.Timestamp + field(:org_id, 1, type: :string, json_name: "orgId") + field(:timestamp, 2, type: Google.Protobuf.Timestamp) end defmodule InternalApi.Organization.OrganizationBlocked do @@ -573,9 +579,9 @@ defmodule InternalApi.Organization.OrganizationBlocked do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :timestamp, 2, type: Google.Protobuf.Timestamp - field :reason, 3, type: InternalApi.Organization.Suspension.Reason, enum: true + field(:org_id, 1, type: :string, json_name: "orgId") + field(:timestamp, 2, type: Google.Protobuf.Timestamp) + field(:reason, 3, type: InternalApi.Organization.Suspension.Reason, enum: true) end defmodule InternalApi.Organization.OrganizationSuspensionCreated do @@ -583,9 +589,9 @@ defmodule InternalApi.Organization.OrganizationSuspensionCreated do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :timestamp, 2, type: Google.Protobuf.Timestamp - field :reason, 3, type: InternalApi.Organization.Suspension.Reason, enum: true + field(:org_id, 1, type: :string, json_name: "orgId") + field(:timestamp, 2, type: Google.Protobuf.Timestamp) + field(:reason, 3, type: InternalApi.Organization.Suspension.Reason, enum: true) end defmodule InternalApi.Organization.OrganizationSuspensionRemoved do @@ -593,9 +599,9 @@ defmodule InternalApi.Organization.OrganizationSuspensionRemoved do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :timestamp, 2, type: Google.Protobuf.Timestamp - field :reason, 3, type: InternalApi.Organization.Suspension.Reason, enum: true + field(:org_id, 1, type: :string, json_name: "orgId") + field(:timestamp, 2, type: Google.Protobuf.Timestamp) + field(:reason, 3, type: InternalApi.Organization.Suspension.Reason, enum: true) end defmodule InternalApi.Organization.OrganizationUnblocked do @@ -603,8 +609,8 @@ defmodule InternalApi.Organization.OrganizationUnblocked do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :timestamp, 2, type: Google.Protobuf.Timestamp + field(:org_id, 1, type: :string, json_name: "orgId") + field(:timestamp, 2, type: Google.Protobuf.Timestamp) end defmodule InternalApi.Organization.OrganizationDailyUpdate do @@ -612,17 +618,17 @@ defmodule InternalApi.Organization.OrganizationDailyUpdate do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :org_username, 2, type: :string, json_name: "orgUsername" - field :org_name, 3, type: :string, json_name: "orgName" - field :created_at, 4, type: Google.Protobuf.Timestamp, json_name: "createdAt" - field :projects_count, 5, type: :int32, json_name: "projectsCount" - field :member_count, 6, type: :int32, json_name: "memberCount" - field :invited_count, 7, type: :int32, json_name: "invitedCount" - field :owner_id, 8, type: :string, json_name: "ownerId" - field :owner_email, 9, type: :string, json_name: "ownerEmail" - field :owner_owned_orgs_count, 10, type: :int32, json_name: "ownerOwnedOrgsCount" - field :timestamp, 11, type: Google.Protobuf.Timestamp + field(:org_id, 1, type: :string, json_name: "orgId") + field(:org_username, 2, type: :string, json_name: "orgUsername") + field(:org_name, 3, type: :string, json_name: "orgName") + field(:created_at, 4, type: Google.Protobuf.Timestamp, json_name: "createdAt") + field(:projects_count, 5, type: :int32, json_name: "projectsCount") + field(:member_count, 6, type: :int32, json_name: "memberCount") + field(:invited_count, 7, type: :int32, json_name: "invitedCount") + field(:owner_id, 8, type: :string, json_name: "ownerId") + field(:owner_email, 9, type: :string, json_name: "ownerEmail") + field(:owner_owned_orgs_count, 10, type: :int32, json_name: "ownerOwnedOrgsCount") + field(:timestamp, 11, type: Google.Protobuf.Timestamp) end defmodule InternalApi.Organization.OrganizationRestored do @@ -630,8 +636,8 @@ defmodule InternalApi.Organization.OrganizationRestored do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :timestamp, 2, type: Google.Protobuf.Timestamp + field(:org_id, 1, type: :string, json_name: "orgId") + field(:timestamp, 2, type: Google.Protobuf.Timestamp) end defmodule InternalApi.Organization.OrganizationService.Service do @@ -641,87 +647,115 @@ defmodule InternalApi.Organization.OrganizationService.Service do name: "InternalApi.Organization.OrganizationService", protoc_gen_elixir_version: "0.13.0" - rpc :Describe, - InternalApi.Organization.DescribeRequest, - InternalApi.Organization.DescribeResponse + rpc( + :Describe, + InternalApi.Organization.DescribeRequest, + InternalApi.Organization.DescribeResponse + ) - rpc :DescribeMany, - InternalApi.Organization.DescribeManyRequest, - InternalApi.Organization.DescribeManyResponse + rpc( + :DescribeMany, + InternalApi.Organization.DescribeManyRequest, + InternalApi.Organization.DescribeManyResponse + ) - rpc :List, InternalApi.Organization.ListRequest, InternalApi.Organization.ListResponse + rpc(:List, InternalApi.Organization.ListRequest, InternalApi.Organization.ListResponse) - rpc :Create, InternalApi.Organization.CreateRequest, InternalApi.Organization.CreateResponse + rpc(:Create, InternalApi.Organization.CreateRequest, InternalApi.Organization.CreateResponse) - rpc :Update, InternalApi.Organization.UpdateRequest, InternalApi.Organization.UpdateResponse + rpc(:Update, InternalApi.Organization.UpdateRequest, InternalApi.Organization.UpdateResponse) - rpc :IsValid, InternalApi.Organization.Organization, InternalApi.Organization.IsValidResponse + rpc(:IsValid, InternalApi.Organization.Organization, InternalApi.Organization.IsValidResponse) - rpc :IsMember, - InternalApi.Organization.IsMemberRequest, - InternalApi.Organization.IsMemberResponse + rpc( + :IsMember, + InternalApi.Organization.IsMemberRequest, + InternalApi.Organization.IsMemberResponse + ) - rpc :IsOwner, InternalApi.Organization.IsOwnerRequest, InternalApi.Organization.IsOwnerResponse + rpc(:IsOwner, InternalApi.Organization.IsOwnerRequest, InternalApi.Organization.IsOwnerResponse) - rpc :MakeOwner, InternalApi.Organization.MakeOwnerRequest, Google.Protobuf.Empty + rpc(:MakeOwner, InternalApi.Organization.MakeOwnerRequest, Google.Protobuf.Empty) - rpc :Members, InternalApi.Organization.MembersRequest, InternalApi.Organization.MembersResponse + rpc(:Members, InternalApi.Organization.MembersRequest, InternalApi.Organization.MembersResponse) - rpc :AddMember, - InternalApi.Organization.AddMemberRequest, - InternalApi.Organization.AddMemberResponse + rpc( + :AddMember, + InternalApi.Organization.AddMemberRequest, + InternalApi.Organization.AddMemberResponse + ) - rpc :AddMembers, - InternalApi.Organization.AddMembersRequest, - InternalApi.Organization.AddMembersResponse + rpc( + :AddMembers, + InternalApi.Organization.AddMembersRequest, + InternalApi.Organization.AddMembersResponse + ) - rpc :DeleteMember, - InternalApi.Organization.DeleteMemberRequest, - InternalApi.Organization.DeleteMemberResponse + rpc( + :DeleteMember, + InternalApi.Organization.DeleteMemberRequest, + InternalApi.Organization.DeleteMemberResponse + ) - rpc :Suspend, InternalApi.Organization.SuspendRequest, InternalApi.Organization.SuspendResponse + rpc(:Suspend, InternalApi.Organization.SuspendRequest, InternalApi.Organization.SuspendResponse) - rpc :Unsuspend, - InternalApi.Organization.UnsuspendRequest, - InternalApi.Organization.UnsuspendResponse + rpc( + :Unsuspend, + InternalApi.Organization.UnsuspendRequest, + InternalApi.Organization.UnsuspendResponse + ) - rpc :Verify, InternalApi.Organization.VerifyRequest, InternalApi.Organization.Organization + rpc(:Verify, InternalApi.Organization.VerifyRequest, InternalApi.Organization.Organization) - rpc :SetOpenSource, - InternalApi.Organization.SetOpenSourceRequest, - InternalApi.Organization.SetOpenSourceResponse + rpc( + :SetOpenSource, + InternalApi.Organization.SetOpenSourceRequest, + InternalApi.Organization.SetOpenSourceResponse + ) - rpc :ListSuspensions, - InternalApi.Organization.ListSuspensionsRequest, - InternalApi.Organization.ListSuspensionsResponse + rpc( + :ListSuspensions, + InternalApi.Organization.ListSuspensionsRequest, + InternalApi.Organization.ListSuspensionsResponse + ) - rpc :Destroy, InternalApi.Organization.DestroyRequest, Google.Protobuf.Empty + rpc(:Destroy, InternalApi.Organization.DestroyRequest, Google.Protobuf.Empty) - rpc :Restore, InternalApi.Organization.RestoreRequest, Google.Protobuf.Empty + rpc(:Restore, InternalApi.Organization.RestoreRequest, Google.Protobuf.Empty) - rpc :RepositoryIntegrators, - InternalApi.Organization.RepositoryIntegratorsRequest, - InternalApi.Organization.RepositoryIntegratorsResponse + rpc( + :RepositoryIntegrators, + InternalApi.Organization.RepositoryIntegratorsRequest, + InternalApi.Organization.RepositoryIntegratorsResponse + ) - rpc :FetchOrganizationContacts, - InternalApi.Organization.FetchOrganizationContactsRequest, - InternalApi.Organization.FetchOrganizationContactsResponse + rpc( + :FetchOrganizationContacts, + InternalApi.Organization.FetchOrganizationContactsRequest, + InternalApi.Organization.FetchOrganizationContactsResponse + ) - rpc :ModifyOrganizationContact, - InternalApi.Organization.ModifyOrganizationContactRequest, - InternalApi.Organization.ModifyOrganizationContactResponse + rpc( + :ModifyOrganizationContact, + InternalApi.Organization.ModifyOrganizationContactRequest, + InternalApi.Organization.ModifyOrganizationContactResponse + ) - rpc :FetchOrganizationSettings, - InternalApi.Organization.FetchOrganizationSettingsRequest, - InternalApi.Organization.FetchOrganizationSettingsResponse + rpc( + :FetchOrganizationSettings, + InternalApi.Organization.FetchOrganizationSettingsRequest, + InternalApi.Organization.FetchOrganizationSettingsResponse + ) - rpc :ModifyOrganizationSettings, - InternalApi.Organization.ModifyOrganizationSettingsRequest, - InternalApi.Organization.ModifyOrganizationSettingsResponse + rpc( + :ModifyOrganizationSettings, + InternalApi.Organization.ModifyOrganizationSettingsRequest, + InternalApi.Organization.ModifyOrganizationSettingsResponse + ) end defmodule InternalApi.Organization.OrganizationService.Stub do @moduledoc false use GRPC.Stub, service: InternalApi.Organization.OrganizationService.Service -end \ No newline at end of file +end diff --git a/rbac/ce/lib/internal_api/projecthub.pb.ex b/rbac/ce/lib/internal_api/projecthub.pb.ex index 982bdec07..639cd791e 100644 --- a/rbac/ce/lib/internal_api/projecthub.pb.ex +++ b/rbac/ce/lib/internal_api/projecthub.pb.ex @@ -3,9 +3,9 @@ defmodule InternalApi.Projecthub.ResponseMeta.Code do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :OK, 0 - field :NOT_FOUND, 2 - field :FAILED_PRECONDITION, 3 + field(:OK, 0) + field(:NOT_FOUND, 2) + field(:FAILED_PRECONDITION, 3) end defmodule InternalApi.Projecthub.Project.Spec.Visibility do @@ -13,8 +13,8 @@ defmodule InternalApi.Projecthub.Project.Spec.Visibility do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :PRIVATE, 0 - field :PUBLIC, 1 + field(:PRIVATE, 0) + field(:PUBLIC, 1) end defmodule InternalApi.Projecthub.Project.Spec.PermissionType do @@ -22,12 +22,12 @@ defmodule InternalApi.Projecthub.Project.Spec.PermissionType do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :EMPTY, 0 - field :DEFAULT_BRANCH, 1 - field :NON_DEFAULT_BRANCH, 2 - field :PULL_REQUEST, 3 - field :FORKED_PULL_REQUEST, 4 - field :TAG, 5 + field(:EMPTY, 0) + field(:DEFAULT_BRANCH, 1) + field(:NON_DEFAULT_BRANCH, 2) + field(:PULL_REQUEST, 3) + field(:FORKED_PULL_REQUEST, 4) + field(:TAG, 5) end defmodule InternalApi.Projecthub.Project.Spec.Repository.RunType do @@ -35,11 +35,11 @@ defmodule InternalApi.Projecthub.Project.Spec.Repository.RunType do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :BRANCHES, 0 - field :TAGS, 1 - field :PULL_REQUESTS, 2 - field :FORKED_PULL_REQUESTS, 3 - field :DRAFT_PULL_REQUESTS, 4 + field(:BRANCHES, 0) + field(:TAGS, 1) + field(:PULL_REQUESTS, 2) + field(:FORKED_PULL_REQUESTS, 3) + field(:DRAFT_PULL_REQUESTS, 4) end defmodule InternalApi.Projecthub.Project.Spec.Repository.Status.PipelineFile.Level do @@ -47,8 +47,8 @@ defmodule InternalApi.Projecthub.Project.Spec.Repository.Status.PipelineFile.Lev use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :BLOCK, 0 - field :PIPELINE, 1 + field(:BLOCK, 0) + field(:PIPELINE, 1) end defmodule InternalApi.Projecthub.Project.Spec.Scheduler.Status do @@ -56,9 +56,9 @@ defmodule InternalApi.Projecthub.Project.Spec.Scheduler.Status do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :STATUS_UNSPECIFIED, 0 - field :STATUS_INACTIVE, 1 - field :STATUS_ACTIVE, 2 + field(:STATUS_UNSPECIFIED, 0) + field(:STATUS_INACTIVE, 1) + field(:STATUS_ACTIVE, 2) end defmodule InternalApi.Projecthub.Project.Spec.Task.Status do @@ -66,9 +66,9 @@ defmodule InternalApi.Projecthub.Project.Spec.Task.Status do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :STATUS_UNSPECIFIED, 0 - field :STATUS_INACTIVE, 1 - field :STATUS_ACTIVE, 2 + field(:STATUS_UNSPECIFIED, 0) + field(:STATUS_INACTIVE, 1) + field(:STATUS_ACTIVE, 2) end defmodule InternalApi.Projecthub.Project.Status.State do @@ -76,10 +76,10 @@ defmodule InternalApi.Projecthub.Project.Status.State do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :INITIALIZING, 0 - field :READY, 1 - field :ERROR, 2 - field :ONBOARDING, 3 + field(:INITIALIZING, 0) + field(:READY, 1) + field(:ERROR, 2) + field(:ONBOARDING, 3) end defmodule InternalApi.Projecthub.ListKeysetRequest.Direction do @@ -87,8 +87,8 @@ defmodule InternalApi.Projecthub.ListKeysetRequest.Direction do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :NEXT, 0 - field :PREVIOUS, 1 + field(:NEXT, 0) + field(:PREVIOUS, 1) end defmodule InternalApi.Projecthub.RequestMeta do @@ -96,11 +96,11 @@ defmodule InternalApi.Projecthub.RequestMeta do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :api_version, 1, type: :string, json_name: "apiVersion" - field :kind, 2, type: :string - field :req_id, 3, type: :string, json_name: "reqId" - field :org_id, 4, type: :string, json_name: "orgId" - field :user_id, 5, type: :string, json_name: "userId" + field(:api_version, 1, type: :string, json_name: "apiVersion") + field(:kind, 2, type: :string) + field(:req_id, 3, type: :string, json_name: "reqId") + field(:org_id, 4, type: :string, json_name: "orgId") + field(:user_id, 5, type: :string, json_name: "userId") end defmodule InternalApi.Projecthub.ResponseMeta.Status do @@ -108,8 +108,8 @@ defmodule InternalApi.Projecthub.ResponseMeta.Status do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :code, 1, type: InternalApi.Projecthub.ResponseMeta.Code, enum: true - field :message, 2, type: :string + field(:code, 1, type: InternalApi.Projecthub.ResponseMeta.Code, enum: true) + field(:message, 2, type: :string) end defmodule InternalApi.Projecthub.ResponseMeta do @@ -117,12 +117,12 @@ defmodule InternalApi.Projecthub.ResponseMeta do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :api_version, 1, type: :string, json_name: "apiVersion" - field :kind, 2, type: :string - field :req_id, 3, type: :string, json_name: "reqId" - field :org_id, 4, type: :string, json_name: "orgId" - field :user_id, 5, type: :string, json_name: "userId" - field :status, 6, type: InternalApi.Projecthub.ResponseMeta.Status + field(:api_version, 1, type: :string, json_name: "apiVersion") + field(:kind, 2, type: :string) + field(:req_id, 3, type: :string, json_name: "reqId") + field(:org_id, 4, type: :string, json_name: "orgId") + field(:user_id, 5, type: :string, json_name: "userId") + field(:status, 6, type: InternalApi.Projecthub.ResponseMeta.Status) end defmodule InternalApi.Projecthub.PaginationRequest do @@ -130,8 +130,8 @@ defmodule InternalApi.Projecthub.PaginationRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :page, 1, type: :int32 - field :page_size, 2, type: :int32, json_name: "pageSize" + field(:page, 1, type: :int32) + field(:page_size, 2, type: :int32, json_name: "pageSize") end defmodule InternalApi.Projecthub.PaginationResponse do @@ -139,10 +139,10 @@ defmodule InternalApi.Projecthub.PaginationResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :page_number, 1, type: :int32, json_name: "pageNumber" - field :page_size, 2, type: :int32, json_name: "pageSize" - field :total_entries, 3, type: :int32, json_name: "totalEntries" - field :total_pages, 4, type: :int32, json_name: "totalPages" + field(:page_number, 1, type: :int32, json_name: "pageNumber") + field(:page_size, 2, type: :int32, json_name: "pageSize") + field(:total_entries, 3, type: :int32, json_name: "totalEntries") + field(:total_pages, 4, type: :int32, json_name: "totalPages") end defmodule InternalApi.Projecthub.Project.Metadata do @@ -150,12 +150,12 @@ defmodule InternalApi.Projecthub.Project.Metadata do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :name, 1, type: :string - field :id, 2, type: :string - field :owner_id, 3, type: :string, json_name: "ownerId" - field :org_id, 4, type: :string, json_name: "orgId" - field :description, 5, type: :string - field :created_at, 6, type: Google.Protobuf.Timestamp, json_name: "createdAt" + field(:name, 1, type: :string) + field(:id, 2, type: :string) + field(:owner_id, 3, type: :string, json_name: "ownerId") + field(:org_id, 4, type: :string, json_name: "orgId") + field(:description, 5, type: :string) + field(:created_at, 6, type: Google.Protobuf.Timestamp, json_name: "createdAt") end defmodule InternalApi.Projecthub.Project.Spec.Repository.ForkedPullRequests do @@ -163,8 +163,8 @@ defmodule InternalApi.Projecthub.Project.Spec.Repository.ForkedPullRequests do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :allowed_secrets, 1, repeated: true, type: :string, json_name: "allowedSecrets" - field :allowed_contributors, 2, repeated: true, type: :string, json_name: "allowedContributors" + field(:allowed_secrets, 1, repeated: true, type: :string, json_name: "allowedSecrets") + field(:allowed_contributors, 2, repeated: true, type: :string, json_name: "allowedContributors") end defmodule InternalApi.Projecthub.Project.Spec.Repository.Status.PipelineFile do @@ -172,11 +172,12 @@ defmodule InternalApi.Projecthub.Project.Spec.Repository.Status.PipelineFile do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :path, 1, type: :string + field(:path, 1, type: :string) - field :level, 2, + field(:level, 2, type: InternalApi.Projecthub.Project.Spec.Repository.Status.PipelineFile.Level, enum: true + ) end defmodule InternalApi.Projecthub.Project.Spec.Repository.Status do @@ -184,10 +185,11 @@ defmodule InternalApi.Projecthub.Project.Spec.Repository.Status do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :pipeline_files, 1, + field(:pipeline_files, 1, repeated: true, type: InternalApi.Projecthub.Project.Spec.Repository.Status.PipelineFile, json_name: "pipelineFiles" + ) end defmodule InternalApi.Projecthub.Project.Spec.Repository.Whitelist do @@ -195,8 +197,8 @@ defmodule InternalApi.Projecthub.Project.Spec.Repository.Whitelist do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :branches, 1, repeated: true, type: :string - field :tags, 2, repeated: true, type: :string + field(:branches, 1, repeated: true, type: :string) + field(:tags, 2, repeated: true, type: :string) end defmodule InternalApi.Projecthub.Project.Spec.Repository do @@ -204,36 +206,39 @@ defmodule InternalApi.Projecthub.Project.Spec.Repository do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - oneof :run_present, 0 + oneof(:run_present, 0) - field :url, 1, type: :string - field :name, 2, type: :string - field :owner, 3, type: :string + field(:url, 1, type: :string) + field(:name, 2, type: :string) + field(:owner, 3, type: :string) - field :run_on, 4, + field(:run_on, 4, repeated: true, type: InternalApi.Projecthub.Project.Spec.Repository.RunType, json_name: "runOn", enum: true + ) - field :forked_pull_requests, 5, + field(:forked_pull_requests, 5, type: InternalApi.Projecthub.Project.Spec.Repository.ForkedPullRequests, json_name: "forkedPullRequests" + ) - field :run, 6, type: :bool, oneof: 0 - field :pipeline_file, 7, type: :string, json_name: "pipelineFile" - field :status, 8, type: InternalApi.Projecthub.Project.Spec.Repository.Status - field :whitelist, 9, type: InternalApi.Projecthub.Project.Spec.Repository.Whitelist - field :public, 10, type: :bool + field(:run, 6, type: :bool, oneof: 0) + field(:pipeline_file, 7, type: :string, json_name: "pipelineFile") + field(:status, 8, type: InternalApi.Projecthub.Project.Spec.Repository.Status) + field(:whitelist, 9, type: InternalApi.Projecthub.Project.Spec.Repository.Whitelist) + field(:public, 10, type: :bool) - field :integration_type, 11, + field(:integration_type, 11, type: InternalApi.RepositoryIntegrator.IntegrationType, json_name: "integrationType", enum: true + ) - field :connected, 12, type: :bool - field :id, 13, type: :string - field :default_branch, 14, type: :string, json_name: "defaultBranch" + field(:connected, 12, type: :bool) + field(:id, 13, type: :string) + field(:default_branch, 14, type: :string, json_name: "defaultBranch") end defmodule InternalApi.Projecthub.Project.Spec.Scheduler do @@ -241,12 +246,12 @@ defmodule InternalApi.Projecthub.Project.Spec.Scheduler do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :id, 1, type: :string - field :name, 2, type: :string - field :branch, 3, type: :string - field :at, 4, type: :string - field :pipeline_file, 5, type: :string, json_name: "pipelineFile" - field :status, 6, type: InternalApi.Projecthub.Project.Spec.Scheduler.Status, enum: true + field(:id, 1, type: :string) + field(:name, 2, type: :string) + field(:branch, 3, type: :string) + field(:at, 4, type: :string) + field(:pipeline_file, 5, type: :string, json_name: "pipelineFile") + field(:status, 6, type: InternalApi.Projecthub.Project.Spec.Scheduler.Status, enum: true) end defmodule InternalApi.Projecthub.Project.Spec.Task.Parameter do @@ -254,11 +259,11 @@ defmodule InternalApi.Projecthub.Project.Spec.Task.Parameter do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :name, 1, type: :string - field :required, 2, type: :bool - field :description, 3, type: :string - field :default_value, 4, type: :string, json_name: "defaultValue" - field :options, 5, repeated: true, type: :string + field(:name, 1, type: :string) + field(:required, 2, type: :bool) + field(:description, 3, type: :string) + field(:default_value, 4, type: :string, json_name: "defaultValue") + field(:options, 5, repeated: true, type: :string) end defmodule InternalApi.Projecthub.Project.Spec.Task do @@ -266,15 +271,15 @@ defmodule InternalApi.Projecthub.Project.Spec.Task do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :id, 1, type: :string - field :name, 2, type: :string - field :branch, 3, type: :string - field :at, 4, type: :string - field :pipeline_file, 5, type: :string, json_name: "pipelineFile" - field :status, 6, type: InternalApi.Projecthub.Project.Spec.Task.Status, enum: true - field :recurring, 7, type: :bool - field :parameters, 8, repeated: true, type: InternalApi.Projecthub.Project.Spec.Task.Parameter - field :description, 9, type: :string + field(:id, 1, type: :string) + field(:name, 2, type: :string) + field(:branch, 3, type: :string) + field(:at, 4, type: :string) + field(:pipeline_file, 5, type: :string, json_name: "pipelineFile") + field(:status, 6, type: InternalApi.Projecthub.Project.Spec.Task.Status, enum: true) + field(:recurring, 7, type: :bool) + field(:parameters, 8, repeated: true, type: InternalApi.Projecthub.Project.Spec.Task.Parameter) + field(:description, 9, type: :string) end defmodule InternalApi.Projecthub.Project.Spec do @@ -282,29 +287,31 @@ defmodule InternalApi.Projecthub.Project.Spec do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :repository, 1, type: InternalApi.Projecthub.Project.Spec.Repository - field :schedulers, 2, repeated: true, type: InternalApi.Projecthub.Project.Spec.Scheduler - field :private, 3, type: :bool - field :public, 4, type: :bool - field :visibility, 5, type: InternalApi.Projecthub.Project.Spec.Visibility, enum: true + field(:repository, 1, type: InternalApi.Projecthub.Project.Spec.Repository) + field(:schedulers, 2, repeated: true, type: InternalApi.Projecthub.Project.Spec.Scheduler) + field(:private, 3, type: :bool) + field(:public, 4, type: :bool) + field(:visibility, 5, type: InternalApi.Projecthub.Project.Spec.Visibility, enum: true) - field :debug_permissions, 6, + field(:debug_permissions, 6, repeated: true, type: InternalApi.Projecthub.Project.Spec.PermissionType, json_name: "debugPermissions", enum: true + ) - field :attach_permissions, 7, + field(:attach_permissions, 7, repeated: true, type: InternalApi.Projecthub.Project.Spec.PermissionType, json_name: "attachPermissions", enum: true + ) - field :custom_permissions, 8, type: :bool, json_name: "customPermissions" - field :artifact_store_id, 9, type: :string, json_name: "artifactStoreId" - field :cache_id, 10, type: :string, json_name: "cacheId" - field :docker_registry_id, 11, type: :string, json_name: "dockerRegistryId" - field :tasks, 12, repeated: true, type: InternalApi.Projecthub.Project.Spec.Task + field(:custom_permissions, 8, type: :bool, json_name: "customPermissions") + field(:artifact_store_id, 9, type: :string, json_name: "artifactStoreId") + field(:cache_id, 10, type: :string, json_name: "cacheId") + field(:docker_registry_id, 11, type: :string, json_name: "dockerRegistryId") + field(:tasks, 12, repeated: true, type: InternalApi.Projecthub.Project.Spec.Task) end defmodule InternalApi.Projecthub.Project.Status.Cache do @@ -312,7 +319,7 @@ defmodule InternalApi.Projecthub.Project.Status.Cache do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true + field(:state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true) end defmodule InternalApi.Projecthub.Project.Status.ArtifactStore do @@ -320,7 +327,7 @@ defmodule InternalApi.Projecthub.Project.Status.ArtifactStore do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true + field(:state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true) end defmodule InternalApi.Projecthub.Project.Status.Repository do @@ -328,7 +335,7 @@ defmodule InternalApi.Projecthub.Project.Status.Repository do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true + field(:state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true) end defmodule InternalApi.Projecthub.Project.Status.Analysis do @@ -336,7 +343,7 @@ defmodule InternalApi.Projecthub.Project.Status.Analysis do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true + field(:state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true) end defmodule InternalApi.Projecthub.Project.Status.Permissions do @@ -344,7 +351,7 @@ defmodule InternalApi.Projecthub.Project.Status.Permissions do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true + field(:state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true) end defmodule InternalApi.Projecthub.Project.Status do @@ -352,17 +359,18 @@ defmodule InternalApi.Projecthub.Project.Status do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true - field :state_reason, 2, type: :string, json_name: "stateReason" - field :cache, 3, type: InternalApi.Projecthub.Project.Status.Cache + field(:state, 1, type: InternalApi.Projecthub.Project.Status.State, enum: true) + field(:state_reason, 2, type: :string, json_name: "stateReason") + field(:cache, 3, type: InternalApi.Projecthub.Project.Status.Cache) - field :artifact_store, 4, + field(:artifact_store, 4, type: InternalApi.Projecthub.Project.Status.ArtifactStore, json_name: "artifactStore" + ) - field :repository, 5, type: InternalApi.Projecthub.Project.Status.Repository - field :analysis, 6, type: InternalApi.Projecthub.Project.Status.Analysis - field :permissions, 7, type: InternalApi.Projecthub.Project.Status.Permissions + field(:repository, 5, type: InternalApi.Projecthub.Project.Status.Repository) + field(:analysis, 6, type: InternalApi.Projecthub.Project.Status.Analysis) + field(:permissions, 7, type: InternalApi.Projecthub.Project.Status.Permissions) end defmodule InternalApi.Projecthub.Project do @@ -370,9 +378,9 @@ defmodule InternalApi.Projecthub.Project do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.Project.Metadata - field :spec, 2, type: InternalApi.Projecthub.Project.Spec - field :status, 3, type: InternalApi.Projecthub.Project.Status + field(:metadata, 1, type: InternalApi.Projecthub.Project.Metadata) + field(:spec, 2, type: InternalApi.Projecthub.Project.Spec) + field(:status, 3, type: InternalApi.Projecthub.Project.Status) end defmodule InternalApi.Projecthub.ListRequest do @@ -380,11 +388,11 @@ defmodule InternalApi.Projecthub.ListRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.RequestMeta - field :pagination, 2, type: InternalApi.Projecthub.PaginationRequest - field :owner_id, 3, type: :string, json_name: "ownerId" - field :repo_url, 4, type: :string, json_name: "repoUrl" - field :soft_deleted, 5, type: :bool, json_name: "softDeleted" + field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) + field(:pagination, 2, type: InternalApi.Projecthub.PaginationRequest) + field(:owner_id, 3, type: :string, json_name: "ownerId") + field(:repo_url, 4, type: :string, json_name: "repoUrl") + field(:soft_deleted, 5, type: :bool, json_name: "softDeleted") end defmodule InternalApi.Projecthub.ListResponse do @@ -392,9 +400,9 @@ defmodule InternalApi.Projecthub.ListResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta - field :pagination, 2, type: InternalApi.Projecthub.PaginationResponse - field :projects, 3, repeated: true, type: InternalApi.Projecthub.Project + field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) + field(:pagination, 2, type: InternalApi.Projecthub.PaginationResponse) + field(:projects, 3, repeated: true, type: InternalApi.Projecthub.Project) end defmodule InternalApi.Projecthub.ListKeysetRequest do @@ -402,13 +410,13 @@ defmodule InternalApi.Projecthub.ListKeysetRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.RequestMeta - field :page_size, 2, type: :int32, json_name: "pageSize" - field :page_token, 3, type: :string, json_name: "pageToken" - field :direction, 4, type: InternalApi.Projecthub.ListKeysetRequest.Direction, enum: true - field :owner_id, 5, type: :string, json_name: "ownerId" - field :repo_url, 6, type: :string, json_name: "repoUrl" - field :created_after, 7, type: Google.Protobuf.Timestamp, json_name: "createdAfter" + field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) + field(:page_size, 2, type: :int32, json_name: "pageSize") + field(:page_token, 3, type: :string, json_name: "pageToken") + field(:direction, 4, type: InternalApi.Projecthub.ListKeysetRequest.Direction, enum: true) + field(:owner_id, 5, type: :string, json_name: "ownerId") + field(:repo_url, 6, type: :string, json_name: "repoUrl") + field(:created_after, 7, type: Google.Protobuf.Timestamp, json_name: "createdAfter") end defmodule InternalApi.Projecthub.ListKeysetResponse do @@ -416,10 +424,10 @@ defmodule InternalApi.Projecthub.ListKeysetResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta - field :projects, 2, repeated: true, type: InternalApi.Projecthub.Project - field :next_page_token, 3, type: :string, json_name: "nextPageToken" - field :previous_page_token, 4, type: :string, json_name: "previousPageToken" + field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) + field(:projects, 2, repeated: true, type: InternalApi.Projecthub.Project) + field(:next_page_token, 3, type: :string, json_name: "nextPageToken") + field(:previous_page_token, 4, type: :string, json_name: "previousPageToken") end defmodule InternalApi.Projecthub.DescribeRequest do @@ -427,11 +435,11 @@ defmodule InternalApi.Projecthub.DescribeRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.RequestMeta - field :id, 2, type: :string - field :name, 3, type: :string - field :detailed, 4, type: :bool - field :soft_deleted, 5, type: :bool, json_name: "softDeleted" + field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) + field(:id, 2, type: :string) + field(:name, 3, type: :string) + field(:detailed, 4, type: :bool) + field(:soft_deleted, 5, type: :bool, json_name: "softDeleted") end defmodule InternalApi.Projecthub.DescribeResponse do @@ -439,8 +447,8 @@ defmodule InternalApi.Projecthub.DescribeResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta - field :project, 2, type: InternalApi.Projecthub.Project + field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) + field(:project, 2, type: InternalApi.Projecthub.Project) end defmodule InternalApi.Projecthub.DescribeManyRequest do @@ -448,9 +456,9 @@ defmodule InternalApi.Projecthub.DescribeManyRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.RequestMeta - field :ids, 2, repeated: true, type: :string - field :soft_deleted, 3, type: :bool, json_name: "softDeleted" + field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) + field(:ids, 2, repeated: true, type: :string) + field(:soft_deleted, 3, type: :bool, json_name: "softDeleted") end defmodule InternalApi.Projecthub.DescribeManyResponse do @@ -458,8 +466,8 @@ defmodule InternalApi.Projecthub.DescribeManyResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta - field :projects, 2, repeated: true, type: InternalApi.Projecthub.Project + field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) + field(:projects, 2, repeated: true, type: InternalApi.Projecthub.Project) end defmodule InternalApi.Projecthub.CreateRequest do @@ -467,9 +475,9 @@ defmodule InternalApi.Projecthub.CreateRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.RequestMeta - field :project, 2, type: InternalApi.Projecthub.Project - field :skip_onboarding, 3, type: :bool, json_name: "skipOnboarding" + field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) + field(:project, 2, type: InternalApi.Projecthub.Project) + field(:skip_onboarding, 3, type: :bool, json_name: "skipOnboarding") end defmodule InternalApi.Projecthub.CreateResponse do @@ -477,8 +485,8 @@ defmodule InternalApi.Projecthub.CreateResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta - field :project, 2, type: InternalApi.Projecthub.Project + field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) + field(:project, 2, type: InternalApi.Projecthub.Project) end defmodule InternalApi.Projecthub.UpdateRequest do @@ -486,9 +494,9 @@ defmodule InternalApi.Projecthub.UpdateRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.RequestMeta - field :project, 2, type: InternalApi.Projecthub.Project - field :omit_schedulers_and_tasks, 3, type: :bool, json_name: "omitSchedulersAndTasks" + field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) + field(:project, 2, type: InternalApi.Projecthub.Project) + field(:omit_schedulers_and_tasks, 3, type: :bool, json_name: "omitSchedulersAndTasks") end defmodule InternalApi.Projecthub.UpdateResponse do @@ -496,8 +504,8 @@ defmodule InternalApi.Projecthub.UpdateResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta - field :project, 2, type: InternalApi.Projecthub.Project + field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) + field(:project, 2, type: InternalApi.Projecthub.Project) end defmodule InternalApi.Projecthub.DestroyRequest do @@ -505,9 +513,9 @@ defmodule InternalApi.Projecthub.DestroyRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.RequestMeta - field :id, 2, type: :string - field :name, 3, type: :string + field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) + field(:id, 2, type: :string) + field(:name, 3, type: :string) end defmodule InternalApi.Projecthub.DestroyResponse do @@ -515,7 +523,7 @@ defmodule InternalApi.Projecthub.DestroyResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta + field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) end defmodule InternalApi.Projecthub.RestoreRequest do @@ -523,8 +531,8 @@ defmodule InternalApi.Projecthub.RestoreRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.RequestMeta - field :id, 2, type: :string + field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) + field(:id, 2, type: :string) end defmodule InternalApi.Projecthub.RestoreResponse do @@ -532,7 +540,7 @@ defmodule InternalApi.Projecthub.RestoreResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta + field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) end defmodule InternalApi.Projecthub.UsersRequest do @@ -540,8 +548,8 @@ defmodule InternalApi.Projecthub.UsersRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.RequestMeta - field :id, 2, type: :string + field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) + field(:id, 2, type: :string) end defmodule InternalApi.Projecthub.UsersResponse do @@ -549,8 +557,8 @@ defmodule InternalApi.Projecthub.UsersResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta - field :users, 2, repeated: true, type: InternalApi.User.User + field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) + field(:users, 2, repeated: true, type: InternalApi.User.User) end defmodule InternalApi.Projecthub.CheckDeployKeyRequest do @@ -558,8 +566,8 @@ defmodule InternalApi.Projecthub.CheckDeployKeyRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.RequestMeta - field :id, 2, type: :string + field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) + field(:id, 2, type: :string) end defmodule InternalApi.Projecthub.CheckDeployKeyResponse.DeployKey do @@ -567,10 +575,10 @@ defmodule InternalApi.Projecthub.CheckDeployKeyResponse.DeployKey do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :title, 1, type: :string - field :fingerprint, 2, type: :string - field :created_at, 3, type: Google.Protobuf.Timestamp, json_name: "createdAt" - field :public_key, 4, type: :string, json_name: "publicKey" + field(:title, 1, type: :string) + field(:fingerprint, 2, type: :string) + field(:created_at, 3, type: Google.Protobuf.Timestamp, json_name: "createdAt") + field(:public_key, 4, type: :string, json_name: "publicKey") end defmodule InternalApi.Projecthub.CheckDeployKeyResponse do @@ -578,11 +586,12 @@ defmodule InternalApi.Projecthub.CheckDeployKeyResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta + field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) - field :deploy_key, 2, + field(:deploy_key, 2, type: InternalApi.Projecthub.CheckDeployKeyResponse.DeployKey, json_name: "deployKey" + ) end defmodule InternalApi.Projecthub.RegenerateDeployKeyRequest do @@ -590,8 +599,8 @@ defmodule InternalApi.Projecthub.RegenerateDeployKeyRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.RequestMeta - field :id, 2, type: :string + field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) + field(:id, 2, type: :string) end defmodule InternalApi.Projecthub.RegenerateDeployKeyResponse.DeployKey do @@ -599,10 +608,10 @@ defmodule InternalApi.Projecthub.RegenerateDeployKeyResponse.DeployKey do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :title, 1, type: :string - field :fingerprint, 2, type: :string - field :created_at, 3, type: Google.Protobuf.Timestamp, json_name: "createdAt" - field :public_key, 4, type: :string, json_name: "publicKey" + field(:title, 1, type: :string) + field(:fingerprint, 2, type: :string) + field(:created_at, 3, type: Google.Protobuf.Timestamp, json_name: "createdAt") + field(:public_key, 4, type: :string, json_name: "publicKey") end defmodule InternalApi.Projecthub.RegenerateDeployKeyResponse do @@ -610,11 +619,12 @@ defmodule InternalApi.Projecthub.RegenerateDeployKeyResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta + field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) - field :deploy_key, 2, + field(:deploy_key, 2, type: InternalApi.Projecthub.RegenerateDeployKeyResponse.DeployKey, json_name: "deployKey" + ) end defmodule InternalApi.Projecthub.CheckWebhookRequest do @@ -622,8 +632,8 @@ defmodule InternalApi.Projecthub.CheckWebhookRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.RequestMeta - field :id, 2, type: :string + field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) + field(:id, 2, type: :string) end defmodule InternalApi.Projecthub.CheckWebhookResponse do @@ -631,8 +641,8 @@ defmodule InternalApi.Projecthub.CheckWebhookResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta - field :webhook, 2, type: InternalApi.Projecthub.Webhook + field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) + field(:webhook, 2, type: InternalApi.Projecthub.Webhook) end defmodule InternalApi.Projecthub.RegenerateWebhookRequest do @@ -640,8 +650,8 @@ defmodule InternalApi.Projecthub.RegenerateWebhookRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.RequestMeta - field :id, 2, type: :string + field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) + field(:id, 2, type: :string) end defmodule InternalApi.Projecthub.RegenerateWebhookResponse do @@ -649,8 +659,8 @@ defmodule InternalApi.Projecthub.RegenerateWebhookResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta - field :webhook, 2, type: InternalApi.Projecthub.Webhook + field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) + field(:webhook, 2, type: InternalApi.Projecthub.Webhook) end defmodule InternalApi.Projecthub.Webhook do @@ -658,7 +668,7 @@ defmodule InternalApi.Projecthub.Webhook do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :url, 1, type: :string + field(:url, 1, type: :string) end defmodule InternalApi.Projecthub.ChangeProjectOwnerRequest do @@ -666,9 +676,9 @@ defmodule InternalApi.Projecthub.ChangeProjectOwnerRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.RequestMeta - field :id, 2, type: :string - field :user_id, 3, type: :string, json_name: "userId" + field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) + field(:id, 2, type: :string) + field(:user_id, 3, type: :string, json_name: "userId") end defmodule InternalApi.Projecthub.ChangeProjectOwnerResponse do @@ -676,7 +686,7 @@ defmodule InternalApi.Projecthub.ChangeProjectOwnerResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta + field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) end defmodule InternalApi.Projecthub.ForkAndCreateRequest do @@ -684,8 +694,8 @@ defmodule InternalApi.Projecthub.ForkAndCreateRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.RequestMeta - field :project, 2, type: InternalApi.Projecthub.Project + field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) + field(:project, 2, type: InternalApi.Projecthub.Project) end defmodule InternalApi.Projecthub.ForkAndCreateResponse do @@ -693,8 +703,8 @@ defmodule InternalApi.Projecthub.ForkAndCreateResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta - field :project, 2, type: InternalApi.Projecthub.Project + field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) + field(:project, 2, type: InternalApi.Projecthub.Project) end defmodule InternalApi.Projecthub.GithubAppSwitchRequest do @@ -702,8 +712,8 @@ defmodule InternalApi.Projecthub.GithubAppSwitchRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.RequestMeta - field :id, 2, type: :string + field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) + field(:id, 2, type: :string) end defmodule InternalApi.Projecthub.GithubAppSwitchResponse do @@ -711,7 +721,7 @@ defmodule InternalApi.Projecthub.GithubAppSwitchResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta + field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) end defmodule InternalApi.Projecthub.FinishOnboardingRequest do @@ -719,8 +729,8 @@ defmodule InternalApi.Projecthub.FinishOnboardingRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.RequestMeta - field :id, 2, type: :string + field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) + field(:id, 2, type: :string) end defmodule InternalApi.Projecthub.FinishOnboardingResponse do @@ -728,7 +738,7 @@ defmodule InternalApi.Projecthub.FinishOnboardingResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta + field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) end defmodule InternalApi.Projecthub.RegenerateWebhookSecretRequest do @@ -736,8 +746,8 @@ defmodule InternalApi.Projecthub.RegenerateWebhookSecretRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.RequestMeta - field :id, 2, type: :string + field(:metadata, 1, type: InternalApi.Projecthub.RequestMeta) + field(:id, 2, type: :string) end defmodule InternalApi.Projecthub.RegenerateWebhookSecretResponse do @@ -745,8 +755,8 @@ defmodule InternalApi.Projecthub.RegenerateWebhookSecretResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :metadata, 1, type: InternalApi.Projecthub.ResponseMeta - field :secret, 2, type: :string + field(:metadata, 1, type: InternalApi.Projecthub.ResponseMeta) + field(:secret, 2, type: :string) end defmodule InternalApi.Projecthub.ProjectCreated do @@ -754,9 +764,9 @@ defmodule InternalApi.Projecthub.ProjectCreated do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :project_id, 1, type: :string, json_name: "projectId" - field :timestamp, 2, type: Google.Protobuf.Timestamp - field :org_id, 3, type: :string, json_name: "orgId" + field(:project_id, 1, type: :string, json_name: "projectId") + field(:timestamp, 2, type: Google.Protobuf.Timestamp) + field(:org_id, 3, type: :string, json_name: "orgId") end defmodule InternalApi.Projecthub.ProjectDeleted do @@ -764,9 +774,9 @@ defmodule InternalApi.Projecthub.ProjectDeleted do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :project_id, 1, type: :string, json_name: "projectId" - field :timestamp, 2, type: Google.Protobuf.Timestamp - field :org_id, 3, type: :string, json_name: "orgId" + field(:project_id, 1, type: :string, json_name: "projectId") + field(:timestamp, 2, type: Google.Protobuf.Timestamp) + field(:org_id, 3, type: :string, json_name: "orgId") end defmodule InternalApi.Projecthub.ProjectRestored do @@ -774,9 +784,9 @@ defmodule InternalApi.Projecthub.ProjectRestored do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :project_id, 1, type: :string, json_name: "projectId" - field :timestamp, 2, type: Google.Protobuf.Timestamp - field :org_id, 3, type: :string, json_name: "orgId" + field(:project_id, 1, type: :string, json_name: "projectId") + field(:timestamp, 2, type: Google.Protobuf.Timestamp) + field(:org_id, 3, type: :string, json_name: "orgId") end defmodule InternalApi.Projecthub.ProjectUpdated do @@ -784,9 +794,9 @@ defmodule InternalApi.Projecthub.ProjectUpdated do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :project_id, 1, type: :string, json_name: "projectId" - field :org_id, 2, type: :string, json_name: "orgId" - field :timestamp, 3, type: Google.Protobuf.Timestamp + field(:project_id, 1, type: :string, json_name: "projectId") + field(:org_id, 2, type: :string, json_name: "orgId") + field(:timestamp, 3, type: Google.Protobuf.Timestamp) end defmodule InternalApi.Projecthub.CollaboratorsChanged do @@ -794,8 +804,8 @@ defmodule InternalApi.Projecthub.CollaboratorsChanged do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :project_id, 1, type: :string, json_name: "projectId" - field :timestamp, 2, type: Google.Protobuf.Timestamp + field(:project_id, 1, type: :string, json_name: "projectId") + field(:timestamp, 2, type: Google.Protobuf.Timestamp) end defmodule InternalApi.Projecthub.ProjectService.Service do @@ -805,67 +815,89 @@ defmodule InternalApi.Projecthub.ProjectService.Service do name: "InternalApi.Projecthub.ProjectService", protoc_gen_elixir_version: "0.13.0" - rpc :List, InternalApi.Projecthub.ListRequest, InternalApi.Projecthub.ListResponse + rpc(:List, InternalApi.Projecthub.ListRequest, InternalApi.Projecthub.ListResponse) - rpc :ListKeyset, - InternalApi.Projecthub.ListKeysetRequest, - InternalApi.Projecthub.ListKeysetResponse + rpc( + :ListKeyset, + InternalApi.Projecthub.ListKeysetRequest, + InternalApi.Projecthub.ListKeysetResponse + ) - rpc :Describe, InternalApi.Projecthub.DescribeRequest, InternalApi.Projecthub.DescribeResponse + rpc(:Describe, InternalApi.Projecthub.DescribeRequest, InternalApi.Projecthub.DescribeResponse) - rpc :DescribeMany, - InternalApi.Projecthub.DescribeManyRequest, - InternalApi.Projecthub.DescribeManyResponse + rpc( + :DescribeMany, + InternalApi.Projecthub.DescribeManyRequest, + InternalApi.Projecthub.DescribeManyResponse + ) - rpc :Create, InternalApi.Projecthub.CreateRequest, InternalApi.Projecthub.CreateResponse + rpc(:Create, InternalApi.Projecthub.CreateRequest, InternalApi.Projecthub.CreateResponse) - rpc :Update, InternalApi.Projecthub.UpdateRequest, InternalApi.Projecthub.UpdateResponse + rpc(:Update, InternalApi.Projecthub.UpdateRequest, InternalApi.Projecthub.UpdateResponse) - rpc :Destroy, InternalApi.Projecthub.DestroyRequest, InternalApi.Projecthub.DestroyResponse + rpc(:Destroy, InternalApi.Projecthub.DestroyRequest, InternalApi.Projecthub.DestroyResponse) - rpc :Restore, InternalApi.Projecthub.RestoreRequest, InternalApi.Projecthub.RestoreResponse + rpc(:Restore, InternalApi.Projecthub.RestoreRequest, InternalApi.Projecthub.RestoreResponse) - rpc :Users, InternalApi.Projecthub.UsersRequest, InternalApi.Projecthub.UsersResponse + rpc(:Users, InternalApi.Projecthub.UsersRequest, InternalApi.Projecthub.UsersResponse) - rpc :CheckDeployKey, - InternalApi.Projecthub.CheckDeployKeyRequest, - InternalApi.Projecthub.CheckDeployKeyResponse + rpc( + :CheckDeployKey, + InternalApi.Projecthub.CheckDeployKeyRequest, + InternalApi.Projecthub.CheckDeployKeyResponse + ) - rpc :RegenerateDeployKey, - InternalApi.Projecthub.RegenerateDeployKeyRequest, - InternalApi.Projecthub.RegenerateDeployKeyResponse + rpc( + :RegenerateDeployKey, + InternalApi.Projecthub.RegenerateDeployKeyRequest, + InternalApi.Projecthub.RegenerateDeployKeyResponse + ) - rpc :CheckWebhook, - InternalApi.Projecthub.CheckWebhookRequest, - InternalApi.Projecthub.CheckWebhookResponse + rpc( + :CheckWebhook, + InternalApi.Projecthub.CheckWebhookRequest, + InternalApi.Projecthub.CheckWebhookResponse + ) - rpc :RegenerateWebhook, - InternalApi.Projecthub.RegenerateWebhookRequest, - InternalApi.Projecthub.RegenerateWebhookResponse + rpc( + :RegenerateWebhook, + InternalApi.Projecthub.RegenerateWebhookRequest, + InternalApi.Projecthub.RegenerateWebhookResponse + ) - rpc :RegenerateWebhookSecret, - InternalApi.Projecthub.RegenerateWebhookSecretRequest, - InternalApi.Projecthub.RegenerateWebhookSecretResponse + rpc( + :RegenerateWebhookSecret, + InternalApi.Projecthub.RegenerateWebhookSecretRequest, + InternalApi.Projecthub.RegenerateWebhookSecretResponse + ) - rpc :ChangeProjectOwner, - InternalApi.Projecthub.ChangeProjectOwnerRequest, - InternalApi.Projecthub.ChangeProjectOwnerResponse + rpc( + :ChangeProjectOwner, + InternalApi.Projecthub.ChangeProjectOwnerRequest, + InternalApi.Projecthub.ChangeProjectOwnerResponse + ) - rpc :ForkAndCreate, - InternalApi.Projecthub.ForkAndCreateRequest, - InternalApi.Projecthub.ForkAndCreateResponse + rpc( + :ForkAndCreate, + InternalApi.Projecthub.ForkAndCreateRequest, + InternalApi.Projecthub.ForkAndCreateResponse + ) - rpc :GithubAppSwitch, - InternalApi.Projecthub.GithubAppSwitchRequest, - InternalApi.Projecthub.GithubAppSwitchResponse + rpc( + :GithubAppSwitch, + InternalApi.Projecthub.GithubAppSwitchRequest, + InternalApi.Projecthub.GithubAppSwitchResponse + ) - rpc :FinishOnboarding, - InternalApi.Projecthub.FinishOnboardingRequest, - InternalApi.Projecthub.FinishOnboardingResponse + rpc( + :FinishOnboarding, + InternalApi.Projecthub.FinishOnboardingRequest, + InternalApi.Projecthub.FinishOnboardingResponse + ) end defmodule InternalApi.Projecthub.ProjectService.Stub do @moduledoc false use GRPC.Stub, service: InternalApi.Projecthub.ProjectService.Service -end \ No newline at end of file +end diff --git a/rbac/ce/lib/internal_api/rbac.pb.ex b/rbac/ce/lib/internal_api/rbac.pb.ex index f7b757f32..a0568caea 100644 --- a/rbac/ce/lib/internal_api/rbac.pb.ex +++ b/rbac/ce/lib/internal_api/rbac.pb.ex @@ -3,9 +3,9 @@ defmodule InternalApi.RBAC.SubjectType do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :USER, 0 - field :GROUP, 1 - field :SERVICE_ACCOUNT, 2 + field(:USER, 0) + field(:GROUP, 1) + field(:SERVICE_ACCOUNT, 2) end defmodule InternalApi.RBAC.Scope do @@ -13,9 +13,9 @@ defmodule InternalApi.RBAC.Scope do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :SCOPE_UNSPECIFIED, 0 - field :SCOPE_ORG, 1 - field :SCOPE_PROJECT, 2 + field(:SCOPE_UNSPECIFIED, 0) + field(:SCOPE_ORG, 1) + field(:SCOPE_PROJECT, 2) end defmodule InternalApi.RBAC.RoleBindingSource do @@ -23,14 +23,14 @@ defmodule InternalApi.RBAC.RoleBindingSource do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :ROLE_BINDING_SOURCE_UNSPECIFIED, 0 - field :ROLE_BINDING_SOURCE_MANUALLY, 1 - field :ROLE_BINDING_SOURCE_GITHUB, 2 - field :ROLE_BINDING_SOURCE_BITBUCKET, 3 - field :ROLE_BINDING_SOURCE_GITLAB, 4 - field :ROLE_BINDING_SOURCE_SCIM, 5 - field :ROLE_BINDING_SOURCE_INHERITED_FROM_ORG_ROLE, 6 - field :ROLE_BINDING_SOURCE_SAML_JIT, 7 + field(:ROLE_BINDING_SOURCE_UNSPECIFIED, 0) + field(:ROLE_BINDING_SOURCE_MANUALLY, 1) + field(:ROLE_BINDING_SOURCE_GITHUB, 2) + field(:ROLE_BINDING_SOURCE_BITBUCKET, 3) + field(:ROLE_BINDING_SOURCE_GITLAB, 4) + field(:ROLE_BINDING_SOURCE_SCIM, 5) + field(:ROLE_BINDING_SOURCE_INHERITED_FROM_ORG_ROLE, 6) + field(:ROLE_BINDING_SOURCE_SAML_JIT, 7) end defmodule InternalApi.RBAC.ListUserPermissionsRequest do @@ -38,9 +38,9 @@ defmodule InternalApi.RBAC.ListUserPermissionsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :org_id, 2, type: :string, json_name: "orgId" - field :project_id, 3, type: :string, json_name: "projectId" + field(:user_id, 1, type: :string, json_name: "userId") + field(:org_id, 2, type: :string, json_name: "orgId") + field(:project_id, 3, type: :string, json_name: "projectId") end defmodule InternalApi.RBAC.ListUserPermissionsResponse do @@ -48,10 +48,10 @@ defmodule InternalApi.RBAC.ListUserPermissionsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :org_id, 2, type: :string, json_name: "orgId" - field :project_id, 3, type: :string, json_name: "projectId" - field :permissions, 4, repeated: true, type: :string + field(:user_id, 1, type: :string, json_name: "userId") + field(:org_id, 2, type: :string, json_name: "orgId") + field(:project_id, 3, type: :string, json_name: "projectId") + field(:permissions, 4, repeated: true, type: :string) end defmodule InternalApi.RBAC.ListExistingPermissionsRequest do @@ -59,7 +59,7 @@ defmodule InternalApi.RBAC.ListExistingPermissionsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :scope, 1, type: InternalApi.RBAC.Scope, enum: true + field(:scope, 1, type: InternalApi.RBAC.Scope, enum: true) end defmodule InternalApi.RBAC.ListExistingPermissionsResponse do @@ -67,7 +67,7 @@ defmodule InternalApi.RBAC.ListExistingPermissionsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :permissions, 1, repeated: true, type: InternalApi.RBAC.Permission + field(:permissions, 1, repeated: true, type: InternalApi.RBAC.Permission) end defmodule InternalApi.RBAC.AssignRoleRequest do @@ -75,8 +75,8 @@ defmodule InternalApi.RBAC.AssignRoleRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :role_assignment, 1, type: InternalApi.RBAC.RoleAssignment, json_name: "roleAssignment" - field :requester_id, 2, type: :string, json_name: "requesterId" + field(:role_assignment, 1, type: InternalApi.RBAC.RoleAssignment, json_name: "roleAssignment") + field(:requester_id, 2, type: :string, json_name: "requesterId") end defmodule InternalApi.RBAC.AssignRoleResponse do @@ -90,8 +90,8 @@ defmodule InternalApi.RBAC.RetractRoleRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :role_assignment, 1, type: InternalApi.RBAC.RoleAssignment, json_name: "roleAssignment" - field :requester_id, 2, type: :string, json_name: "requesterId" + field(:role_assignment, 1, type: InternalApi.RBAC.RoleAssignment, json_name: "roleAssignment") + field(:requester_id, 2, type: :string, json_name: "requesterId") end defmodule InternalApi.RBAC.RetractRoleResponse do @@ -105,10 +105,11 @@ defmodule InternalApi.RBAC.SubjectsHaveRolesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :role_assignments, 1, + field(:role_assignments, 1, repeated: true, type: InternalApi.RBAC.RoleAssignment, json_name: "roleAssignments" + ) end defmodule InternalApi.RBAC.SubjectsHaveRolesResponse.HasRole do @@ -116,8 +117,8 @@ defmodule InternalApi.RBAC.SubjectsHaveRolesResponse.HasRole do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :role_assignment, 1, type: InternalApi.RBAC.RoleAssignment, json_name: "roleAssignment" - field :has_role, 2, type: :bool, json_name: "hasRole" + field(:role_assignment, 1, type: InternalApi.RBAC.RoleAssignment, json_name: "roleAssignment") + field(:has_role, 2, type: :bool, json_name: "hasRole") end defmodule InternalApi.RBAC.SubjectsHaveRolesResponse do @@ -125,10 +126,11 @@ defmodule InternalApi.RBAC.SubjectsHaveRolesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :has_roles, 1, + field(:has_roles, 1, repeated: true, type: InternalApi.RBAC.SubjectsHaveRolesResponse.HasRole, json_name: "hasRoles" + ) end defmodule InternalApi.RBAC.ListRolesRequest do @@ -136,8 +138,8 @@ defmodule InternalApi.RBAC.ListRolesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :scope, 2, type: InternalApi.RBAC.Scope, enum: true + field(:org_id, 1, type: :string, json_name: "orgId") + field(:scope, 2, type: InternalApi.RBAC.Scope, enum: true) end defmodule InternalApi.RBAC.ListRolesResponse do @@ -145,7 +147,7 @@ defmodule InternalApi.RBAC.ListRolesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :roles, 1, repeated: true, type: InternalApi.RBAC.Role + field(:roles, 1, repeated: true, type: InternalApi.RBAC.Role) end defmodule InternalApi.RBAC.DescribeRoleRequest do @@ -153,8 +155,8 @@ defmodule InternalApi.RBAC.DescribeRoleRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :role_id, 2, type: :string, json_name: "roleId" + field(:org_id, 1, type: :string, json_name: "orgId") + field(:role_id, 2, type: :string, json_name: "roleId") end defmodule InternalApi.RBAC.DescribeRoleResponse do @@ -162,7 +164,7 @@ defmodule InternalApi.RBAC.DescribeRoleResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :role, 1, type: InternalApi.RBAC.Role + field(:role, 1, type: InternalApi.RBAC.Role) end defmodule InternalApi.RBAC.ModifyRoleRequest do @@ -170,8 +172,8 @@ defmodule InternalApi.RBAC.ModifyRoleRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :role, 1, type: InternalApi.RBAC.Role - field :requester_id, 2, type: :string, json_name: "requesterId" + field(:role, 1, type: InternalApi.RBAC.Role) + field(:requester_id, 2, type: :string, json_name: "requesterId") end defmodule InternalApi.RBAC.ModifyRoleResponse do @@ -179,7 +181,7 @@ defmodule InternalApi.RBAC.ModifyRoleResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :role, 1, type: InternalApi.RBAC.Role + field(:role, 1, type: InternalApi.RBAC.Role) end defmodule InternalApi.RBAC.DestroyRoleRequest do @@ -187,9 +189,9 @@ defmodule InternalApi.RBAC.DestroyRoleRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :role_id, 2, type: :string, json_name: "roleId" - field :requester_id, 3, type: :string, json_name: "requesterId" + field(:org_id, 1, type: :string, json_name: "orgId") + field(:role_id, 2, type: :string, json_name: "roleId") + field(:requester_id, 3, type: :string, json_name: "requesterId") end defmodule InternalApi.RBAC.DestroyRoleResponse do @@ -197,7 +199,7 @@ defmodule InternalApi.RBAC.DestroyRoleResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :role_id, 1, type: :string, json_name: "roleId" + field(:role_id, 1, type: :string, json_name: "roleId") end defmodule InternalApi.RBAC.ListMembersRequest.Page do @@ -205,8 +207,8 @@ defmodule InternalApi.RBAC.ListMembersRequest.Page do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :page_no, 1, type: :int32, json_name: "pageNo" - field :page_size, 2, type: :int32, json_name: "pageSize" + field(:page_no, 1, type: :int32, json_name: "pageNo") + field(:page_size, 2, type: :int32, json_name: "pageSize") end defmodule InternalApi.RBAC.ListMembersRequest do @@ -214,12 +216,12 @@ defmodule InternalApi.RBAC.ListMembersRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :project_id, 2, type: :string, json_name: "projectId" - field :member_name_contains, 3, type: :string, json_name: "memberNameContains" - field :page, 4, type: InternalApi.RBAC.ListMembersRequest.Page - field :member_has_role, 5, type: :string, json_name: "memberHasRole" - field :member_type, 6, type: InternalApi.RBAC.SubjectType, json_name: "memberType", enum: true + field(:org_id, 1, type: :string, json_name: "orgId") + field(:project_id, 2, type: :string, json_name: "projectId") + field(:member_name_contains, 3, type: :string, json_name: "memberNameContains") + field(:page, 4, type: InternalApi.RBAC.ListMembersRequest.Page) + field(:member_has_role, 5, type: :string, json_name: "memberHasRole") + field(:member_type, 6, type: InternalApi.RBAC.SubjectType, json_name: "memberType", enum: true) end defmodule InternalApi.RBAC.ListMembersResponse.Member do @@ -227,12 +229,13 @@ defmodule InternalApi.RBAC.ListMembersResponse.Member do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :subject, 1, type: InternalApi.RBAC.Subject + field(:subject, 1, type: InternalApi.RBAC.Subject) - field :subject_role_bindings, 3, + field(:subject_role_bindings, 3, repeated: true, type: InternalApi.RBAC.SubjectRoleBinding, json_name: "subjectRoleBindings" + ) end defmodule InternalApi.RBAC.ListMembersResponse do @@ -240,8 +243,8 @@ defmodule InternalApi.RBAC.ListMembersResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :members, 1, repeated: true, type: InternalApi.RBAC.ListMembersResponse.Member - field :total_pages, 2, type: :int32, json_name: "totalPages" + field(:members, 1, repeated: true, type: InternalApi.RBAC.ListMembersResponse.Member) + field(:total_pages, 2, type: :int32, json_name: "totalPages") end defmodule InternalApi.RBAC.CountMembersRequest do @@ -249,7 +252,7 @@ defmodule InternalApi.RBAC.CountMembersRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" + field(:org_id, 1, type: :string, json_name: "orgId") end defmodule InternalApi.RBAC.CountMembersResponse do @@ -257,7 +260,7 @@ defmodule InternalApi.RBAC.CountMembersResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :members, 1, type: :int32 + field(:members, 1, type: :int32) end defmodule InternalApi.RBAC.SubjectRoleBinding do @@ -265,9 +268,9 @@ defmodule InternalApi.RBAC.SubjectRoleBinding do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :role, 1, type: InternalApi.RBAC.Role - field :source, 2, type: InternalApi.RBAC.RoleBindingSource, enum: true - field :role_assigned_at, 3, type: Google.Protobuf.Timestamp, json_name: "roleAssignedAt" + field(:role, 1, type: InternalApi.RBAC.Role) + field(:source, 2, type: InternalApi.RBAC.RoleBindingSource, enum: true) + field(:role_assigned_at, 3, type: Google.Protobuf.Timestamp, json_name: "roleAssignedAt") end defmodule InternalApi.RBAC.ListAccessibleOrgsRequest do @@ -275,7 +278,7 @@ defmodule InternalApi.RBAC.ListAccessibleOrgsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" + field(:user_id, 1, type: :string, json_name: "userId") end defmodule InternalApi.RBAC.ListAccessibleOrgsResponse do @@ -283,7 +286,7 @@ defmodule InternalApi.RBAC.ListAccessibleOrgsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_ids, 1, repeated: true, type: :string, json_name: "orgIds" + field(:org_ids, 1, repeated: true, type: :string, json_name: "orgIds") end defmodule InternalApi.RBAC.ListAccessibleProjectsRequest do @@ -291,8 +294,8 @@ defmodule InternalApi.RBAC.ListAccessibleProjectsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :org_id, 2, type: :string, json_name: "orgId" + field(:user_id, 1, type: :string, json_name: "userId") + field(:org_id, 2, type: :string, json_name: "orgId") end defmodule InternalApi.RBAC.ListAccessibleProjectsResponse do @@ -300,7 +303,7 @@ defmodule InternalApi.RBAC.ListAccessibleProjectsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :project_ids, 1, repeated: true, type: :string, json_name: "projectIds" + field(:project_ids, 1, repeated: true, type: :string, json_name: "projectIds") end defmodule InternalApi.RBAC.RoleAssignment do @@ -308,10 +311,10 @@ defmodule InternalApi.RBAC.RoleAssignment do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :role_id, 1, type: :string, json_name: "roleId" - field :subject, 2, type: InternalApi.RBAC.Subject - field :org_id, 3, type: :string, json_name: "orgId" - field :project_id, 4, type: :string, json_name: "projectId" + field(:role_id, 1, type: :string, json_name: "roleId") + field(:subject, 2, type: InternalApi.RBAC.Subject) + field(:org_id, 3, type: :string, json_name: "orgId") + field(:project_id, 4, type: :string, json_name: "projectId") end defmodule InternalApi.RBAC.Subject do @@ -319,9 +322,14 @@ defmodule InternalApi.RBAC.Subject do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :subject_type, 1, type: InternalApi.RBAC.SubjectType, json_name: "subjectType", enum: true - field :subject_id, 2, type: :string, json_name: "subjectId" - field :display_name, 3, type: :string, json_name: "displayName" + field(:subject_type, 1, + type: InternalApi.RBAC.SubjectType, + json_name: "subjectType", + enum: true + ) + + field(:subject_id, 2, type: :string, json_name: "subjectId") + field(:display_name, 3, type: :string, json_name: "displayName") end defmodule InternalApi.RBAC.RefreshCollaboratorsRequest do @@ -329,7 +337,7 @@ defmodule InternalApi.RBAC.RefreshCollaboratorsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" + field(:org_id, 1, type: :string, json_name: "orgId") end defmodule InternalApi.RBAC.RefreshCollaboratorsResponse do @@ -343,21 +351,22 @@ defmodule InternalApi.RBAC.Role do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :id, 1, type: :string - field :name, 2, type: :string - field :org_id, 3, type: :string, json_name: "orgId" - field :scope, 4, type: InternalApi.RBAC.Scope, enum: true - field :description, 5, type: :string - field :permissions, 6, repeated: true, type: :string + field(:id, 1, type: :string) + field(:name, 2, type: :string) + field(:org_id, 3, type: :string, json_name: "orgId") + field(:scope, 4, type: InternalApi.RBAC.Scope, enum: true) + field(:description, 5, type: :string) + field(:permissions, 6, repeated: true, type: :string) - field :rbac_permissions, 7, + field(:rbac_permissions, 7, repeated: true, type: InternalApi.RBAC.Permission, json_name: "rbacPermissions" + ) - field :inherited_role, 8, type: InternalApi.RBAC.Role, json_name: "inheritedRole" - field :maps_to, 9, type: InternalApi.RBAC.Role, json_name: "mapsTo" - field :readonly, 10, type: :bool + field(:inherited_role, 8, type: InternalApi.RBAC.Role, json_name: "inheritedRole") + field(:maps_to, 9, type: InternalApi.RBAC.Role, json_name: "mapsTo") + field(:readonly, 10, type: :bool) end defmodule InternalApi.RBAC.Permission do @@ -365,10 +374,10 @@ defmodule InternalApi.RBAC.Permission do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :id, 1, type: :string - field :name, 2, type: :string - field :description, 3, type: :string - field :scope, 4, type: InternalApi.RBAC.Scope, enum: true + field(:id, 1, type: :string) + field(:name, 2, type: :string) + field(:description, 3, type: :string) + field(:scope, 4, type: InternalApi.RBAC.Scope, enum: true) end defmodule InternalApi.RBAC.ListSubjectsRequest do @@ -376,8 +385,8 @@ defmodule InternalApi.RBAC.ListSubjectsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :org_id, 1, type: :string, json_name: "orgId" - field :subject_ids, 2, repeated: true, type: :string, json_name: "subjectIds" + field(:org_id, 1, type: :string, json_name: "orgId") + field(:subject_ids, 2, repeated: true, type: :string, json_name: "subjectIds") end defmodule InternalApi.RBAC.ListSubjectsResponse do @@ -385,7 +394,7 @@ defmodule InternalApi.RBAC.ListSubjectsResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :subjects, 1, repeated: true, type: InternalApi.RBAC.Subject + field(:subjects, 1, repeated: true, type: InternalApi.RBAC.Subject) end defmodule InternalApi.RBAC.RBAC.Service do @@ -393,51 +402,63 @@ defmodule InternalApi.RBAC.RBAC.Service do use GRPC.Service, name: "InternalApi.RBAC.RBAC", protoc_gen_elixir_version: "0.13.0" - rpc :ListUserPermissions, - InternalApi.RBAC.ListUserPermissionsRequest, - InternalApi.RBAC.ListUserPermissionsResponse + rpc( + :ListUserPermissions, + InternalApi.RBAC.ListUserPermissionsRequest, + InternalApi.RBAC.ListUserPermissionsResponse + ) - rpc :ListExistingPermissions, - InternalApi.RBAC.ListExistingPermissionsRequest, - InternalApi.RBAC.ListExistingPermissionsResponse + rpc( + :ListExistingPermissions, + InternalApi.RBAC.ListExistingPermissionsRequest, + InternalApi.RBAC.ListExistingPermissionsResponse + ) - rpc :AssignRole, InternalApi.RBAC.AssignRoleRequest, InternalApi.RBAC.AssignRoleResponse + rpc(:AssignRole, InternalApi.RBAC.AssignRoleRequest, InternalApi.RBAC.AssignRoleResponse) - rpc :RetractRole, InternalApi.RBAC.RetractRoleRequest, InternalApi.RBAC.RetractRoleResponse + rpc(:RetractRole, InternalApi.RBAC.RetractRoleRequest, InternalApi.RBAC.RetractRoleResponse) - rpc :SubjectsHaveRoles, - InternalApi.RBAC.SubjectsHaveRolesRequest, - InternalApi.RBAC.SubjectsHaveRolesResponse + rpc( + :SubjectsHaveRoles, + InternalApi.RBAC.SubjectsHaveRolesRequest, + InternalApi.RBAC.SubjectsHaveRolesResponse + ) - rpc :ListRoles, InternalApi.RBAC.ListRolesRequest, InternalApi.RBAC.ListRolesResponse + rpc(:ListRoles, InternalApi.RBAC.ListRolesRequest, InternalApi.RBAC.ListRolesResponse) - rpc :DescribeRole, InternalApi.RBAC.DescribeRoleRequest, InternalApi.RBAC.DescribeRoleResponse + rpc(:DescribeRole, InternalApi.RBAC.DescribeRoleRequest, InternalApi.RBAC.DescribeRoleResponse) - rpc :ModifyRole, InternalApi.RBAC.ModifyRoleRequest, InternalApi.RBAC.ModifyRoleResponse + rpc(:ModifyRole, InternalApi.RBAC.ModifyRoleRequest, InternalApi.RBAC.ModifyRoleResponse) - rpc :DestroyRole, InternalApi.RBAC.DestroyRoleRequest, InternalApi.RBAC.DestroyRoleResponse + rpc(:DestroyRole, InternalApi.RBAC.DestroyRoleRequest, InternalApi.RBAC.DestroyRoleResponse) - rpc :ListMembers, InternalApi.RBAC.ListMembersRequest, InternalApi.RBAC.ListMembersResponse + rpc(:ListMembers, InternalApi.RBAC.ListMembersRequest, InternalApi.RBAC.ListMembersResponse) - rpc :CountMembers, InternalApi.RBAC.CountMembersRequest, InternalApi.RBAC.CountMembersResponse + rpc(:CountMembers, InternalApi.RBAC.CountMembersRequest, InternalApi.RBAC.CountMembersResponse) - rpc :ListAccessibleOrgs, - InternalApi.RBAC.ListAccessibleOrgsRequest, - InternalApi.RBAC.ListAccessibleOrgsResponse + rpc( + :ListAccessibleOrgs, + InternalApi.RBAC.ListAccessibleOrgsRequest, + InternalApi.RBAC.ListAccessibleOrgsResponse + ) - rpc :ListAccessibleProjects, - InternalApi.RBAC.ListAccessibleProjectsRequest, - InternalApi.RBAC.ListAccessibleProjectsResponse + rpc( + :ListAccessibleProjects, + InternalApi.RBAC.ListAccessibleProjectsRequest, + InternalApi.RBAC.ListAccessibleProjectsResponse + ) - rpc :RefreshCollaborators, - InternalApi.RBAC.RefreshCollaboratorsRequest, - InternalApi.RBAC.RefreshCollaboratorsResponse + rpc( + :RefreshCollaborators, + InternalApi.RBAC.RefreshCollaboratorsRequest, + InternalApi.RBAC.RefreshCollaboratorsResponse + ) - rpc :ListSubjects, InternalApi.RBAC.ListSubjectsRequest, InternalApi.RBAC.ListSubjectsResponse + rpc(:ListSubjects, InternalApi.RBAC.ListSubjectsRequest, InternalApi.RBAC.ListSubjectsResponse) end defmodule InternalApi.RBAC.RBAC.Stub do @moduledoc false use GRPC.Stub, service: InternalApi.RBAC.RBAC.Service -end \ No newline at end of file +end diff --git a/rbac/ce/lib/internal_api/repository_integrator.pb.ex b/rbac/ce/lib/internal_api/repository_integrator.pb.ex index a4e73a9c8..7850dce71 100644 --- a/rbac/ce/lib/internal_api/repository_integrator.pb.ex +++ b/rbac/ce/lib/internal_api/repository_integrator.pb.ex @@ -3,11 +3,11 @@ defmodule InternalApi.RepositoryIntegrator.IntegrationType do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :GITHUB_OAUTH_TOKEN, 0 - field :GITHUB_APP, 1 - field :BITBUCKET, 2 - field :GITLAB, 3 - field :GIT, 4 + field(:GITHUB_OAUTH_TOKEN, 0) + field(:GITHUB_APP, 1) + field(:BITBUCKET, 2) + field(:GITLAB, 3) + field(:GIT, 4) end defmodule InternalApi.RepositoryIntegrator.IntegrationScope do @@ -15,9 +15,9 @@ defmodule InternalApi.RepositoryIntegrator.IntegrationScope do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :FULL_CONNECTION, 0 - field :ONLY_PUBLIC, 1 - field :NO_CONNECTION, 2 + field(:FULL_CONNECTION, 0) + field(:ONLY_PUBLIC, 1) + field(:NO_CONNECTION, 2) end defmodule InternalApi.RepositoryIntegrator.GetTokenRequest do @@ -25,15 +25,16 @@ defmodule InternalApi.RepositoryIntegrator.GetTokenRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :repository_slug, 2, type: :string, json_name: "repositorySlug" + field(:user_id, 1, type: :string, json_name: "userId") + field(:repository_slug, 2, type: :string, json_name: "repositorySlug") - field :integration_type, 3, + field(:integration_type, 3, type: InternalApi.RepositoryIntegrator.IntegrationType, json_name: "integrationType", enum: true + ) - field :project_id, 4, type: :string, json_name: "projectId" + field(:project_id, 4, type: :string, json_name: "projectId") end defmodule InternalApi.RepositoryIntegrator.GetTokenResponse do @@ -41,8 +42,8 @@ defmodule InternalApi.RepositoryIntegrator.GetTokenResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :token, 1, type: :string - field :expires_at, 2, type: Google.Protobuf.Timestamp, json_name: "expiresAt" + field(:token, 1, type: :string) + field(:expires_at, 2, type: Google.Protobuf.Timestamp, json_name: "expiresAt") end defmodule InternalApi.RepositoryIntegrator.CheckTokenRequest do @@ -50,7 +51,7 @@ defmodule InternalApi.RepositoryIntegrator.CheckTokenRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :project_id, 1, type: :string, json_name: "projectId" + field(:project_id, 1, type: :string, json_name: "projectId") end defmodule InternalApi.RepositoryIntegrator.CheckTokenResponse do @@ -58,12 +59,13 @@ defmodule InternalApi.RepositoryIntegrator.CheckTokenResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :valid, 1, type: :bool + field(:valid, 1, type: :bool) - field :integration_scope, 2, + field(:integration_scope, 2, type: InternalApi.RepositoryIntegrator.IntegrationScope, json_name: "integrationScope", enum: true + ) end defmodule InternalApi.RepositoryIntegrator.PreheatFileCacheRequest do @@ -71,9 +73,9 @@ defmodule InternalApi.RepositoryIntegrator.PreheatFileCacheRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :project_id, 1, type: :string, json_name: "projectId" - field :path, 2, type: :string - field :ref, 3, type: :string + field(:project_id, 1, type: :string, json_name: "projectId") + field(:path, 2, type: :string) + field(:ref, 3, type: :string) end defmodule InternalApi.RepositoryIntegrator.GetFileRequest do @@ -81,9 +83,9 @@ defmodule InternalApi.RepositoryIntegrator.GetFileRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :project_id, 1, type: :string, json_name: "projectId" - field :path, 2, type: :string - field :ref, 3, type: :string + field(:project_id, 1, type: :string, json_name: "projectId") + field(:path, 2, type: :string) + field(:ref, 3, type: :string) end defmodule InternalApi.RepositoryIntegrator.GetFileResponse do @@ -91,7 +93,7 @@ defmodule InternalApi.RepositoryIntegrator.GetFileResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :content, 1, type: :string + field(:content, 1, type: :string) end defmodule InternalApi.RepositoryIntegrator.GithubInstallationInfoRequest do @@ -99,7 +101,7 @@ defmodule InternalApi.RepositoryIntegrator.GithubInstallationInfoRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :project_id, 1, type: :string, json_name: "projectId" + field(:project_id, 1, type: :string, json_name: "projectId") end defmodule InternalApi.RepositoryIntegrator.GithubInstallationInfoResponse do @@ -107,9 +109,9 @@ defmodule InternalApi.RepositoryIntegrator.GithubInstallationInfoResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :installation_id, 1, type: :int64, json_name: "installationId" - field :application_url, 2, type: :string, json_name: "applicationUrl" - field :installation_url, 3, type: :string, json_name: "installationUrl" + field(:installation_id, 1, type: :int64, json_name: "installationId") + field(:application_url, 2, type: :string, json_name: "applicationUrl") + field(:installation_url, 3, type: :string, json_name: "installationUrl") end defmodule InternalApi.RepositoryIntegrator.InitGithubInstallationRequest do @@ -129,12 +131,13 @@ defmodule InternalApi.RepositoryIntegrator.GetRepositoriesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" + field(:user_id, 1, type: :string, json_name: "userId") - field :integration_type, 2, + field(:integration_type, 2, type: InternalApi.RepositoryIntegrator.IntegrationType, json_name: "integrationType", enum: true + ) end defmodule InternalApi.RepositoryIntegrator.GetRepositoriesResponse do @@ -142,7 +145,7 @@ defmodule InternalApi.RepositoryIntegrator.GetRepositoriesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :repositories, 1, repeated: true, type: InternalApi.RepositoryIntegrator.Repository + field(:repositories, 1, repeated: true, type: InternalApi.RepositoryIntegrator.Repository) end defmodule InternalApi.RepositoryIntegrator.Repository do @@ -150,11 +153,11 @@ defmodule InternalApi.RepositoryIntegrator.Repository do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :addable, 1, type: :bool - field :name, 2, type: :string - field :full_name, 4, type: :string, json_name: "fullName" - field :url, 3, type: :string - field :description, 5, type: :string + field(:addable, 1, type: :bool) + field(:name, 2, type: :string) + field(:full_name, 4, type: :string, json_name: "fullName") + field(:url, 3, type: :string) + field(:description, 5, type: :string) end defmodule InternalApi.RepositoryIntegrator.RepositoryIntegratorService.Service do @@ -164,37 +167,51 @@ defmodule InternalApi.RepositoryIntegrator.RepositoryIntegratorService.Service d name: "InternalApi.RepositoryIntegrator.RepositoryIntegratorService", protoc_gen_elixir_version: "0.13.0" - rpc :GetToken, - InternalApi.RepositoryIntegrator.GetTokenRequest, - InternalApi.RepositoryIntegrator.GetTokenResponse - - rpc :CheckToken, - InternalApi.RepositoryIntegrator.CheckTokenRequest, - InternalApi.RepositoryIntegrator.CheckTokenResponse - - rpc :PreheatFileCache, - InternalApi.RepositoryIntegrator.PreheatFileCacheRequest, - Google.Protobuf.Empty - - rpc :GetFile, - InternalApi.RepositoryIntegrator.GetFileRequest, - InternalApi.RepositoryIntegrator.GetFileResponse - - rpc :GithubInstallationInfo, - InternalApi.RepositoryIntegrator.GithubInstallationInfoRequest, - InternalApi.RepositoryIntegrator.GithubInstallationInfoResponse - - rpc :InitGithubInstallation, - InternalApi.RepositoryIntegrator.InitGithubInstallationRequest, - InternalApi.RepositoryIntegrator.InitGithubInstallationResponse - - rpc :GetRepositories, - InternalApi.RepositoryIntegrator.GetRepositoriesRequest, - InternalApi.RepositoryIntegrator.GetRepositoriesResponse + rpc( + :GetToken, + InternalApi.RepositoryIntegrator.GetTokenRequest, + InternalApi.RepositoryIntegrator.GetTokenResponse + ) + + rpc( + :CheckToken, + InternalApi.RepositoryIntegrator.CheckTokenRequest, + InternalApi.RepositoryIntegrator.CheckTokenResponse + ) + + rpc( + :PreheatFileCache, + InternalApi.RepositoryIntegrator.PreheatFileCacheRequest, + Google.Protobuf.Empty + ) + + rpc( + :GetFile, + InternalApi.RepositoryIntegrator.GetFileRequest, + InternalApi.RepositoryIntegrator.GetFileResponse + ) + + rpc( + :GithubInstallationInfo, + InternalApi.RepositoryIntegrator.GithubInstallationInfoRequest, + InternalApi.RepositoryIntegrator.GithubInstallationInfoResponse + ) + + rpc( + :InitGithubInstallation, + InternalApi.RepositoryIntegrator.InitGithubInstallationRequest, + InternalApi.RepositoryIntegrator.InitGithubInstallationResponse + ) + + rpc( + :GetRepositories, + InternalApi.RepositoryIntegrator.GetRepositoriesRequest, + InternalApi.RepositoryIntegrator.GetRepositoriesResponse + ) end defmodule InternalApi.RepositoryIntegrator.RepositoryIntegratorService.Stub do @moduledoc false use GRPC.Stub, service: InternalApi.RepositoryIntegrator.RepositoryIntegratorService.Service -end \ No newline at end of file +end diff --git a/rbac/ce/lib/internal_api/user.pb.ex b/rbac/ce/lib/internal_api/user.pb.ex index 7ff2ad76d..7122a02c3 100644 --- a/rbac/ce/lib/internal_api/user.pb.ex +++ b/rbac/ce/lib/internal_api/user.pb.ex @@ -3,8 +3,8 @@ defmodule InternalApi.User.Favorite.Kind do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :PROJECT, 0 - field :DASHBOARD, 1 + field(:PROJECT, 0) + field(:DASHBOARD, 1) end defmodule InternalApi.User.DescribeResponse.RepoScope do @@ -12,9 +12,9 @@ defmodule InternalApi.User.DescribeResponse.RepoScope do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :NONE, 0 - field :PUBLIC, 1 - field :PRIVATE, 2 + field(:NONE, 0) + field(:PUBLIC, 1) + field(:PRIVATE, 2) end defmodule InternalApi.User.RepositoryProvider.Type do @@ -22,9 +22,9 @@ defmodule InternalApi.User.RepositoryProvider.Type do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :GITHUB, 0 - field :BITBUCKET, 1 - field :GITLAB, 2 + field(:GITHUB, 0) + field(:BITBUCKET, 1) + field(:GITLAB, 2) end defmodule InternalApi.User.RepositoryProvider.Scope do @@ -32,10 +32,10 @@ defmodule InternalApi.User.RepositoryProvider.Scope do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :NONE, 0 - field :EMAIL, 1 - field :PUBLIC, 2 - field :PRIVATE, 3 + field(:NONE, 0) + field(:EMAIL, 1) + field(:PUBLIC, 2) + field(:PRIVATE, 3) end defmodule InternalApi.User.RepositoryScopes.RepositoryScope.Scope do @@ -43,10 +43,10 @@ defmodule InternalApi.User.RepositoryScopes.RepositoryScope.Scope do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :NONE, 0 - field :EMAIL, 1 - field :PUBLIC, 2 - field :PRIVATE, 3 + field(:NONE, 0) + field(:EMAIL, 1) + field(:PUBLIC, 2) + field(:PRIVATE, 3) end defmodule InternalApi.User.User.CreationSource do @@ -54,9 +54,9 @@ defmodule InternalApi.User.User.CreationSource do use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :NOT_SET, 0 - field :OKTA, 1 - field :SERVICE_ACCOUNT, 2 + field(:NOT_SET, 0) + field(:OKTA, 1) + field(:SERVICE_ACCOUNT, 2) end defmodule InternalApi.User.ListFavoritesRequest do @@ -64,8 +64,8 @@ defmodule InternalApi.User.ListFavoritesRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :organization_id, 2, type: :string, json_name: "organizationId" + field(:user_id, 1, type: :string, json_name: "userId") + field(:organization_id, 2, type: :string, json_name: "organizationId") end defmodule InternalApi.User.ListFavoritesResponse do @@ -73,7 +73,7 @@ defmodule InternalApi.User.ListFavoritesResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :favorites, 1, repeated: true, type: InternalApi.User.Favorite + field(:favorites, 1, repeated: true, type: InternalApi.User.Favorite) end defmodule InternalApi.User.Favorite do @@ -81,10 +81,10 @@ defmodule InternalApi.User.Favorite do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :organization_id, 2, type: :string, json_name: "organizationId" - field :favorite_id, 3, type: :string, json_name: "favoriteId" - field :kind, 4, type: InternalApi.User.Favorite.Kind, enum: true + field(:user_id, 1, type: :string, json_name: "userId") + field(:organization_id, 2, type: :string, json_name: "organizationId") + field(:favorite_id, 3, type: :string, json_name: "favoriteId") + field(:kind, 4, type: InternalApi.User.Favorite.Kind, enum: true) end defmodule InternalApi.User.DescribeManyRequest do @@ -92,7 +92,7 @@ defmodule InternalApi.User.DescribeManyRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_ids, 1, repeated: true, type: :string, json_name: "userIds" + field(:user_ids, 1, repeated: true, type: :string, json_name: "userIds") end defmodule InternalApi.User.DescribeManyResponse do @@ -100,8 +100,8 @@ defmodule InternalApi.User.DescribeManyResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :users, 1, repeated: true, type: InternalApi.User.User - field :status, 2, type: InternalApi.ResponseStatus + field(:users, 1, repeated: true, type: InternalApi.User.User) + field(:status, 2, type: InternalApi.ResponseStatus) end defmodule InternalApi.User.DescribeRequest do @@ -109,7 +109,7 @@ defmodule InternalApi.User.DescribeRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 2, type: :string, json_name: "userId" + field(:user_id, 2, type: :string, json_name: "userId") end defmodule InternalApi.User.DescribeResponse do @@ -117,34 +117,37 @@ defmodule InternalApi.User.DescribeResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: InternalApi.ResponseStatus - field :email, 3, type: :string - field :created_at, 4, type: Google.Protobuf.Timestamp, json_name: "createdAt" - field :avatar_url, 5, type: :string, json_name: "avatarUrl" - field :user_id, 6, type: :string, json_name: "userId" - field :github_token, 7, type: :string, json_name: "githubToken" + field(:status, 1, type: InternalApi.ResponseStatus) + field(:email, 3, type: :string) + field(:created_at, 4, type: Google.Protobuf.Timestamp, json_name: "createdAt") + field(:avatar_url, 5, type: :string, json_name: "avatarUrl") + field(:user_id, 6, type: :string, json_name: "userId") + field(:github_token, 7, type: :string, json_name: "githubToken") - field :github_scope, 12, + field(:github_scope, 12, type: InternalApi.User.DescribeResponse.RepoScope, json_name: "githubScope", enum: true + ) - field :github_uid, 8, type: :string, json_name: "githubUid" - field :name, 10, type: :string - field :github_login, 11, type: :string, json_name: "githubLogin" - field :company, 13, type: :string - field :blocked_at, 14, type: Google.Protobuf.Timestamp, json_name: "blockedAt" + field(:github_uid, 8, type: :string, json_name: "githubUid") + field(:name, 10, type: :string) + field(:github_login, 11, type: :string, json_name: "githubLogin") + field(:company, 13, type: :string) + field(:blocked_at, 14, type: Google.Protobuf.Timestamp, json_name: "blockedAt") - field :repository_scopes, 15, + field(:repository_scopes, 15, type: InternalApi.User.RepositoryScopes, json_name: "repositoryScopes" + ) - field :repository_providers, 16, + field(:repository_providers, 16, repeated: true, type: InternalApi.User.RepositoryProvider, json_name: "repositoryProviders" + ) - field :user, 17, type: InternalApi.User.User + field(:user, 17, type: InternalApi.User.User) end defmodule InternalApi.User.RepositoryProvider do @@ -152,10 +155,10 @@ defmodule InternalApi.User.RepositoryProvider do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :type, 1, type: InternalApi.User.RepositoryProvider.Type, enum: true - field :scope, 2, type: InternalApi.User.RepositoryProvider.Scope, enum: true - field :login, 3, type: :string - field :uid, 4, type: :string + field(:type, 1, type: InternalApi.User.RepositoryProvider.Type, enum: true) + field(:scope, 2, type: InternalApi.User.RepositoryProvider.Scope, enum: true) + field(:login, 3, type: :string) + field(:uid, 4, type: :string) end defmodule InternalApi.User.RepositoryScopes.RepositoryScope do @@ -163,9 +166,9 @@ defmodule InternalApi.User.RepositoryScopes.RepositoryScope do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :scope, 2, type: InternalApi.User.RepositoryScopes.RepositoryScope.Scope, enum: true - field :login, 3, type: :string - field :uid, 4, type: :string + field(:scope, 2, type: InternalApi.User.RepositoryScopes.RepositoryScope.Scope, enum: true) + field(:login, 3, type: :string) + field(:uid, 4, type: :string) end defmodule InternalApi.User.RepositoryScopes do @@ -173,8 +176,8 @@ defmodule InternalApi.User.RepositoryScopes do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :github, 1, type: InternalApi.User.RepositoryScopes.RepositoryScope - field :bitbucket, 2, type: InternalApi.User.RepositoryScopes.RepositoryScope + field(:github, 1, type: InternalApi.User.RepositoryScopes.RepositoryScope) + field(:bitbucket, 2, type: InternalApi.User.RepositoryScopes.RepositoryScope) end defmodule InternalApi.User.UpdateRequest do @@ -182,7 +185,7 @@ defmodule InternalApi.User.UpdateRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user, 1, type: InternalApi.User.User + field(:user, 1, type: InternalApi.User.User) end defmodule InternalApi.User.UpdateResponse do @@ -190,8 +193,8 @@ defmodule InternalApi.User.UpdateResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: Google.Rpc.Status - field :user, 2, type: InternalApi.User.User + field(:status, 1, type: Google.Rpc.Status) + field(:user, 2, type: InternalApi.User.User) end defmodule InternalApi.User.SearchUsersRequest do @@ -199,8 +202,8 @@ defmodule InternalApi.User.SearchUsersRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :query, 1, type: :string - field :limit, 2, type: :int32 + field(:query, 1, type: :string) + field(:limit, 2, type: :int32) end defmodule InternalApi.User.SearchUsersResponse do @@ -208,7 +211,7 @@ defmodule InternalApi.User.SearchUsersResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :users, 1, repeated: true, type: InternalApi.User.User + field(:users, 1, repeated: true, type: InternalApi.User.User) end defmodule InternalApi.User.DeleteWithOwnedOrgsRequest do @@ -216,7 +219,7 @@ defmodule InternalApi.User.DeleteWithOwnedOrgsRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" + field(:user_id, 1, type: :string, json_name: "userId") end defmodule InternalApi.User.RegenerateTokenRequest do @@ -224,7 +227,7 @@ defmodule InternalApi.User.RegenerateTokenRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" + field(:user_id, 1, type: :string, json_name: "userId") end defmodule InternalApi.User.RegenerateTokenResponse do @@ -232,8 +235,8 @@ defmodule InternalApi.User.RegenerateTokenResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :status, 1, type: Google.Rpc.Status - field :api_token, 3, type: :string, json_name: "apiToken" + field(:status, 1, type: Google.Rpc.Status) + field(:api_token, 3, type: :string, json_name: "apiToken") end defmodule InternalApi.User.CheckGithubTokenRequest do @@ -241,7 +244,7 @@ defmodule InternalApi.User.CheckGithubTokenRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" + field(:user_id, 1, type: :string, json_name: "userId") end defmodule InternalApi.User.CheckGithubTokenResponse do @@ -249,9 +252,9 @@ defmodule InternalApi.User.CheckGithubTokenResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :revoked, 1, type: :bool - field :repo, 2, type: :bool - field :public_repo, 3, type: :bool, json_name: "publicRepo" + field(:revoked, 1, type: :bool) + field(:repo, 2, type: :bool) + field(:public_repo, 3, type: :bool, json_name: "publicRepo") end defmodule InternalApi.User.BlockAccountRequest do @@ -259,7 +262,7 @@ defmodule InternalApi.User.BlockAccountRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" + field(:user_id, 1, type: :string, json_name: "userId") end defmodule InternalApi.User.UnblockAccountRequest do @@ -267,7 +270,7 @@ defmodule InternalApi.User.UnblockAccountRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" + field(:user_id, 1, type: :string, json_name: "userId") end defmodule InternalApi.User.GetRepositoryTokenRequest do @@ -275,12 +278,13 @@ defmodule InternalApi.User.GetRepositoryTokenRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" + field(:user_id, 1, type: :string, json_name: "userId") - field :integration_type, 2, + field(:integration_type, 2, type: InternalApi.RepositoryIntegrator.IntegrationType, json_name: "integrationType", enum: true + ) end defmodule InternalApi.User.GetRepositoryTokenResponse do @@ -288,8 +292,8 @@ defmodule InternalApi.User.GetRepositoryTokenResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :token, 1, type: :string - field :expires_at, 2, type: Google.Protobuf.Timestamp, json_name: "expiresAt" + field(:token, 1, type: :string) + field(:expires_at, 2, type: Google.Protobuf.Timestamp, json_name: "expiresAt") end defmodule InternalApi.User.DescribeByRepositoryProviderRequest do @@ -297,7 +301,7 @@ defmodule InternalApi.User.DescribeByRepositoryProviderRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :provider, 1, type: InternalApi.User.RepositoryProvider + field(:provider, 1, type: InternalApi.User.RepositoryProvider) end defmodule InternalApi.User.DescribeByEmailRequest do @@ -305,7 +309,7 @@ defmodule InternalApi.User.DescribeByEmailRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :email, 1, type: :string + field(:email, 1, type: :string) end defmodule InternalApi.User.RefreshRepositoryProviderRequest do @@ -313,8 +317,8 @@ defmodule InternalApi.User.RefreshRepositoryProviderRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :type, 2, type: InternalApi.User.RepositoryProvider.Type, enum: true + field(:user_id, 1, type: :string, json_name: "userId") + field(:type, 2, type: InternalApi.User.RepositoryProvider.Type, enum: true) end defmodule InternalApi.User.RefreshRepositoryProviderResponse do @@ -322,11 +326,12 @@ defmodule InternalApi.User.RefreshRepositoryProviderResponse do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" + field(:user_id, 1, type: :string, json_name: "userId") - field :repository_provider, 2, + field(:repository_provider, 2, type: InternalApi.User.RepositoryProvider, json_name: "repositoryProvider" + ) end defmodule InternalApi.User.CreateRequest do @@ -334,16 +339,17 @@ defmodule InternalApi.User.CreateRequest do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :email, 1, type: :string - field :name, 2, type: :string - field :password, 3, type: :string + field(:email, 1, type: :string) + field(:name, 2, type: :string) + field(:password, 3, type: :string) - field :repository_providers, 4, + field(:repository_providers, 4, repeated: true, type: InternalApi.User.RepositoryProvider, json_name: "repositoryProviders" + ) - field :skip_password_change, 5, type: :bool, json_name: "skipPasswordChange" + field(:skip_password_change, 5, type: :bool, json_name: "skipPasswordChange") end defmodule InternalApi.User.User do @@ -351,31 +357,33 @@ defmodule InternalApi.User.User do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :id, 1, type: :string - field :avatar_url, 3, type: :string, json_name: "avatarUrl" - field :github_uid, 4, type: :string, json_name: "githubUid" - field :name, 5, type: :string - field :github_login, 7, type: :string, json_name: "githubLogin" - field :company, 8, type: :string - field :email, 9, type: :string - field :blocked_at, 10, type: Google.Protobuf.Timestamp, json_name: "blockedAt" - field :created_at, 11, type: Google.Protobuf.Timestamp, json_name: "createdAt" + field(:id, 1, type: :string) + field(:avatar_url, 3, type: :string, json_name: "avatarUrl") + field(:github_uid, 4, type: :string, json_name: "githubUid") + field(:name, 5, type: :string) + field(:github_login, 7, type: :string, json_name: "githubLogin") + field(:company, 8, type: :string) + field(:email, 9, type: :string) + field(:blocked_at, 10, type: Google.Protobuf.Timestamp, json_name: "blockedAt") + field(:created_at, 11, type: Google.Protobuf.Timestamp, json_name: "createdAt") - field :repository_providers, 12, + field(:repository_providers, 12, repeated: true, type: InternalApi.User.RepositoryProvider, json_name: "repositoryProviders" + ) - field :visited_at, 13, type: Google.Protobuf.Timestamp, json_name: "visitedAt" - field :single_org_user, 14, type: :bool, json_name: "singleOrgUser" - field :org_id, 15, type: :string, json_name: "orgId" + field(:visited_at, 13, type: Google.Protobuf.Timestamp, json_name: "visitedAt") + field(:single_org_user, 14, type: :bool, json_name: "singleOrgUser") + field(:org_id, 15, type: :string, json_name: "orgId") - field :creation_source, 16, + field(:creation_source, 16, type: InternalApi.User.User.CreationSource, json_name: "creationSource", enum: true + ) - field :deactivated, 17, type: :bool + field(:deactivated, 17, type: :bool) end defmodule InternalApi.User.UserCreated do @@ -383,9 +391,9 @@ defmodule InternalApi.User.UserCreated do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :timestamp, 2, type: Google.Protobuf.Timestamp - field :invited, 3, type: :bool + field(:user_id, 1, type: :string, json_name: "userId") + field(:timestamp, 2, type: Google.Protobuf.Timestamp) + field(:invited, 3, type: :bool) end defmodule InternalApi.User.UserDeleted do @@ -393,8 +401,8 @@ defmodule InternalApi.User.UserDeleted do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :timestamp, 2, type: Google.Protobuf.Timestamp + field(:user_id, 1, type: :string, json_name: "userId") + field(:timestamp, 2, type: Google.Protobuf.Timestamp) end defmodule InternalApi.User.UserUpdated do @@ -402,8 +410,8 @@ defmodule InternalApi.User.UserUpdated do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :timestamp, 2, type: Google.Protobuf.Timestamp + field(:user_id, 1, type: :string, json_name: "userId") + field(:timestamp, 2, type: Google.Protobuf.Timestamp) end defmodule InternalApi.User.UserJoinedOrganization do @@ -411,9 +419,9 @@ defmodule InternalApi.User.UserJoinedOrganization do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :org_id, 2, type: :string, json_name: "orgId" - field :timestamp, 3, type: Google.Protobuf.Timestamp + field(:user_id, 1, type: :string, json_name: "userId") + field(:org_id, 2, type: :string, json_name: "orgId") + field(:timestamp, 3, type: Google.Protobuf.Timestamp) end defmodule InternalApi.User.UserLeftOrganization do @@ -421,9 +429,9 @@ defmodule InternalApi.User.UserLeftOrganization do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :org_id, 2, type: :string, json_name: "orgId" - field :timestamp, 3, type: Google.Protobuf.Timestamp + field(:user_id, 1, type: :string, json_name: "userId") + field(:org_id, 2, type: :string, json_name: "orgId") + field(:timestamp, 3, type: Google.Protobuf.Timestamp) end defmodule InternalApi.User.MemberInvited do @@ -431,9 +439,9 @@ defmodule InternalApi.User.MemberInvited do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :github_username, 1, type: :string, json_name: "githubUsername" - field :org_id, 2, type: :string, json_name: "orgId" - field :timestamp, 3, type: Google.Protobuf.Timestamp + field(:github_username, 1, type: :string, json_name: "githubUsername") + field(:org_id, 2, type: :string, json_name: "orgId") + field(:timestamp, 3, type: Google.Protobuf.Timestamp) end defmodule InternalApi.User.ActiveOwner do @@ -441,8 +449,8 @@ defmodule InternalApi.User.ActiveOwner do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :timestamp, 3, type: Google.Protobuf.Timestamp + field(:user_id, 1, type: :string, json_name: "userId") + field(:timestamp, 3, type: Google.Protobuf.Timestamp) end defmodule InternalApi.User.InactiveOwner do @@ -450,8 +458,8 @@ defmodule InternalApi.User.InactiveOwner do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :timestamp, 3, type: Google.Protobuf.Timestamp + field(:user_id, 1, type: :string, json_name: "userId") + field(:timestamp, 3, type: Google.Protobuf.Timestamp) end defmodule InternalApi.User.WorkEmailAdded do @@ -459,10 +467,10 @@ defmodule InternalApi.User.WorkEmailAdded do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :user_id, 1, type: :string, json_name: "userId" - field :timestamp, 2, type: Google.Protobuf.Timestamp - field :old_email, 3, type: :string, json_name: "oldEmail" - field :new_email, 4, type: :string, json_name: "newEmail" + field(:user_id, 1, type: :string, json_name: "userId") + field(:timestamp, 2, type: Google.Protobuf.Timestamp) + field(:old_email, 3, type: :string, json_name: "oldEmail") + field(:new_email, 4, type: :string, json_name: "newEmail") end defmodule InternalApi.User.FavoriteCreated do @@ -470,8 +478,8 @@ defmodule InternalApi.User.FavoriteCreated do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :favorite, 1, type: InternalApi.User.Favorite - field :timestamp, 2, type: Google.Protobuf.Timestamp + field(:favorite, 1, type: InternalApi.User.Favorite) + field(:timestamp, 2, type: Google.Protobuf.Timestamp) end defmodule InternalApi.User.FavoriteDeleted do @@ -479,8 +487,8 @@ defmodule InternalApi.User.FavoriteDeleted do use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.13.0" - field :favorite, 1, type: InternalApi.User.Favorite - field :timestamp, 2, type: Google.Protobuf.Timestamp + field(:favorite, 1, type: InternalApi.User.Favorite) + field(:timestamp, 2, type: Google.Protobuf.Timestamp) end defmodule InternalApi.User.UserService.Service do @@ -488,55 +496,67 @@ defmodule InternalApi.User.UserService.Service do use GRPC.Service, name: "InternalApi.User.UserService", protoc_gen_elixir_version: "0.13.0" - rpc :Describe, InternalApi.User.DescribeRequest, InternalApi.User.DescribeResponse + rpc(:Describe, InternalApi.User.DescribeRequest, InternalApi.User.DescribeResponse) - rpc :DescribeByRepositoryProvider, - InternalApi.User.DescribeByRepositoryProviderRequest, - InternalApi.User.User + rpc( + :DescribeByRepositoryProvider, + InternalApi.User.DescribeByRepositoryProviderRequest, + InternalApi.User.User + ) - rpc :DescribeByEmail, InternalApi.User.DescribeByEmailRequest, InternalApi.User.User + rpc(:DescribeByEmail, InternalApi.User.DescribeByEmailRequest, InternalApi.User.User) - rpc :SearchUsers, InternalApi.User.SearchUsersRequest, InternalApi.User.SearchUsersResponse + rpc(:SearchUsers, InternalApi.User.SearchUsersRequest, InternalApi.User.SearchUsersResponse) - rpc :DescribeMany, InternalApi.User.DescribeManyRequest, InternalApi.User.DescribeManyResponse + rpc(:DescribeMany, InternalApi.User.DescribeManyRequest, InternalApi.User.DescribeManyResponse) - rpc :Update, InternalApi.User.UpdateRequest, InternalApi.User.UpdateResponse + rpc(:Update, InternalApi.User.UpdateRequest, InternalApi.User.UpdateResponse) - rpc :DeleteWithOwnedOrgs, InternalApi.User.DeleteWithOwnedOrgsRequest, InternalApi.User.User + rpc(:DeleteWithOwnedOrgs, InternalApi.User.DeleteWithOwnedOrgsRequest, InternalApi.User.User) - rpc :RegenerateToken, - InternalApi.User.RegenerateTokenRequest, - InternalApi.User.RegenerateTokenResponse + rpc( + :RegenerateToken, + InternalApi.User.RegenerateTokenRequest, + InternalApi.User.RegenerateTokenResponse + ) - rpc :ListFavorites, - InternalApi.User.ListFavoritesRequest, - InternalApi.User.ListFavoritesResponse + rpc( + :ListFavorites, + InternalApi.User.ListFavoritesRequest, + InternalApi.User.ListFavoritesResponse + ) - rpc :CreateFavorite, InternalApi.User.Favorite, InternalApi.User.Favorite + rpc(:CreateFavorite, InternalApi.User.Favorite, InternalApi.User.Favorite) - rpc :DeleteFavorite, InternalApi.User.Favorite, InternalApi.User.Favorite + rpc(:DeleteFavorite, InternalApi.User.Favorite, InternalApi.User.Favorite) - rpc :CheckGithubToken, - InternalApi.User.CheckGithubTokenRequest, - InternalApi.User.CheckGithubTokenResponse + rpc( + :CheckGithubToken, + InternalApi.User.CheckGithubTokenRequest, + InternalApi.User.CheckGithubTokenResponse + ) - rpc :BlockAccount, InternalApi.User.BlockAccountRequest, InternalApi.User.User + rpc(:BlockAccount, InternalApi.User.BlockAccountRequest, InternalApi.User.User) - rpc :UnblockAccount, InternalApi.User.UnblockAccountRequest, InternalApi.User.User + rpc(:UnblockAccount, InternalApi.User.UnblockAccountRequest, InternalApi.User.User) - rpc :GetRepositoryToken, - InternalApi.User.GetRepositoryTokenRequest, - InternalApi.User.GetRepositoryTokenResponse + rpc( + :GetRepositoryToken, + InternalApi.User.GetRepositoryTokenRequest, + InternalApi.User.GetRepositoryTokenResponse + ) - rpc :RefreshRepositoryProvider, - InternalApi.User.RefreshRepositoryProviderRequest, - InternalApi.User.RefreshRepositoryProviderResponse + rpc( + :RefreshRepositoryProvider, + InternalApi.User.RefreshRepositoryProviderRequest, + InternalApi.User.RefreshRepositoryProviderResponse + ) - rpc :Create, InternalApi.User.CreateRequest, InternalApi.User.User + rpc(:Create, InternalApi.User.CreateRequest, InternalApi.User.User) end defmodule InternalApi.User.UserService.Stub do @moduledoc false use GRPC.Stub, service: InternalApi.User.UserService.Service -end \ No newline at end of file +end