From b2efce961dd818149011896cebc8816883ca72f6 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Fri, 26 Nov 2021 13:56:34 -0800 Subject: [PATCH] Fix comment on sync_interval_seconds being invalid (#1745) --- internal/gen/controller.swagger.json | 2 +- .../controller/api/resources/hostsets/v1/host_set.proto | 8 ++++---- sdk/pbs/controller/api/resources/hostsets/host_set.pb.go | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/internal/gen/controller.swagger.json b/internal/gen/controller.swagger.json index 19a41be77..abfc39771 100644 --- a/internal/gen/controller.swagger.json +++ b/internal/gen/controller.swagger.json @@ -4337,7 +4337,7 @@ "sync_interval_seconds": { "type": "integer", "format": "int32", - "description": "An interger number of seconds indicating the amount of time that should\nelapse between syncs of the host set. The interval will be applied to the\nend of the previous sync operation, not the start. Setting to any\nnegative value will disable syncing for that host set; setting to zero\nwill cause the set to use Boundary's default. The default may change\nbetween releases. May not be valid for all plugin types." + "description": "An interger number of seconds indicating the amount of time that should\nelapse between syncs of the host set. The interval will be applied to the\nend of the previous sync operation, not the start. Setting to -1 will\ndisable syncing for that host set; setting to zero will cause the set to\nuse Boundary's default. The default may change between releases. May not\nbe valid for all plugin types." }, "attributes": { "type": "object", diff --git a/internal/proto/local/controller/api/resources/hostsets/v1/host_set.proto b/internal/proto/local/controller/api/resources/hostsets/v1/host_set.proto index d5baf1535..952ece673 100644 --- a/internal/proto/local/controller/api/resources/hostsets/v1/host_set.proto +++ b/internal/proto/local/controller/api/resources/hostsets/v1/host_set.proto @@ -57,10 +57,10 @@ message HostSet { // An interger number of seconds indicating the amount of time that should // elapse between syncs of the host set. The interval will be applied to the - // end of the previous sync operation, not the start. Setting to any - // negative value will disable syncing for that host set; setting to zero - // will cause the set to use Boundary's default. The default may change - // between releases. May not be valid for all plugin types. + // end of the previous sync operation, not the start. Setting to -1 will + // disable syncing for that host set; setting to zero will cause the set to + // use Boundary's default. The default may change between releases. May not + // be valid for all plugin types. google.protobuf.Int32Value sync_interval_seconds = 102 [json_name="sync_interval_seconds", (custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"sync_interval_seconds" that: "SyncIntervalSeconds"}]; // The attributes that are applicable for the specific Host Set type. diff --git a/sdk/pbs/controller/api/resources/hostsets/host_set.pb.go b/sdk/pbs/controller/api/resources/hostsets/host_set.pb.go index f87ceffde..f8bc5fece 100644 --- a/sdk/pbs/controller/api/resources/hostsets/host_set.pb.go +++ b/sdk/pbs/controller/api/resources/hostsets/host_set.pb.go @@ -64,10 +64,10 @@ type HostSet struct { PreferredEndpoints []string `protobuf:"bytes,101,rep,name=preferred_endpoints,proto3" json:"preferred_endpoints,omitempty"` // An interger number of seconds indicating the amount of time that should // elapse between syncs of the host set. The interval will be applied to the - // end of the previous sync operation, not the start. Setting to any - // negative value will disable syncing for that host set; setting to zero - // will cause the set to use Boundary's default. The default may change - // between releases. May not be valid for all plugin types. + // end of the previous sync operation, not the start. Setting to -1 will + // disable syncing for that host set; setting to zero will cause the set to + // use Boundary's default. The default may change between releases. May not + // be valid for all plugin types. SyncIntervalSeconds *wrapperspb.Int32Value `protobuf:"bytes,102,opt,name=sync_interval_seconds,proto3" json:"sync_interval_seconds,omitempty"` // The attributes that are applicable for the specific Host Set type. Attributes *structpb.Struct `protobuf:"bytes,110,opt,name=attributes,proto3" json:"attributes,omitempty"`