1 parent
7062bc70f0
commit
be10cc4b42
62 files changed
+440
-438
No files matched your search
@@ -1,18 +1,18 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.26.0
|
||||
// protoc v3.12.4
|
||||
// protoc v3.15.5
|
||||
// source: controller/api/resources/roles/v1/role.proto
|
||||
|
||||
package roles
|
||||
|
||||
import (
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
wrappers "github.com/golang/protobuf/ptypes/wrappers"
|
||||
scopes "github.com/hashicorp/boundary/internal/gen/controller/api/resources/scopes"
|
||||
_ "github.com/hashicorp/boundary/internal/gen/controller/protooptions"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
@@ -235,18 +235,18 @@ type Role struct {
|
||||
// Output only. Scope information for this resource.
|
||||
Scope *scopes.ScopeInfo `protobuf:"bytes,30,opt,name=scope,proto3" json:"scope,omitempty"`
|
||||
// Optional name for identification purposes.
|
||||
Name *wrappers.StringValue `protobuf:"bytes,40,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Name *wrapperspb.StringValue `protobuf:"bytes,40,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Optional user-set description for identification purposes.
|
||||
Description *wrappers.StringValue `protobuf:"bytes,50,opt,name=description,proto3" json:"description,omitempty"`
|
||||
Description *wrapperspb.StringValue `protobuf:"bytes,50,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// Output only. The time this resource was created.
|
||||
CreatedTime *timestamp.Timestamp `protobuf:"bytes,60,opt,name=created_time,proto3" json:"created_time,omitempty"`
|
||||
CreatedTime *timestamppb.Timestamp `protobuf:"bytes,60,opt,name=created_time,proto3" json:"created_time,omitempty"`
|
||||
// Output only. The time this resource was last updated.
|
||||
UpdatedTime *timestamp.Timestamp `protobuf:"bytes,70,opt,name=updated_time,proto3" json:"updated_time,omitempty"`
|
||||
UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,70,opt,name=updated_time,proto3" json:"updated_time,omitempty"`
|
||||
// Version is used in mutation requests, after the initial creation, to ensure this resource has not changed.
|
||||
// The mutation will fail if the version does not match the latest known good version.
|
||||
Version uint32 `protobuf:"varint,80,opt,name=version,proto3" json:"version,omitempty"`
|
||||
// The Scope the grants will apply to. If the Role is at the global scope, this can be an org or project. If the Role is at an org scope, this can be a project within the org. It is invalid for this to be anything other than the Role's scope when the Role's scope is a project.
|
||||
GrantScopeId *wrappers.StringValue `protobuf:"bytes,90,opt,name=grant_scope_id,proto3" json:"grant_scope_id,omitempty"`
|
||||
GrantScopeId *wrapperspb.StringValue `protobuf:"bytes,90,opt,name=grant_scope_id,proto3" json:"grant_scope_id,omitempty"`
|
||||
// Output only. The IDs (only) of principals that are assigned to this role.
|
||||
PrincipalIds []string `protobuf:"bytes,100,rep,name=principal_ids,proto3" json:"principal_ids,omitempty"`
|
||||
// Output only. The principals that are assigned to this role.
|
||||
@@ -312,28 +312,28 @@ func (x *Role) GetScope() *scopes.ScopeInfo {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Role) GetName() *wrappers.StringValue {
|
||||
func (x *Role) GetName() *wrapperspb.StringValue {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Role) GetDescription() *wrappers.StringValue {
|
||||
func (x *Role) GetDescription() *wrapperspb.StringValue {
|
||||
if x != nil {
|
||||
return x.Description
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Role) GetCreatedTime() *timestamp.Timestamp {
|
||||
func (x *Role) GetCreatedTime() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.CreatedTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Role) GetUpdatedTime() *timestamp.Timestamp {
|
||||
func (x *Role) GetUpdatedTime() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.UpdatedTime
|
||||
}
|
||||
@@ -347,7 +347,7 @@ func (x *Role) GetVersion() uint32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Role) GetGrantScopeId() *wrappers.StringValue {
|
||||
func (x *Role) GetGrantScopeId() *wrapperspb.StringValue {
|
||||
if x != nil {
|
||||
return x.GrantScopeId
|
||||
}
|
||||
@@ -498,13 +498,13 @@ func file_controller_api_resources_roles_v1_role_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_controller_api_resources_roles_v1_role_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_controller_api_resources_roles_v1_role_proto_goTypes = []interface{}{
|
||||
(*Principal)(nil), // 0: controller.api.resources.roles.v1.Principal
|
||||
(*GrantJson)(nil), // 1: controller.api.resources.roles.v1.GrantJson
|
||||
(*Grant)(nil), // 2: controller.api.resources.roles.v1.Grant
|
||||
(*Role)(nil), // 3: controller.api.resources.roles.v1.Role
|
||||
(*scopes.ScopeInfo)(nil), // 4: controller.api.resources.scopes.v1.ScopeInfo
|
||||
(*wrappers.StringValue)(nil), // 5: google.protobuf.StringValue
|
||||
(*timestamp.Timestamp)(nil), // 6: google.protobuf.Timestamp
|
||||
(*Principal)(nil), // 0: controller.api.resources.roles.v1.Principal
|
||||
(*GrantJson)(nil), // 1: controller.api.resources.roles.v1.GrantJson
|
||||
(*Grant)(nil), // 2: controller.api.resources.roles.v1.Grant
|
||||
(*Role)(nil), // 3: controller.api.resources.roles.v1.Role
|
||||
(*scopes.ScopeInfo)(nil), // 4: controller.api.resources.scopes.v1.ScopeInfo
|
||||
(*wrapperspb.StringValue)(nil), // 5: google.protobuf.StringValue
|
||||
(*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp
|
||||
}
|
||||
var file_controller_api_resources_roles_v1_role_proto_depIdxs = []int32{
|
||||
1, // 0: controller.api.resources.roles.v1.Grant.json:type_name -> controller.api.resources.roles.v1.GrantJson
|
||||
|
||||
Reference in new issue
Block a user