Skip to content

Commit

Permalink
Merge pull request #141 from ImMin5/master
Browse files Browse the repository at this point in the history
Remove http url from proto files
  • Loading branch information
ImMin5 authored Oct 20, 2023
2 parents 1f53cc7 + 6896736 commit d6cd1fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 30 deletions.
14 changes: 2 additions & 12 deletions proto/spaceone/api/plugin/v1/plugin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ import "google/api/annotations.proto";

service Plugin {
// Gets the `endpoint` of a specific plugin instance. A Plugin returns only a single `endpoint` by determining `labels` and `priority`. If the requested plugin instance is already deployed, the `endpoint` is returned. If not, the `endpoint` is returned after deploying the plugin instance.
rpc get_plugin_endpoint (PluginEndpointRequest) returns (PluginEndpoint) {
option (google.api.http) = {
post: "/plugin/v1/plugin/get-plugin-endpoint"
body: "*"
};
}
rpc get_plugin_endpoint (PluginEndpointRequest) returns (PluginEndpoint){}

rpc get_plugin_metadata (PluginMetadataRequest) returns (PluginMetadata) {
option (google.api.http) = {
Expand All @@ -25,12 +20,7 @@ service Plugin {
};
}

rpc notify_failure (PluginFailureRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
post: "/plugin/v1/plugin/notify-failure"
body: "*"
};
}
rpc notify_failure (PluginFailureRequest) returns (google.protobuf.Empty) {}
}

//{
Expand Down
21 changes: 3 additions & 18 deletions proto/spaceone/api/repository/v1/repository.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,13 @@ import "spaceone/api/core/v1/query.proto";

service Repository {
// Registers a Repository. The parameter `name` can only include alphabets, numbers, and hyphens(-). The parameter `repository_type` can be either `local` or `remote`. The parameter `endpoint` is needed if the `repository_type` is `remote`.
rpc register (CreateRepositoryRequest) returns (RepositoryInfo) {
option (google.api.http) = {
post: "/repository/v1/repository/register"
body: "*"
};
}
rpc register (CreateRepositoryRequest) returns (RepositoryInfo) {}

// Updates a specific Repository registered. You must specify the `repository_id` of the Repository to update. You can make changes in Repository settings, including `name`.
rpc update (UpdateRepositoryRequest) returns (RepositoryInfo) {
option (google.api.http) = {
post: "/repository/v1/repository/update"
body: "*"
};
}
rpc update (UpdateRepositoryRequest) returns (RepositoryInfo) {}

// Deregisters and deletes a specific Repository. You must specify the `repository_id` of the Repository to deregister.
rpc deregister (RepositoryRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
post: "/repository/v1/repository/deregister"
body: "*"
};
}
rpc deregister (RepositoryRequest) returns (google.protobuf.Empty) {}

// Gets a specific Repository. Prints detailed information about the Repository, including `name`, `repository_type`, and `endpoint`.
rpc get (GetRepositoryRequest) returns (RepositoryInfo) {
Expand Down

0 comments on commit d6cd1fc

Please sign in to comment.