Implement UpdateWorker service method (#2133)

This commit is contained in:
Todd authored and GitHub committed 2022-06-06 10:52:50 -07:00
1 parent 07008e80ff
commit 43bcbba47f
6 files changed
+687 -99

No files matched your search

@@ -62,7 +62,13 @@ message Worker {
uint32 version = 80; // @gotags: `class:"public"`
// The address that this worker is reachable at.
google.protobuf.StringValue address = 90; // @gotags: `class:"public"`
google.protobuf.StringValue address = 90 [
(custom_options.v1.generate_sdk_option) = true,
(custom_options.v1.mask_mapping) = {
this: "address"
that: "address"
}
]; // @gotags: `class:"public"`
// Output only. This is the address used by authorized session. The value
// is the same as the address field if set. Otherwise it uses the address the
@@ -2,6 +2,7 @@ syntax = "proto3";
package controller.storage.servers.store.v1;
import "controller/custom_options/v1/options.proto";
import "controller/storage/timestamp/v1/timestamp.proto";
option go_package = "github.com/hashicorp/boundary/internal/servers/store;store";
@@ -14,15 +15,24 @@ message Worker {
// Name of the resource (optional)
// @inject_tag: `gorm:"default:null"`
string name = 20;
string name = 20 [(custom_options.v1.mask_mapping) = {
this: "name"
that: "name"
}];
// Description of the resource (optional)
// @inject_tag: `gorm:"default:null"`
string description = 30;
string description = 30 [(custom_options.v1.mask_mapping) = {
this: "description"
that: "description"
}];
// Address for the worker. This is optional.
// @inject_tag: `gorm:"default:null"`
string address = 40;
string address = 40 [(custom_options.v1.mask_mapping) = {
this: "address"
that: "address"
}];
// The create_time is set by the database.
// @inject_tag: `gorm:"default:current_timestamp"`