Constants
Folders_GetFolder_FullMethodName, Folders_ListFolders_FullMethodName, Folders_SearchFolders_FullMethodName, Folders_CreateFolder_FullMethodName, Folders_UpdateFolder_FullMethodName, Folders_MoveFolder_FullMethodName, Folders_DeleteFolder_FullMethodName, Folders_UndeleteFolder_FullMethodName, Folders_GetIamPolicy_FullMethodName, Folders_SetIamPolicy_FullMethodName, Folders_TestIamPermissions_FullMethodName
const (
Folders_GetFolder_FullMethodName = "/google.cloud.resourcemanager.v3.Folders/GetFolder"
Folders_ListFolders_FullMethodName = "/google.cloud.resourcemanager.v3.Folders/ListFolders"
Folders_SearchFolders_FullMethodName = "/google.cloud.resourcemanager.v3.Folders/SearchFolders"
Folders_CreateFolder_FullMethodName = "/google.cloud.resourcemanager.v3.Folders/CreateFolder"
Folders_UpdateFolder_FullMethodName = "/google.cloud.resourcemanager.v3.Folders/UpdateFolder"
Folders_MoveFolder_FullMethodName = "/google.cloud.resourcemanager.v3.Folders/MoveFolder"
Folders_DeleteFolder_FullMethodName = "/google.cloud.resourcemanager.v3.Folders/DeleteFolder"
Folders_UndeleteFolder_FullMethodName = "/google.cloud.resourcemanager.v3.Folders/UndeleteFolder"
Folders_GetIamPolicy_FullMethodName = "/google.cloud.resourcemanager.v3.Folders/GetIamPolicy"
Folders_SetIamPolicy_FullMethodName = "/google.cloud.resourcemanager.v3.Folders/SetIamPolicy"
Folders_TestIamPermissions_FullMethodName = "/google.cloud.resourcemanager.v3.Folders/TestIamPermissions"
)Organizations_GetOrganization_FullMethodName, Organizations_SearchOrganizations_FullMethodName, Organizations_GetIamPolicy_FullMethodName, Organizations_SetIamPolicy_FullMethodName, Organizations_TestIamPermissions_FullMethodName
const (
Organizations_GetOrganization_FullMethodName = "/google.cloud.resourcemanager.v3.Organizations/GetOrganization"
Organizations_SearchOrganizations_FullMethodName = "/google.cloud.resourcemanager.v3.Organizations/SearchOrganizations"
Organizations_GetIamPolicy_FullMethodName = "/google.cloud.resourcemanager.v3.Organizations/GetIamPolicy"
Organizations_SetIamPolicy_FullMethodName = "/google.cloud.resourcemanager.v3.Organizations/SetIamPolicy"
Organizations_TestIamPermissions_FullMethodName = "/google.cloud.resourcemanager.v3.Organizations/TestIamPermissions"
)Projects_GetProject_FullMethodName, Projects_ListProjects_FullMethodName, Projects_SearchProjects_FullMethodName, Projects_CreateProject_FullMethodName, Projects_UpdateProject_FullMethodName, Projects_MoveProject_FullMethodName, Projects_DeleteProject_FullMethodName, Projects_UndeleteProject_FullMethodName, Projects_GetIamPolicy_FullMethodName, Projects_SetIamPolicy_FullMethodName, Projects_TestIamPermissions_FullMethodName
const (
Projects_GetProject_FullMethodName = "/google.cloud.resourcemanager.v3.Projects/GetProject"
Projects_ListProjects_FullMethodName = "/google.cloud.resourcemanager.v3.Projects/ListProjects"
Projects_SearchProjects_FullMethodName = "/google.cloud.resourcemanager.v3.Projects/SearchProjects"
Projects_CreateProject_FullMethodName = "/google.cloud.resourcemanager.v3.Projects/CreateProject"
Projects_UpdateProject_FullMethodName = "/google.cloud.resourcemanager.v3.Projects/UpdateProject"
Projects_MoveProject_FullMethodName = "/google.cloud.resourcemanager.v3.Projects/MoveProject"
Projects_DeleteProject_FullMethodName = "/google.cloud.resourcemanager.v3.Projects/DeleteProject"
Projects_UndeleteProject_FullMethodName = "/google.cloud.resourcemanager.v3.Projects/UndeleteProject"
Projects_GetIamPolicy_FullMethodName = "/google.cloud.resourcemanager.v3.Projects/GetIamPolicy"
Projects_SetIamPolicy_FullMethodName = "/google.cloud.resourcemanager.v3.Projects/SetIamPolicy"
Projects_TestIamPermissions_FullMethodName = "/google.cloud.resourcemanager.v3.Projects/TestIamPermissions"
)TagBindings_ListTagBindings_FullMethodName, TagBindings_CreateTagBinding_FullMethodName, TagBindings_DeleteTagBinding_FullMethodName, TagBindings_ListEffectiveTags_FullMethodName
const (
TagBindings_ListTagBindings_FullMethodName = "/google.cloud.resourcemanager.v3.TagBindings/ListTagBindings"
TagBindings_CreateTagBinding_FullMethodName = "/google.cloud.resourcemanager.v3.TagBindings/CreateTagBinding"
TagBindings_DeleteTagBinding_FullMethodName = "/google.cloud.resourcemanager.v3.TagBindings/DeleteTagBinding"
TagBindings_ListEffectiveTags_FullMethodName = "/google.cloud.resourcemanager.v3.TagBindings/ListEffectiveTags"
)TagHolds_CreateTagHold_FullMethodName, TagHolds_DeleteTagHold_FullMethodName, TagHolds_ListTagHolds_FullMethodName
const (
TagHolds_CreateTagHold_FullMethodName = "/google.cloud.resourcemanager.v3.TagHolds/CreateTagHold"
TagHolds_DeleteTagHold_FullMethodName = "/google.cloud.resourcemanager.v3.TagHolds/DeleteTagHold"
TagHolds_ListTagHolds_FullMethodName = "/google.cloud.resourcemanager.v3.TagHolds/ListTagHolds"
)TagKeys_ListTagKeys_FullMethodName, TagKeys_GetTagKey_FullMethodName, TagKeys_GetNamespacedTagKey_FullMethodName, TagKeys_CreateTagKey_FullMethodName, TagKeys_UpdateTagKey_FullMethodName, TagKeys_DeleteTagKey_FullMethodName, TagKeys_GetIamPolicy_FullMethodName, TagKeys_SetIamPolicy_FullMethodName, TagKeys_TestIamPermissions_FullMethodName
const (
TagKeys_ListTagKeys_FullMethodName = "/google.cloud.resourcemanager.v3.TagKeys/ListTagKeys"
TagKeys_GetTagKey_FullMethodName = "/google.cloud.resourcemanager.v3.TagKeys/GetTagKey"
TagKeys_GetNamespacedTagKey_FullMethodName = "/google.cloud.resourcemanager.v3.TagKeys/GetNamespacedTagKey"
TagKeys_CreateTagKey_FullMethodName = "/google.cloud.resourcemanager.v3.TagKeys/CreateTagKey"
TagKeys_UpdateTagKey_FullMethodName = "/google.cloud.resourcemanager.v3.TagKeys/UpdateTagKey"
TagKeys_DeleteTagKey_FullMethodName = "/google.cloud.resourcemanager.v3.TagKeys/DeleteTagKey"
TagKeys_GetIamPolicy_FullMethodName = "/google.cloud.resourcemanager.v3.TagKeys/GetIamPolicy"
TagKeys_SetIamPolicy_FullMethodName = "/google.cloud.resourcemanager.v3.TagKeys/SetIamPolicy"
TagKeys_TestIamPermissions_FullMethodName = "/google.cloud.resourcemanager.v3.TagKeys/TestIamPermissions"
)TagValues_ListTagValues_FullMethodName, TagValues_GetTagValue_FullMethodName, TagValues_GetNamespacedTagValue_FullMethodName, TagValues_CreateTagValue_FullMethodName, TagValues_UpdateTagValue_FullMethodName, TagValues_DeleteTagValue_FullMethodName, TagValues_GetIamPolicy_FullMethodName, TagValues_SetIamPolicy_FullMethodName, TagValues_TestIamPermissions_FullMethodName
const (
TagValues_ListTagValues_FullMethodName = "/google.cloud.resourcemanager.v3.TagValues/ListTagValues"
TagValues_GetTagValue_FullMethodName = "/google.cloud.resourcemanager.v3.TagValues/GetTagValue"
TagValues_GetNamespacedTagValue_FullMethodName = "/google.cloud.resourcemanager.v3.TagValues/GetNamespacedTagValue"
TagValues_CreateTagValue_FullMethodName = "/google.cloud.resourcemanager.v3.TagValues/CreateTagValue"
TagValues_UpdateTagValue_FullMethodName = "/google.cloud.resourcemanager.v3.TagValues/UpdateTagValue"
TagValues_DeleteTagValue_FullMethodName = "/google.cloud.resourcemanager.v3.TagValues/DeleteTagValue"
TagValues_GetIamPolicy_FullMethodName = "/google.cloud.resourcemanager.v3.TagValues/GetIamPolicy"
TagValues_SetIamPolicy_FullMethodName = "/google.cloud.resourcemanager.v3.TagValues/SetIamPolicy"
TagValues_TestIamPermissions_FullMethodName = "/google.cloud.resourcemanager.v3.TagValues/TestIamPermissions"
)Variables
Folder_State_name, Folder_State_value
var (
Folder_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "ACTIVE",
2: "DELETE_REQUESTED",
}
Folder_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"ACTIVE": 1,
"DELETE_REQUESTED": 2,
}
)Enum value maps for Folder_State.
Organization_State_name, Organization_State_value
var (
Organization_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "ACTIVE",
2: "DELETE_REQUESTED",
}
Organization_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"ACTIVE": 1,
"DELETE_REQUESTED": 2,
}
)Enum value maps for Organization_State.
Project_State_name, Project_State_value
var (
Project_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "ACTIVE",
2: "DELETE_REQUESTED",
}
Project_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"ACTIVE": 1,
"DELETE_REQUESTED": 2,
}
)Enum value maps for Project_State.
Purpose_name, Purpose_value
var (
Purpose_name = map[int32]string{
0: "PURPOSE_UNSPECIFIED",
1: "GCE_FIREWALL",
}
Purpose_value = map[string]int32{
"PURPOSE_UNSPECIFIED": 0,
"GCE_FIREWALL": 1,
}
)Enum value maps for Purpose.
File_google_cloud_resourcemanager_v3_folders_proto
var File_google_cloud_resourcemanager_v3_folders_proto protoreflect.FileDescriptorFile_google_cloud_resourcemanager_v3_organizations_proto
var File_google_cloud_resourcemanager_v3_organizations_proto protoreflect.FileDescriptorFile_google_cloud_resourcemanager_v3_projects_proto
var File_google_cloud_resourcemanager_v3_projects_proto protoreflect.FileDescriptorFile_google_cloud_resourcemanager_v3_tag_bindings_proto
var File_google_cloud_resourcemanager_v3_tag_bindings_proto protoreflect.FileDescriptorFile_google_cloud_resourcemanager_v3_tag_holds_proto
var File_google_cloud_resourcemanager_v3_tag_holds_proto protoreflect.FileDescriptorFile_google_cloud_resourcemanager_v3_tag_keys_proto
var File_google_cloud_resourcemanager_v3_tag_keys_proto protoreflect.FileDescriptorFile_google_cloud_resourcemanager_v3_tag_values_proto
var File_google_cloud_resourcemanager_v3_tag_values_proto protoreflect.FileDescriptorFolders_ServiceDesc
var Folders_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.resourcemanager.v3.Folders",
HandlerType: (*FoldersServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetFolder",
Handler: _Folders_GetFolder_Handler,
},
{
MethodName: "ListFolders",
Handler: _Folders_ListFolders_Handler,
},
{
MethodName: "SearchFolders",
Handler: _Folders_SearchFolders_Handler,
},
{
MethodName: "CreateFolder",
Handler: _Folders_CreateFolder_Handler,
},
{
MethodName: "UpdateFolder",
Handler: _Folders_UpdateFolder_Handler,
},
{
MethodName: "MoveFolder",
Handler: _Folders_MoveFolder_Handler,
},
{
MethodName: "DeleteFolder",
Handler: _Folders_DeleteFolder_Handler,
},
{
MethodName: "UndeleteFolder",
Handler: _Folders_UndeleteFolder_Handler,
},
{
MethodName: "GetIamPolicy",
Handler: _Folders_GetIamPolicy_Handler,
},
{
MethodName: "SetIamPolicy",
Handler: _Folders_SetIamPolicy_Handler,
},
{
MethodName: "TestIamPermissions",
Handler: _Folders_TestIamPermissions_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/resourcemanager/v3/folders.proto",
}Folders_ServiceDesc is the grpc.ServiceDesc for Folders service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Organizations_ServiceDesc
var Organizations_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.resourcemanager.v3.Organizations",
HandlerType: (*OrganizationsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetOrganization",
Handler: _Organizations_GetOrganization_Handler,
},
{
MethodName: "SearchOrganizations",
Handler: _Organizations_SearchOrganizations_Handler,
},
{
MethodName: "GetIamPolicy",
Handler: _Organizations_GetIamPolicy_Handler,
},
{
MethodName: "SetIamPolicy",
Handler: _Organizations_SetIamPolicy_Handler,
},
{
MethodName: "TestIamPermissions",
Handler: _Organizations_TestIamPermissions_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/resourcemanager/v3/organizations.proto",
}Organizations_ServiceDesc is the grpc.ServiceDesc for Organizations service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Projects_ServiceDesc
var Projects_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.resourcemanager.v3.Projects",
HandlerType: (*ProjectsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetProject",
Handler: _Projects_GetProject_Handler,
},
{
MethodName: "ListProjects",
Handler: _Projects_ListProjects_Handler,
},
{
MethodName: "SearchProjects",
Handler: _Projects_SearchProjects_Handler,
},
{
MethodName: "CreateProject",
Handler: _Projects_CreateProject_Handler,
},
{
MethodName: "UpdateProject",
Handler: _Projects_UpdateProject_Handler,
},
{
MethodName: "MoveProject",
Handler: _Projects_MoveProject_Handler,
},
{
MethodName: "DeleteProject",
Handler: _Projects_DeleteProject_Handler,
},
{
MethodName: "UndeleteProject",
Handler: _Projects_UndeleteProject_Handler,
},
{
MethodName: "GetIamPolicy",
Handler: _Projects_GetIamPolicy_Handler,
},
{
MethodName: "SetIamPolicy",
Handler: _Projects_SetIamPolicy_Handler,
},
{
MethodName: "TestIamPermissions",
Handler: _Projects_TestIamPermissions_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/resourcemanager/v3/projects.proto",
}Projects_ServiceDesc is the grpc.ServiceDesc for Projects service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
TagBindings_ServiceDesc
var TagBindings_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.resourcemanager.v3.TagBindings",
HandlerType: (*TagBindingsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListTagBindings",
Handler: _TagBindings_ListTagBindings_Handler,
},
{
MethodName: "CreateTagBinding",
Handler: _TagBindings_CreateTagBinding_Handler,
},
{
MethodName: "DeleteTagBinding",
Handler: _TagBindings_DeleteTagBinding_Handler,
},
{
MethodName: "ListEffectiveTags",
Handler: _TagBindings_ListEffectiveTags_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/resourcemanager/v3/tag_bindings.proto",
}TagBindings_ServiceDesc is the grpc.ServiceDesc for TagBindings service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
TagHolds_ServiceDesc
var TagHolds_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.resourcemanager.v3.TagHolds",
HandlerType: (*TagHoldsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateTagHold",
Handler: _TagHolds_CreateTagHold_Handler,
},
{
MethodName: "DeleteTagHold",
Handler: _TagHolds_DeleteTagHold_Handler,
},
{
MethodName: "ListTagHolds",
Handler: _TagHolds_ListTagHolds_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/resourcemanager/v3/tag_holds.proto",
}TagHolds_ServiceDesc is the grpc.ServiceDesc for TagHolds service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
TagKeys_ServiceDesc
var TagKeys_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.resourcemanager.v3.TagKeys",
HandlerType: (*TagKeysServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListTagKeys",
Handler: _TagKeys_ListTagKeys_Handler,
},
{
MethodName: "GetTagKey",
Handler: _TagKeys_GetTagKey_Handler,
},
{
MethodName: "GetNamespacedTagKey",
Handler: _TagKeys_GetNamespacedTagKey_Handler,
},
{
MethodName: "CreateTagKey",
Handler: _TagKeys_CreateTagKey_Handler,
},
{
MethodName: "UpdateTagKey",
Handler: _TagKeys_UpdateTagKey_Handler,
},
{
MethodName: "DeleteTagKey",
Handler: _TagKeys_DeleteTagKey_Handler,
},
{
MethodName: "GetIamPolicy",
Handler: _TagKeys_GetIamPolicy_Handler,
},
{
MethodName: "SetIamPolicy",
Handler: _TagKeys_SetIamPolicy_Handler,
},
{
MethodName: "TestIamPermissions",
Handler: _TagKeys_TestIamPermissions_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/resourcemanager/v3/tag_keys.proto",
}TagKeys_ServiceDesc is the grpc.ServiceDesc for TagKeys service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
TagValues_ServiceDesc
var TagValues_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.resourcemanager.v3.TagValues",
HandlerType: (*TagValuesServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListTagValues",
Handler: _TagValues_ListTagValues_Handler,
},
{
MethodName: "GetTagValue",
Handler: _TagValues_GetTagValue_Handler,
},
{
MethodName: "GetNamespacedTagValue",
Handler: _TagValues_GetNamespacedTagValue_Handler,
},
{
MethodName: "CreateTagValue",
Handler: _TagValues_CreateTagValue_Handler,
},
{
MethodName: "UpdateTagValue",
Handler: _TagValues_UpdateTagValue_Handler,
},
{
MethodName: "DeleteTagValue",
Handler: _TagValues_DeleteTagValue_Handler,
},
{
MethodName: "GetIamPolicy",
Handler: _TagValues_GetIamPolicy_Handler,
},
{
MethodName: "SetIamPolicy",
Handler: _TagValues_SetIamPolicy_Handler,
},
{
MethodName: "TestIamPermissions",
Handler: _TagValues_TestIamPermissions_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/resourcemanager/v3/tag_values.proto",
}TagValues_ServiceDesc is the grpc.ServiceDesc for TagValues service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions
func RegisterFoldersServer
func RegisterFoldersServer(s grpc.ServiceRegistrar, srv FoldersServer)func RegisterOrganizationsServer
func RegisterOrganizationsServer(s grpc.ServiceRegistrar, srv OrganizationsServer)func RegisterProjectsServer
func RegisterProjectsServer(s grpc.ServiceRegistrar, srv ProjectsServer)func RegisterTagBindingsServer
func RegisterTagBindingsServer(s grpc.ServiceRegistrar, srv TagBindingsServer)func RegisterTagHoldsServer
func RegisterTagHoldsServer(s grpc.ServiceRegistrar, srv TagHoldsServer)func RegisterTagKeysServer
func RegisterTagKeysServer(s grpc.ServiceRegistrar, srv TagKeysServer)func RegisterTagValuesServer
func RegisterTagValuesServer(s grpc.ServiceRegistrar, srv TagValuesServer)CreateFolderMetadata
type CreateFolderMetadata struct {
// The display name of the folder.
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// The resource name of the folder or organization we are creating the folder
// under.
Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
// contains filtered or unexported fields
}Metadata pertaining to the Folder creation process.
func (*CreateFolderMetadata) Descriptor
func (*CreateFolderMetadata) Descriptor() ([]byte, []int)Deprecated: Use CreateFolderMetadata.ProtoReflect.Descriptor instead.
func (*CreateFolderMetadata) GetDisplayName
func (x *CreateFolderMetadata) GetDisplayName() stringfunc (*CreateFolderMetadata) GetParent
func (x *CreateFolderMetadata) GetParent() stringfunc (*CreateFolderMetadata) ProtoMessage
func (*CreateFolderMetadata) ProtoMessage()func (*CreateFolderMetadata) ProtoReflect
func (x *CreateFolderMetadata) ProtoReflect() protoreflect.Messagefunc (*CreateFolderMetadata) Reset
func (x *CreateFolderMetadata) Reset()func (*CreateFolderMetadata) String
func (x *CreateFolderMetadata) String() stringCreateFolderRequest
type CreateFolderRequest struct {
// Required. The folder being created, only the display name and parent will
// be consulted. All other fields will be ignored.
Folder *Folder `protobuf:"bytes,2,opt,name=folder,proto3" json:"folder,omitempty"`
// contains filtered or unexported fields
}The CreateFolder request message.
func (*CreateFolderRequest) Descriptor
func (*CreateFolderRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateFolderRequest.ProtoReflect.Descriptor instead.
func (*CreateFolderRequest) GetFolder
func (x *CreateFolderRequest) GetFolder() *Folderfunc (*CreateFolderRequest) ProtoMessage
func (*CreateFolderRequest) ProtoMessage()func (*CreateFolderRequest) ProtoReflect
func (x *CreateFolderRequest) ProtoReflect() protoreflect.Messagefunc (*CreateFolderRequest) Reset
func (x *CreateFolderRequest) Reset()func (*CreateFolderRequest) String
func (x *CreateFolderRequest) String() stringCreateProjectMetadata
type CreateProjectMetadata struct {
// Creation time of the project creation workflow.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// True if the project can be retrieved using `GetProject`. No other
// operations on the project are guaranteed to work until the project creation
// is complete.
Gettable bool `protobuf:"varint,2,opt,name=gettable,proto3" json:"gettable,omitempty"`
// True if the project creation process is complete.
Ready bool `protobuf:"varint,3,opt,name=ready,proto3" json:"ready,omitempty"`
// contains filtered or unexported fields
}A status object which is used as the metadata field for the Operation
returned by CreateProject. It provides insight for when significant phases of
Project creation have completed.
func (*CreateProjectMetadata) Descriptor
func (*CreateProjectMetadata) Descriptor() ([]byte, []int)Deprecated: Use CreateProjectMetadata.ProtoReflect.Descriptor instead.
func (*CreateProjectMetadata) GetCreateTime
func (x *CreateProjectMetadata) GetCreateTime() *timestamppb.Timestampfunc (*CreateProjectMetadata) GetGettable
func (x *CreateProjectMetadata) GetGettable() boolfunc (*CreateProjectMetadata) GetReady
func (x *CreateProjectMetadata) GetReady() boolfunc (*CreateProjectMetadata) ProtoMessage
func (*CreateProjectMetadata) ProtoMessage()func (*CreateProjectMetadata) ProtoReflect
func (x *CreateProjectMetadata) ProtoReflect() protoreflect.Messagefunc (*CreateProjectMetadata) Reset
func (x *CreateProjectMetadata) Reset()func (*CreateProjectMetadata) String
func (x *CreateProjectMetadata) String() stringCreateProjectRequest
type CreateProjectRequest struct {
// Required. The Project to create.
//
// Project ID is required. If the requested ID is unavailable, the request
// fails.
//
// If the `parent` field is set, the `resourcemanager.projects.create`
// permission is checked on the parent resource. If no parent is set and
// the authorization credentials belong to an Organization, the parent
// will be set to that Organization.
Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
// contains filtered or unexported fields
}The request sent to the [CreateProject][google.cloud.resourcemanager.v3.Projects.CreateProject] method.
func (*CreateProjectRequest) Descriptor
func (*CreateProjectRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateProjectRequest.ProtoReflect.Descriptor instead.
func (*CreateProjectRequest) GetProject
func (x *CreateProjectRequest) GetProject() *Projectfunc (*CreateProjectRequest) ProtoMessage
func (*CreateProjectRequest) ProtoMessage()func (*CreateProjectRequest) ProtoReflect
func (x *CreateProjectRequest) ProtoReflect() protoreflect.Messagefunc (*CreateProjectRequest) Reset
func (x *CreateProjectRequest) Reset()func (*CreateProjectRequest) String
func (x *CreateProjectRequest) String() stringCreateTagBindingMetadata
type CreateTagBindingMetadata struct {
// contains filtered or unexported fields
}Runtime operation information for creating a TagValue.
func (*CreateTagBindingMetadata) Descriptor
func (*CreateTagBindingMetadata) Descriptor() ([]byte, []int)Deprecated: Use CreateTagBindingMetadata.ProtoReflect.Descriptor instead.
func (*CreateTagBindingMetadata) ProtoMessage
func (*CreateTagBindingMetadata) ProtoMessage()func (*CreateTagBindingMetadata) ProtoReflect
func (x *CreateTagBindingMetadata) ProtoReflect() protoreflect.Messagefunc (*CreateTagBindingMetadata) Reset
func (x *CreateTagBindingMetadata) Reset()func (*CreateTagBindingMetadata) String
func (x *CreateTagBindingMetadata) String() stringCreateTagBindingRequest
type CreateTagBindingRequest struct {
// Required. The TagBinding to be created.
TagBinding *TagBinding `protobuf:"bytes,1,opt,name=tag_binding,json=tagBinding,proto3" json:"tag_binding,omitempty"`
// Optional. Set to true to perform the validations necessary for creating the
// resource, but not actually perform the action.
ValidateOnly bool `protobuf:"varint,2,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// contains filtered or unexported fields
}The request message to create a TagBinding.
func (*CreateTagBindingRequest) Descriptor
func (*CreateTagBindingRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateTagBindingRequest.ProtoReflect.Descriptor instead.
func (*CreateTagBindingRequest) GetTagBinding
func (x *CreateTagBindingRequest) GetTagBinding() *TagBindingfunc (*CreateTagBindingRequest) GetValidateOnly
func (x *CreateTagBindingRequest) GetValidateOnly() boolfunc (*CreateTagBindingRequest) ProtoMessage
func (*CreateTagBindingRequest) ProtoMessage()func (*CreateTagBindingRequest) ProtoReflect
func (x *CreateTagBindingRequest) ProtoReflect() protoreflect.Messagefunc (*CreateTagBindingRequest) Reset
func (x *CreateTagBindingRequest) Reset()func (*CreateTagBindingRequest) String
func (x *CreateTagBindingRequest) String() stringCreateTagHoldMetadata
type CreateTagHoldMetadata struct {
// contains filtered or unexported fields
}Runtime operation information for creating a TagHold. (-- The metadata is currently empty, but may include information in the future. --)
func (*CreateTagHoldMetadata) Descriptor
func (*CreateTagHoldMetadata) Descriptor() ([]byte, []int)Deprecated: Use CreateTagHoldMetadata.ProtoReflect.Descriptor instead.
func (*CreateTagHoldMetadata) ProtoMessage
func (*CreateTagHoldMetadata) ProtoMessage()func (*CreateTagHoldMetadata) ProtoReflect
func (x *CreateTagHoldMetadata) ProtoReflect() protoreflect.Messagefunc (*CreateTagHoldMetadata) Reset
func (x *CreateTagHoldMetadata) Reset()func (*CreateTagHoldMetadata) String
func (x *CreateTagHoldMetadata) String() stringCreateTagHoldRequest
type CreateTagHoldRequest struct {
// Required. The resource name of the TagHold's parent TagValue. Must be of
// the form: `tagValues/{tag-value-id}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The TagHold to be created.
TagHold *TagHold `protobuf:"bytes,2,opt,name=tag_hold,json=tagHold,proto3" json:"tag_hold,omitempty"`
// Optional. Set to true to perform the validations necessary for creating the
// resource, but not actually perform the action.
ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// contains filtered or unexported fields
}The request message to create a TagHold.
func (*CreateTagHoldRequest) Descriptor
func (*CreateTagHoldRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateTagHoldRequest.ProtoReflect.Descriptor instead.
func (*CreateTagHoldRequest) GetParent
func (x *CreateTagHoldRequest) GetParent() stringfunc (*CreateTagHoldRequest) GetTagHold
func (x *CreateTagHoldRequest) GetTagHold() *TagHoldfunc (*CreateTagHoldRequest) GetValidateOnly
func (x *CreateTagHoldRequest) GetValidateOnly() boolfunc (*CreateTagHoldRequest) ProtoMessage
func (*CreateTagHoldRequest) ProtoMessage()func (*CreateTagHoldRequest) ProtoReflect
func (x *CreateTagHoldRequest) ProtoReflect() protoreflect.Messagefunc (*CreateTagHoldRequest) Reset
func (x *CreateTagHoldRequest) Reset()func (*CreateTagHoldRequest) String
func (x *CreateTagHoldRequest) String() stringCreateTagKeyMetadata
type CreateTagKeyMetadata struct {
// contains filtered or unexported fields
}Runtime operation information for creating a TagKey.
func (*CreateTagKeyMetadata) Descriptor
func (*CreateTagKeyMetadata) Descriptor() ([]byte, []int)Deprecated: Use CreateTagKeyMetadata.ProtoReflect.Descriptor instead.
func (*CreateTagKeyMetadata) ProtoMessage
func (*CreateTagKeyMetadata) ProtoMessage()func (*CreateTagKeyMetadata) ProtoReflect
func (x *CreateTagKeyMetadata) ProtoReflect() protoreflect.Messagefunc (*CreateTagKeyMetadata) Reset
func (x *CreateTagKeyMetadata) Reset()func (*CreateTagKeyMetadata) String
func (x *CreateTagKeyMetadata) String() stringCreateTagKeyRequest
type CreateTagKeyRequest struct {
// Required. The TagKey to be created. Only fields `short_name`,
// `description`, and `parent` are considered during the creation request.
TagKey *TagKey `protobuf:"bytes,1,opt,name=tag_key,json=tagKey,proto3" json:"tag_key,omitempty"`
// Optional. Set to true to perform validations necessary for creating the
// resource, but not actually perform the action.
ValidateOnly bool `protobuf:"varint,2,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// contains filtered or unexported fields
}The request message for creating a TagKey.
func (*CreateTagKeyRequest) Descriptor
func (*CreateTagKeyRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateTagKeyRequest.ProtoReflect.Descriptor instead.
func (*CreateTagKeyRequest) GetTagKey
func (x *CreateTagKeyRequest) GetTagKey() *TagKeyfunc (*CreateTagKeyRequest) GetValidateOnly
func (x *CreateTagKeyRequest) GetValidateOnly() boolfunc (*CreateTagKeyRequest) ProtoMessage
func (*CreateTagKeyRequest) ProtoMessage()func (*CreateTagKeyRequest) ProtoReflect
func (x *CreateTagKeyRequest) ProtoReflect() protoreflect.Messagefunc (*CreateTagKeyRequest) Reset
func (x *CreateTagKeyRequest) Reset()func (*CreateTagKeyRequest) String
func (x *CreateTagKeyRequest) String() stringCreateTagValueMetadata
type CreateTagValueMetadata struct {
// contains filtered or unexported fields
}Runtime operation information for creating a TagValue.
func (*CreateTagValueMetadata) Descriptor
func (*CreateTagValueMetadata) Descriptor() ([]byte, []int)Deprecated: Use CreateTagValueMetadata.ProtoReflect.Descriptor instead.
func (*CreateTagValueMetadata) ProtoMessage
func (*CreateTagValueMetadata) ProtoMessage()func (*CreateTagValueMetadata) ProtoReflect
func (x *CreateTagValueMetadata) ProtoReflect() protoreflect.Messagefunc (*CreateTagValueMetadata) Reset
func (x *CreateTagValueMetadata) Reset()func (*CreateTagValueMetadata) String
func (x *CreateTagValueMetadata) String() stringCreateTagValueRequest
type CreateTagValueRequest struct {
// Required. The TagValue to be created. Only fields `short_name`,
// `description`, and `parent` are considered during the creation request.
TagValue *TagValue `protobuf:"bytes,1,opt,name=tag_value,json=tagValue,proto3" json:"tag_value,omitempty"`
// Optional. Set as true to perform the validations necessary for creating the
// resource, but not actually perform the action.
ValidateOnly bool `protobuf:"varint,2,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// contains filtered or unexported fields
}The request message for creating a TagValue.
func (*CreateTagValueRequest) Descriptor
func (*CreateTagValueRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateTagValueRequest.ProtoReflect.Descriptor instead.
func (*CreateTagValueRequest) GetTagValue
func (x *CreateTagValueRequest) GetTagValue() *TagValuefunc (*CreateTagValueRequest) GetValidateOnly
func (x *CreateTagValueRequest) GetValidateOnly() boolfunc (*CreateTagValueRequest) ProtoMessage
func (*CreateTagValueRequest) ProtoMessage()func (*CreateTagValueRequest) ProtoReflect
func (x *CreateTagValueRequest) ProtoReflect() protoreflect.Messagefunc (*CreateTagValueRequest) Reset
func (x *CreateTagValueRequest) Reset()func (*CreateTagValueRequest) String
func (x *CreateTagValueRequest) String() stringDeleteFolderMetadata
type DeleteFolderMetadata struct {
// contains filtered or unexported fields
}A status object which is used as the metadata field for the Operation
returned by DeleteFolder.
func (*DeleteFolderMetadata) Descriptor
func (*DeleteFolderMetadata) Descriptor() ([]byte, []int)Deprecated: Use DeleteFolderMetadata.ProtoReflect.Descriptor instead.
func (*DeleteFolderMetadata) ProtoMessage
func (*DeleteFolderMetadata) ProtoMessage()func (*DeleteFolderMetadata) ProtoReflect
func (x *DeleteFolderMetadata) ProtoReflect() protoreflect.Messagefunc (*DeleteFolderMetadata) Reset
func (x *DeleteFolderMetadata) Reset()func (*DeleteFolderMetadata) String
func (x *DeleteFolderMetadata) String() stringDeleteFolderRequest
type DeleteFolderRequest struct {
// Required. The resource name of the folder to be deleted.
// Must be of the form `folders/{folder_id}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The DeleteFolder request message.
func (*DeleteFolderRequest) Descriptor
func (*DeleteFolderRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteFolderRequest.ProtoReflect.Descriptor instead.
func (*DeleteFolderRequest) GetName
func (x *DeleteFolderRequest) GetName() stringfunc (*DeleteFolderRequest) ProtoMessage
func (*DeleteFolderRequest) ProtoMessage()func (*DeleteFolderRequest) ProtoReflect
func (x *DeleteFolderRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteFolderRequest) Reset
func (x *DeleteFolderRequest) Reset()func (*DeleteFolderRequest) String
func (x *DeleteFolderRequest) String() stringDeleteOrganizationMetadata
type DeleteOrganizationMetadata struct {
// contains filtered or unexported fields
}A status object which is used as the metadata field for the operation
returned by DeleteOrganization.
func (*DeleteOrganizationMetadata) Descriptor
func (*DeleteOrganizationMetadata) Descriptor() ([]byte, []int)Deprecated: Use DeleteOrganizationMetadata.ProtoReflect.Descriptor instead.
func (*DeleteOrganizationMetadata) ProtoMessage
func (*DeleteOrganizationMetadata) ProtoMessage()func (*DeleteOrganizationMetadata) ProtoReflect
func (x *DeleteOrganizationMetadata) ProtoReflect() protoreflect.Messagefunc (*DeleteOrganizationMetadata) Reset
func (x *DeleteOrganizationMetadata) Reset()func (*DeleteOrganizationMetadata) String
func (x *DeleteOrganizationMetadata) String() stringDeleteProjectMetadata
type DeleteProjectMetadata struct {
// contains filtered or unexported fields
}A status object which is used as the metadata field for the Operation
returned by DeleteProject.
func (*DeleteProjectMetadata) Descriptor
func (*DeleteProjectMetadata) Descriptor() ([]byte, []int)Deprecated: Use DeleteProjectMetadata.ProtoReflect.Descriptor instead.
func (*DeleteProjectMetadata) ProtoMessage
func (*DeleteProjectMetadata) ProtoMessage()func (*DeleteProjectMetadata) ProtoReflect
func (x *DeleteProjectMetadata) ProtoReflect() protoreflect.Messagefunc (*DeleteProjectMetadata) Reset
func (x *DeleteProjectMetadata) Reset()func (*DeleteProjectMetadata) String
func (x *DeleteProjectMetadata) String() stringDeleteProjectRequest
type DeleteProjectRequest struct {
// Required. The name of the Project (for example, `projects/415104041262`).
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}[DeleteProject][google.cloud.resourcemanager.v3.Projects.DeleteProject] method.
func (*DeleteProjectRequest) Descriptor
func (*DeleteProjectRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteProjectRequest.ProtoReflect.Descriptor instead.
func (*DeleteProjectRequest) GetName
func (x *DeleteProjectRequest) GetName() stringfunc (*DeleteProjectRequest) ProtoMessage
func (*DeleteProjectRequest) ProtoMessage()func (*DeleteProjectRequest) ProtoReflect
func (x *DeleteProjectRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteProjectRequest) Reset
func (x *DeleteProjectRequest) Reset()func (*DeleteProjectRequest) String
func (x *DeleteProjectRequest) String() stringDeleteTagBindingMetadata
type DeleteTagBindingMetadata struct {
// contains filtered or unexported fields
}Runtime operation information for deleting a TagBinding.
func (*DeleteTagBindingMetadata) Descriptor
func (*DeleteTagBindingMetadata) Descriptor() ([]byte, []int)Deprecated: Use DeleteTagBindingMetadata.ProtoReflect.Descriptor instead.
func (*DeleteTagBindingMetadata) ProtoMessage
func (*DeleteTagBindingMetadata) ProtoMessage()func (*DeleteTagBindingMetadata) ProtoReflect
func (x *DeleteTagBindingMetadata) ProtoReflect() protoreflect.Messagefunc (*DeleteTagBindingMetadata) Reset
func (x *DeleteTagBindingMetadata) Reset()func (*DeleteTagBindingMetadata) String
func (x *DeleteTagBindingMetadata) String() stringDeleteTagBindingRequest
type DeleteTagBindingRequest struct {
// Required. The name of the TagBinding. This is a String of the form:
// `tagBindings/{id}` (e.g.
// `tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request message to delete a TagBinding.
func (*DeleteTagBindingRequest) Descriptor
func (*DeleteTagBindingRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteTagBindingRequest.ProtoReflect.Descriptor instead.
func (*DeleteTagBindingRequest) GetName
func (x *DeleteTagBindingRequest) GetName() stringfunc (*DeleteTagBindingRequest) ProtoMessage
func (*DeleteTagBindingRequest) ProtoMessage()func (*DeleteTagBindingRequest) ProtoReflect
func (x *DeleteTagBindingRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteTagBindingRequest) Reset
func (x *DeleteTagBindingRequest) Reset()func (*DeleteTagBindingRequest) String
func (x *DeleteTagBindingRequest) String() stringDeleteTagHoldMetadata
type DeleteTagHoldMetadata struct {
// contains filtered or unexported fields
}Runtime operation information for deleting a TagHold. (-- The metadata is currently empty, but may include information in the future. --)
func (*DeleteTagHoldMetadata) Descriptor
func (*DeleteTagHoldMetadata) Descriptor() ([]byte, []int)Deprecated: Use DeleteTagHoldMetadata.ProtoReflect.Descriptor instead.
func (*DeleteTagHoldMetadata) ProtoMessage
func (*DeleteTagHoldMetadata) ProtoMessage()func (*DeleteTagHoldMetadata) ProtoReflect
func (x *DeleteTagHoldMetadata) ProtoReflect() protoreflect.Messagefunc (*DeleteTagHoldMetadata) Reset
func (x *DeleteTagHoldMetadata) Reset()func (*DeleteTagHoldMetadata) String
func (x *DeleteTagHoldMetadata) String() stringDeleteTagHoldRequest
type DeleteTagHoldRequest struct {
// Required. The resource name of the TagHold to delete. Must be of the form:
// `tagValues/{tag-value-id}/tagHolds/{tag-hold-id}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Set to true to perform the validations necessary for deleting the
// resource, but not actually perform the action.
ValidateOnly bool `protobuf:"varint,2,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// contains filtered or unexported fields
}The request message to delete a TagHold.
func (*DeleteTagHoldRequest) Descriptor
func (*DeleteTagHoldRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteTagHoldRequest.ProtoReflect.Descriptor instead.
func (*DeleteTagHoldRequest) GetName
func (x *DeleteTagHoldRequest) GetName() stringfunc (*DeleteTagHoldRequest) GetValidateOnly
func (x *DeleteTagHoldRequest) GetValidateOnly() boolfunc (*DeleteTagHoldRequest) ProtoMessage
func (*DeleteTagHoldRequest) ProtoMessage()func (*DeleteTagHoldRequest) ProtoReflect
func (x *DeleteTagHoldRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteTagHoldRequest) Reset
func (x *DeleteTagHoldRequest) Reset()func (*DeleteTagHoldRequest) String
func (x *DeleteTagHoldRequest) String() stringDeleteTagKeyMetadata
type DeleteTagKeyMetadata struct {
// contains filtered or unexported fields
}Runtime operation information for deleting a TagKey.
func (*DeleteTagKeyMetadata) Descriptor
func (*DeleteTagKeyMetadata) Descriptor() ([]byte, []int)Deprecated: Use DeleteTagKeyMetadata.ProtoReflect.Descriptor instead.
func (*DeleteTagKeyMetadata) ProtoMessage
func (*DeleteTagKeyMetadata) ProtoMessage()func (*DeleteTagKeyMetadata) ProtoReflect
func (x *DeleteTagKeyMetadata) ProtoReflect() protoreflect.Messagefunc (*DeleteTagKeyMetadata) Reset
func (x *DeleteTagKeyMetadata) Reset()func (*DeleteTagKeyMetadata) String
func (x *DeleteTagKeyMetadata) String() stringDeleteTagKeyRequest
type DeleteTagKeyRequest struct {
// Required. The resource name of a TagKey to be deleted in the format
// `tagKeys/123`. The TagKey cannot be a parent of any existing TagValues or
// it will not be deleted successfully.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Set as true to perform validations necessary for deletion, but
// not actually perform the action.
ValidateOnly bool `protobuf:"varint,2,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// Optional. The etag known to the client for the expected state of the
// TagKey. This is to be used for optimistic concurrency.
Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"`
// contains filtered or unexported fields
}The request message for deleting a TagKey.
func (*DeleteTagKeyRequest) Descriptor
func (*DeleteTagKeyRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteTagKeyRequest.ProtoReflect.Descriptor instead.
func (*DeleteTagKeyRequest) GetEtag
func (x *DeleteTagKeyRequest) GetEtag() stringfunc (*DeleteTagKeyRequest) GetName
func (x *DeleteTagKeyRequest) GetName() stringfunc (*DeleteTagKeyRequest) GetValidateOnly
func (x *DeleteTagKeyRequest) GetValidateOnly() boolfunc (*DeleteTagKeyRequest) ProtoMessage
func (*DeleteTagKeyRequest) ProtoMessage()func (*DeleteTagKeyRequest) ProtoReflect
func (x *DeleteTagKeyRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteTagKeyRequest) Reset
func (x *DeleteTagKeyRequest) Reset()func (*DeleteTagKeyRequest) String
func (x *DeleteTagKeyRequest) String() stringDeleteTagValueMetadata
type DeleteTagValueMetadata struct {
// contains filtered or unexported fields
}Runtime operation information for deleting a TagValue.
func (*DeleteTagValueMetadata) Descriptor
func (*DeleteTagValueMetadata) Descriptor() ([]byte, []int)Deprecated: Use DeleteTagValueMetadata.ProtoReflect.Descriptor instead.
func (*DeleteTagValueMetadata) ProtoMessage
func (*DeleteTagValueMetadata) ProtoMessage()func (*DeleteTagValueMetadata) ProtoReflect
func (x *DeleteTagValueMetadata) ProtoReflect() protoreflect.Messagefunc (*DeleteTagValueMetadata) Reset
func (x *DeleteTagValueMetadata) Reset()func (*DeleteTagValueMetadata) String
func (x *DeleteTagValueMetadata) String() stringDeleteTagValueRequest
type DeleteTagValueRequest struct {
// Required. Resource name for TagValue to be deleted in the format
// tagValues/456.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Set as true to perform the validations necessary for deletion,
// but not actually perform the action.
ValidateOnly bool `protobuf:"varint,2,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// Optional. The etag known to the client for the expected state of the
// TagValue. This is to be used for optimistic concurrency.
Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"`
// contains filtered or unexported fields
}The request message for deleting a TagValue.
func (*DeleteTagValueRequest) Descriptor
func (*DeleteTagValueRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteTagValueRequest.ProtoReflect.Descriptor instead.
func (*DeleteTagValueRequest) GetEtag
func (x *DeleteTagValueRequest) GetEtag() stringfunc (*DeleteTagValueRequest) GetName
func (x *DeleteTagValueRequest) GetName() stringfunc (*DeleteTagValueRequest) GetValidateOnly
func (x *DeleteTagValueRequest) GetValidateOnly() boolfunc (*DeleteTagValueRequest) ProtoMessage
func (*DeleteTagValueRequest) ProtoMessage()func (*DeleteTagValueRequest) ProtoReflect
func (x *DeleteTagValueRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteTagValueRequest) Reset
func (x *DeleteTagValueRequest) Reset()func (*DeleteTagValueRequest) String
func (x *DeleteTagValueRequest) String() stringEffectiveTag
type EffectiveTag struct {
// Resource name for TagValue in the format `tagValues/456`.
TagValue string `protobuf:"bytes,1,opt,name=tag_value,json=tagValue,proto3" json:"tag_value,omitempty"`
// The namespaced name of the TagValue. Can be in the form
// `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
// `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
// `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
NamespacedTagValue string `protobuf:"bytes,2,opt,name=namespaced_tag_value,json=namespacedTagValue,proto3" json:"namespaced_tag_value,omitempty"`
// The name of the TagKey, in the format `tagKeys/{id}`, such as
// `tagKeys/123`.
TagKey string `protobuf:"bytes,3,opt,name=tag_key,json=tagKey,proto3" json:"tag_key,omitempty"`
// The namespaced name of the TagKey. Can be in the form
// `{organization_id}/{tag_key_short_name}` or
// `{project_id}/{tag_key_short_name}` or
// `{project_number}/{tag_key_short_name}`.
NamespacedTagKey string `protobuf:"bytes,4,opt,name=namespaced_tag_key,json=namespacedTagKey,proto3" json:"namespaced_tag_key,omitempty"`
// The parent name of the tag key.
// Must be in the format `organizations/{organization_id}` or
// `projects/{project_number}`
TagKeyParentName string `protobuf:"bytes,6,opt,name=tag_key_parent_name,json=tagKeyParentName,proto3" json:"tag_key_parent_name,omitempty"`
// Indicates the inheritance status of a tag value
// attached to the given resource. If the tag value is inherited from one of
// the resource's ancestors, inherited will be true. If false, then the tag
// value is directly attached to the resource, inherited will be false.
Inherited bool `protobuf:"varint,5,opt,name=inherited,proto3" json:"inherited,omitempty"`
// contains filtered or unexported fields
}An EffectiveTag represents a tag that applies to a resource during policy
evaluation. Tags can be either directly bound to a resource or inherited from
its ancestor. EffectiveTag contains the name and
namespaced_name of the tag value and tag key, with additional fields of
inherited to indicate the inheritance status of the effective tag.
func (*EffectiveTag) Descriptor
func (*EffectiveTag) Descriptor() ([]byte, []int)Deprecated: Use EffectiveTag.ProtoReflect.Descriptor instead.
func (*EffectiveTag) GetInherited
func (x *EffectiveTag) GetInherited() boolfunc (*EffectiveTag) GetNamespacedTagKey
func (x *EffectiveTag) GetNamespacedTagKey() stringfunc (*EffectiveTag) GetNamespacedTagValue
func (x *EffectiveTag) GetNamespacedTagValue() stringfunc (*EffectiveTag) GetTagKey
func (x *EffectiveTag) GetTagKey() stringfunc (*EffectiveTag) GetTagKeyParentName
func (x *EffectiveTag) GetTagKeyParentName() stringfunc (*EffectiveTag) GetTagValue
func (x *EffectiveTag) GetTagValue() stringfunc (*EffectiveTag) ProtoMessage
func (*EffectiveTag) ProtoMessage()func (*EffectiveTag) ProtoReflect
func (x *EffectiveTag) ProtoReflect() protoreflect.Messagefunc (*EffectiveTag) Reset
func (x *EffectiveTag) Reset()func (*EffectiveTag) String
func (x *EffectiveTag) String() stringFolder
type Folder struct {
// Output only. The resource name of the folder.
// Its format is `folders/{folder_id}`, for example: "folders/1234".
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The folder's parent's resource name.
// Updates to the folder's parent must be performed using
// [MoveFolder][google.cloud.resourcemanager.v3.Folders.MoveFolder].
Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
// The folder's display name.
// A folder's display name must be unique amongst its siblings. For example,
// no two folders with the same parent can share the same display name.
// The display name must start and end with a letter or digit, may contain
// letters, digits, spaces, hyphens and underscores and can be no longer
// than 30 characters. This is captured by the regular expression:
// `[\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?`.
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Output only. The lifecycle state of the folder.
// Updates to the state must be performed using
// [DeleteFolder][google.cloud.resourcemanager.v3.Folders.DeleteFolder] and
// [UndeleteFolder][google.cloud.resourcemanager.v3.Folders.UndeleteFolder].
State Folder_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.resourcemanager.v3.Folder_State" json:"state,omitempty"`
// Output only. Timestamp when the folder was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Timestamp when the folder was last modified.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. Timestamp when the folder was requested to be deleted.
DeleteTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
// Output only. A checksum computed by the server based on the current value
// of the folder resource. This may be sent on update and delete requests to
// ensure the client has an up-to-date value before proceeding.
Etag string `protobuf:"bytes,8,opt,name=etag,proto3" json:"etag,omitempty"`
// contains filtered or unexported fields
}A folder in an organization's resource hierarchy, used to organize that organization's resources.
func (*Folder) Descriptor
Deprecated: Use Folder.ProtoReflect.Descriptor instead.
func (*Folder) GetCreateTime
func (x *Folder) GetCreateTime() *timestamppb.Timestampfunc (*Folder) GetDeleteTime
func (x *Folder) GetDeleteTime() *timestamppb.Timestampfunc (*Folder) GetDisplayName
func (*Folder) GetEtag
func (*Folder) GetName
func (*Folder) GetParent
func (*Folder) GetState
func (x *Folder) GetState() Folder_Statefunc (*Folder) GetUpdateTime
func (x *Folder) GetUpdateTime() *timestamppb.Timestampfunc (*Folder) ProtoMessage
func (*Folder) ProtoMessage()func (*Folder) ProtoReflect
func (x *Folder) ProtoReflect() protoreflect.Messagefunc (*Folder) Reset
func (x *Folder) Reset()func (*Folder) String
Folder_State
type Folder_State int32Folder lifecycle states.
Folder_STATE_UNSPECIFIED, Folder_ACTIVE, Folder_DELETE_REQUESTED
const (
// Unspecified state.
Folder_STATE_UNSPECIFIED Folder_State = 0
// The normal and active state.
Folder_ACTIVE Folder_State = 1
// The folder has been marked for deletion by the user.
Folder_DELETE_REQUESTED Folder_State = 2
)func (Folder_State) Descriptor
func (Folder_State) Descriptor() protoreflect.EnumDescriptorfunc (Folder_State) Enum
func (x Folder_State) Enum() *Folder_Statefunc (Folder_State) EnumDescriptor
func (Folder_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Folder_State.Descriptor instead.
func (Folder_State) Number
func (x Folder_State) Number() protoreflect.EnumNumberfunc (Folder_State) String
func (x Folder_State) String() stringfunc (Folder_State) Type
func (Folder_State) Type() protoreflect.EnumTypeFoldersClient
type FoldersClient interface {
// Retrieves a folder identified by the supplied resource name.
// Valid folder resource names have the format `folders/{folder_id}`
// (for example, `folders/1234`).
// The caller must have `resourcemanager.folders.get` permission on the
// identified folder.
GetFolder(ctx context.Context, in *GetFolderRequest, opts ...grpc.CallOption) (*Folder, error)
// Lists the folders that are direct descendants of supplied parent resource.
// `list()` provides a strongly consistent view of the folders underneath
// the specified parent resource.
// `list()` returns folders sorted based upon the (ascending) lexical ordering
// of their display_name.
// The caller must have `resourcemanager.folders.list` permission on the
// identified parent.
ListFolders(ctx context.Context, in *ListFoldersRequest, opts ...grpc.CallOption) (*ListFoldersResponse, error)
// Search for folders that match specific filter criteria.
// `search()` provides an eventually consistent view of the folders a user has
// access to which meet the specified filter criteria.
//
// This will only return folders on which the caller has the
// permission `resourcemanager.folders.get`.
SearchFolders(ctx context.Context, in *SearchFoldersRequest, opts ...grpc.CallOption) (*SearchFoldersResponse, error)
// Creates a folder in the resource hierarchy.
// Returns an `Operation` which can be used to track the progress of the
// folder creation workflow.
// Upon success, the `Operation.response` field will be populated with the
// created Folder.
//
// In order to succeed, the addition of this new folder must not violate
// the folder naming, height, or fanout constraints.
//
// + The folder's `display_name` must be distinct from all other folders that
// share its parent.
// + The addition of the folder must not cause the active folder hierarchy
// to exceed a height of 10. Note, the full active + deleted folder hierarchy
// is allowed to reach a height of 20; this provides additional headroom when
// moving folders that contain deleted folders.
// + The addition of the folder must not cause the total number of folders
// under its parent to exceed 300.
//
// If the operation fails due to a folder constraint violation, some errors
// may be returned by the `CreateFolder` request, with status code
// `FAILED_PRECONDITION` and an error description. Other folder constraint
// violations will be communicated in the `Operation`, with the specific
// `PreconditionFailure` returned in the details list in the `Operation.error`
// field.
//
// The caller must have `resourcemanager.folders.create` permission on the
// identified parent.
CreateFolder(ctx context.Context, in *CreateFolderRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates a folder, changing its `display_name`.
// Changes to the folder `display_name` will be rejected if they violate
// either the `display_name` formatting rules or the naming constraints
// described in the
// [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder]
// documentation.
//
// The folder's `display_name` must start and end with a letter or digit,
// may contain letters, digits, spaces, hyphens and underscores and can be
// between 3 and 30 characters. This is captured by the regular expression:
// `[\p{L}\p{N}][\p{L}\p{N}_- ]{1,28}[\p{L}\p{N}]`.
// The caller must have `resourcemanager.folders.update` permission on the
// identified folder.
//
// If the update fails due to the unique name constraint then a
// `PreconditionFailure` explaining this violation will be returned
// in the Status.details field.
UpdateFolder(ctx context.Context, in *UpdateFolderRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Moves a folder under a new resource parent.
// Returns an `Operation` which can be used to track the progress of the
// folder move workflow.
// Upon success, the `Operation.response` field will be populated with the
// moved folder.
// Upon failure, a `FolderOperationError` categorizing the failure cause will
// be returned - if the failure occurs synchronously then the
// `FolderOperationError` will be returned in the `Status.details` field.
// If it occurs asynchronously, then the FolderOperation will be returned
// in the `Operation.error` field.
// In addition, the `Operation.metadata` field will be populated with a
// `FolderOperation` message as an aid to stateless clients.
// Folder moves will be rejected if they violate either the naming, height,
// or fanout constraints described in the
// [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder]
// documentation. The caller must have `resourcemanager.folders.move`
// permission on the folder's current and proposed new parent.
MoveFolder(ctx context.Context, in *MoveFolderRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Requests deletion of a folder. The folder is moved into the
// [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Folder.State.DELETE_REQUESTED]
// state immediately, and is deleted approximately 30 days later. This method
// may only be called on an empty folder, where a folder is empty if it
// doesn't contain any folders or projects in the
// [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state. If
// called on a folder in
// [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Folder.State.DELETE_REQUESTED]
// state the operation will result in a no-op success.
// The caller must have `resourcemanager.folders.delete` permission on the
// identified folder.
DeleteFolder(ctx context.Context, in *DeleteFolderRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Cancels the deletion request for a folder. This method may be called on a
// folder in any state. If the folder is in the
// [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state the
// result will be a no-op success. In order to succeed, the folder's parent
// must be in the
// [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state. In
// addition, reintroducing the folder into the tree must not violate folder
// naming, height, and fanout constraints described in the
// [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder]
// documentation. The caller must have `resourcemanager.folders.undelete`
// permission on the identified folder.
UndeleteFolder(ctx context.Context, in *UndeleteFolderRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Gets the access control policy for a folder. The returned policy may be
// empty if no such policy or resource exists. The `resource` field should
// be the folder's resource name, for example: "folders/1234".
// The caller must have `resourcemanager.folders.getIamPolicy` permission
// on the identified folder.
GetIamPolicy(ctx context.Context, in *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
// Sets the access control policy on a folder, replacing any existing policy.
// The `resource` field should be the folder's resource name, for example:
// "folders/1234".
// The caller must have `resourcemanager.folders.setIamPolicy` permission
// on the identified folder.
SetIamPolicy(ctx context.Context, in *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
// Returns permissions that a caller has on the specified folder.
// The `resource` field should be the folder's resource name,
// for example: "folders/1234".
//
// There are no permissions required for making this API call.
TestIamPermissions(ctx context.Context, in *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.TestIamPermissionsResponse, error)
}FoldersClient is the client API for Folders service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewFoldersClient
func NewFoldersClient(cc grpc.ClientConnInterface) FoldersClientFoldersServer
type FoldersServer interface {
// Retrieves a folder identified by the supplied resource name.
// Valid folder resource names have the format `folders/{folder_id}`
// (for example, `folders/1234`).
// The caller must have `resourcemanager.folders.get` permission on the
// identified folder.
GetFolder(context.Context, *GetFolderRequest) (*Folder, error)
// Lists the folders that are direct descendants of supplied parent resource.
// `list()` provides a strongly consistent view of the folders underneath
// the specified parent resource.
// `list()` returns folders sorted based upon the (ascending) lexical ordering
// of their display_name.
// The caller must have `resourcemanager.folders.list` permission on the
// identified parent.
ListFolders(context.Context, *ListFoldersRequest) (*ListFoldersResponse, error)
// Search for folders that match specific filter criteria.
// `search()` provides an eventually consistent view of the folders a user has
// access to which meet the specified filter criteria.
//
// This will only return folders on which the caller has the
// permission `resourcemanager.folders.get`.
SearchFolders(context.Context, *SearchFoldersRequest) (*SearchFoldersResponse, error)
// Creates a folder in the resource hierarchy.
// Returns an `Operation` which can be used to track the progress of the
// folder creation workflow.
// Upon success, the `Operation.response` field will be populated with the
// created Folder.
//
// In order to succeed, the addition of this new folder must not violate
// the folder naming, height, or fanout constraints.
//
// + The folder's `display_name` must be distinct from all other folders that
// share its parent.
// + The addition of the folder must not cause the active folder hierarchy
// to exceed a height of 10. Note, the full active + deleted folder hierarchy
// is allowed to reach a height of 20; this provides additional headroom when
// moving folders that contain deleted folders.
// + The addition of the folder must not cause the total number of folders
// under its parent to exceed 300.
//
// If the operation fails due to a folder constraint violation, some errors
// may be returned by the `CreateFolder` request, with status code
// `FAILED_PRECONDITION` and an error description. Other folder constraint
// violations will be communicated in the `Operation`, with the specific
// `PreconditionFailure` returned in the details list in the `Operation.error`
// field.
//
// The caller must have `resourcemanager.folders.create` permission on the
// identified parent.
CreateFolder(context.Context, *CreateFolderRequest) (*longrunningpb.Operation, error)
// Updates a folder, changing its `display_name`.
// Changes to the folder `display_name` will be rejected if they violate
// either the `display_name` formatting rules or the naming constraints
// described in the
// [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder]
// documentation.
//
// The folder's `display_name` must start and end with a letter or digit,
// may contain letters, digits, spaces, hyphens and underscores and can be
// between 3 and 30 characters. This is captured by the regular expression:
// `[\p{L}\p{N}][\p{L}\p{N}_- ]{1,28}[\p{L}\p{N}]`.
// The caller must have `resourcemanager.folders.update` permission on the
// identified folder.
//
// If the update fails due to the unique name constraint then a
// `PreconditionFailure` explaining this violation will be returned
// in the Status.details field.
UpdateFolder(context.Context, *UpdateFolderRequest) (*longrunningpb.Operation, error)
// Moves a folder under a new resource parent.
// Returns an `Operation` which can be used to track the progress of the
// folder move workflow.
// Upon success, the `Operation.response` field will be populated with the
// moved folder.
// Upon failure, a `FolderOperationError` categorizing the failure cause will
// be returned - if the failure occurs synchronously then the
// `FolderOperationError` will be returned in the `Status.details` field.
// If it occurs asynchronously, then the FolderOperation will be returned
// in the `Operation.error` field.
// In addition, the `Operation.metadata` field will be populated with a
// `FolderOperation` message as an aid to stateless clients.
// Folder moves will be rejected if they violate either the naming, height,
// or fanout constraints described in the
// [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder]
// documentation. The caller must have `resourcemanager.folders.move`
// permission on the folder's current and proposed new parent.
MoveFolder(context.Context, *MoveFolderRequest) (*longrunningpb.Operation, error)
// Requests deletion of a folder. The folder is moved into the
// [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Folder.State.DELETE_REQUESTED]
// state immediately, and is deleted approximately 30 days later. This method
// may only be called on an empty folder, where a folder is empty if it
// doesn't contain any folders or projects in the
// [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state. If
// called on a folder in
// [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Folder.State.DELETE_REQUESTED]
// state the operation will result in a no-op success.
// The caller must have `resourcemanager.folders.delete` permission on the
// identified folder.
DeleteFolder(context.Context, *DeleteFolderRequest) (*longrunningpb.Operation, error)
// Cancels the deletion request for a folder. This method may be called on a
// folder in any state. If the folder is in the
// [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state the
// result will be a no-op success. In order to succeed, the folder's parent
// must be in the
// [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state. In
// addition, reintroducing the folder into the tree must not violate folder
// naming, height, and fanout constraints described in the
// [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder]
// documentation. The caller must have `resourcemanager.folders.undelete`
// permission on the identified folder.
UndeleteFolder(context.Context, *UndeleteFolderRequest) (*longrunningpb.Operation, error)
// Gets the access control policy for a folder. The returned policy may be
// empty if no such policy or resource exists. The `resource` field should
// be the folder's resource name, for example: "folders/1234".
// The caller must have `resourcemanager.folders.getIamPolicy` permission
// on the identified folder.
GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
// Sets the access control policy on a folder, replacing any existing policy.
// The `resource` field should be the folder's resource name, for example:
// "folders/1234".
// The caller must have `resourcemanager.folders.setIamPolicy` permission
// on the identified folder.
SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
// Returns permissions that a caller has on the specified folder.
// The `resource` field should be the folder's resource name,
// for example: "folders/1234".
//
// There are no permissions required for making this API call.
TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
}FoldersServer is the server API for Folders service. All implementations should embed UnimplementedFoldersServer for forward compatibility
GetFolderRequest
type GetFolderRequest struct {
// Required. The resource name of the folder to retrieve.
// Must be of the form `folders/{folder_id}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The GetFolder request message.
func (*GetFolderRequest) Descriptor
func (*GetFolderRequest) Descriptor() ([]byte, []int)Deprecated: Use GetFolderRequest.ProtoReflect.Descriptor instead.
func (*GetFolderRequest) GetName
func (x *GetFolderRequest) GetName() stringfunc (*GetFolderRequest) ProtoMessage
func (*GetFolderRequest) ProtoMessage()func (*GetFolderRequest) ProtoReflect
func (x *GetFolderRequest) ProtoReflect() protoreflect.Messagefunc (*GetFolderRequest) Reset
func (x *GetFolderRequest) Reset()func (*GetFolderRequest) String
func (x *GetFolderRequest) String() stringGetNamespacedTagKeyRequest
type GetNamespacedTagKeyRequest struct {
// Required. A namespaced tag key name in the format
// `{parentId}/{tagKeyShort}`, such as `42/foo` for a key with short name
// "foo" under the organization with ID 42 or `r2-d2/bar` for a key with short
// name "bar" under the project `r2-d2`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request message for getting a TagKey by its namespaced name.
func (*GetNamespacedTagKeyRequest) Descriptor
func (*GetNamespacedTagKeyRequest) Descriptor() ([]byte, []int)Deprecated: Use GetNamespacedTagKeyRequest.ProtoReflect.Descriptor instead.
func (*GetNamespacedTagKeyRequest) GetName
func (x *GetNamespacedTagKeyRequest) GetName() stringfunc (*GetNamespacedTagKeyRequest) ProtoMessage
func (*GetNamespacedTagKeyRequest) ProtoMessage()func (*GetNamespacedTagKeyRequest) ProtoReflect
func (x *GetNamespacedTagKeyRequest) ProtoReflect() protoreflect.Messagefunc (*GetNamespacedTagKeyRequest) Reset
func (x *GetNamespacedTagKeyRequest) Reset()func (*GetNamespacedTagKeyRequest) String
func (x *GetNamespacedTagKeyRequest) String() stringGetNamespacedTagValueRequest
type GetNamespacedTagValueRequest struct {
// Required. A namespaced tag value name in the following format:
//
// `{parentId}/{tagKeyShort}/{tagValueShort}`
//
// Examples:
// - `42/foo/abc` for a value with short name "abc" under the key with short
// name "foo" under the organization with ID 42
// - `r2-d2/bar/xyz` for a value with short name "xyz" under the key with
// short name "bar" under the project with ID "r2-d2"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request message for getting a TagValue by its namespaced name.
func (*GetNamespacedTagValueRequest) Descriptor
func (*GetNamespacedTagValueRequest) Descriptor() ([]byte, []int)Deprecated: Use GetNamespacedTagValueRequest.ProtoReflect.Descriptor instead.
func (*GetNamespacedTagValueRequest) GetName
func (x *GetNamespacedTagValueRequest) GetName() stringfunc (*GetNamespacedTagValueRequest) ProtoMessage
func (*GetNamespacedTagValueRequest) ProtoMessage()func (*GetNamespacedTagValueRequest) ProtoReflect
func (x *GetNamespacedTagValueRequest) ProtoReflect() protoreflect.Messagefunc (*GetNamespacedTagValueRequest) Reset
func (x *GetNamespacedTagValueRequest) Reset()func (*GetNamespacedTagValueRequest) String
func (x *GetNamespacedTagValueRequest) String() stringGetOrganizationRequest
type GetOrganizationRequest struct {
// Required. The resource name of the Organization to fetch. This is the
// organization's relative path in the API, formatted as
// "organizations/[organizationId]". For example, "organizations/1234".
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request sent to the GetOrganization method. The name field is
required. organization_id is no longer accepted.
func (*GetOrganizationRequest) Descriptor
func (*GetOrganizationRequest) Descriptor() ([]byte, []int)Deprecated: Use GetOrganizationRequest.ProtoReflect.Descriptor instead.
func (*GetOrganizationRequest) GetName
func (x *GetOrganizationRequest) GetName() stringfunc (*GetOrganizationRequest) ProtoMessage
func (*GetOrganizationRequest) ProtoMessage()func (*GetOrganizationRequest) ProtoReflect
func (x *GetOrganizationRequest) ProtoReflect() protoreflect.Messagefunc (*GetOrganizationRequest) Reset
func (x *GetOrganizationRequest) Reset()func (*GetOrganizationRequest) String
func (x *GetOrganizationRequest) String() stringGetProjectRequest
type GetProjectRequest struct {
// Required. The name of the project (for example, `projects/415104041262`).
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request sent to the [GetProject][google.cloud.resourcemanager.v3.Projects.GetProject] method.
func (*GetProjectRequest) Descriptor
func (*GetProjectRequest) Descriptor() ([]byte, []int)Deprecated: Use GetProjectRequest.ProtoReflect.Descriptor instead.
func (*GetProjectRequest) GetName
func (x *GetProjectRequest) GetName() stringfunc (*GetProjectRequest) ProtoMessage
func (*GetProjectRequest) ProtoMessage()func (*GetProjectRequest) ProtoReflect
func (x *GetProjectRequest) ProtoReflect() protoreflect.Messagefunc (*GetProjectRequest) Reset
func (x *GetProjectRequest) Reset()func (*GetProjectRequest) String
func (x *GetProjectRequest) String() stringGetTagKeyRequest
type GetTagKeyRequest struct {
// Required. A resource name in the format `tagKeys/{id}`, such as
// `tagKeys/123`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request message for getting a TagKey.
func (*GetTagKeyRequest) Descriptor
func (*GetTagKeyRequest) Descriptor() ([]byte, []int)Deprecated: Use GetTagKeyRequest.ProtoReflect.Descriptor instead.
func (*GetTagKeyRequest) GetName
func (x *GetTagKeyRequest) GetName() stringfunc (*GetTagKeyRequest) ProtoMessage
func (*GetTagKeyRequest) ProtoMessage()func (*GetTagKeyRequest) ProtoReflect
func (x *GetTagKeyRequest) ProtoReflect() protoreflect.Messagefunc (*GetTagKeyRequest) Reset
func (x *GetTagKeyRequest) Reset()func (*GetTagKeyRequest) String
func (x *GetTagKeyRequest) String() stringGetTagValueRequest
type GetTagValueRequest struct {
// Required. Resource name for TagValue to be fetched in the format
// `tagValues/456`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request message for getting a TagValue.
func (*GetTagValueRequest) Descriptor
func (*GetTagValueRequest) Descriptor() ([]byte, []int)Deprecated: Use GetTagValueRequest.ProtoReflect.Descriptor instead.
func (*GetTagValueRequest) GetName
func (x *GetTagValueRequest) GetName() stringfunc (*GetTagValueRequest) ProtoMessage
func (*GetTagValueRequest) ProtoMessage()func (*GetTagValueRequest) ProtoReflect
func (x *GetTagValueRequest) ProtoReflect() protoreflect.Messagefunc (*GetTagValueRequest) Reset
func (x *GetTagValueRequest) Reset()func (*GetTagValueRequest) String
func (x *GetTagValueRequest) String() stringListEffectiveTagsRequest
type ListEffectiveTagsRequest struct {
// Required. The full resource name of a resource for which you want to list
// the effective tags. E.g.
// "//cloudresourcemanager.googleapis.com/projects/123"
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of effective tags to return in the response.
// The server allows a maximum of 300 effective tags to return in a single
// page. If unspecified, the server will use 100 as the default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A pagination token returned from a previous call to
// `ListEffectiveTags` that indicates from where this listing should continue.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}The request message to ListEffectiveTags
func (*ListEffectiveTagsRequest) Descriptor
func (*ListEffectiveTagsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListEffectiveTagsRequest.ProtoReflect.Descriptor instead.
func (*ListEffectiveTagsRequest) GetPageSize
func (x *ListEffectiveTagsRequest) GetPageSize() int32func (*ListEffectiveTagsRequest) GetPageToken
func (x *ListEffectiveTagsRequest) GetPageToken() stringfunc (*ListEffectiveTagsRequest) GetParent
func (x *ListEffectiveTagsRequest) GetParent() stringfunc (*ListEffectiveTagsRequest) ProtoMessage
func (*ListEffectiveTagsRequest) ProtoMessage()func (*ListEffectiveTagsRequest) ProtoReflect
func (x *ListEffectiveTagsRequest) ProtoReflect() protoreflect.Messagefunc (*ListEffectiveTagsRequest) Reset
func (x *ListEffectiveTagsRequest) Reset()func (*ListEffectiveTagsRequest) String
func (x *ListEffectiveTagsRequest) String() stringListEffectiveTagsResponse
type ListEffectiveTagsResponse struct {
// A possibly paginated list of effective tags for the specified resource.
EffectiveTags []*EffectiveTag `protobuf:"bytes,1,rep,name=effective_tags,json=effectiveTags,proto3" json:"effective_tags,omitempty"`
// Pagination token.
//
// If the result set is too large to fit in a single response, this token
// is returned. It encodes the position of the current result cursor.
// Feeding this value into a new list request with the `page_token` parameter
// gives the next page of the results.
//
// When `next_page_token` is not filled in, there is no next page and
// the list returned is the last page in the result set.
//
// Pagination tokens have a limited lifetime.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response of ListEffectiveTags.
func (*ListEffectiveTagsResponse) Descriptor
func (*ListEffectiveTagsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListEffectiveTagsResponse.ProtoReflect.Descriptor instead.
func (*ListEffectiveTagsResponse) GetEffectiveTags
func (x *ListEffectiveTagsResponse) GetEffectiveTags() []*EffectiveTagfunc (*ListEffectiveTagsResponse) GetNextPageToken
func (x *ListEffectiveTagsResponse) GetNextPageToken() stringfunc (*ListEffectiveTagsResponse) ProtoMessage
func (*ListEffectiveTagsResponse) ProtoMessage()func (*ListEffectiveTagsResponse) ProtoReflect
func (x *ListEffectiveTagsResponse) ProtoReflect() protoreflect.Messagefunc (*ListEffectiveTagsResponse) Reset
func (x *ListEffectiveTagsResponse) Reset()func (*ListEffectiveTagsResponse) String
func (x *ListEffectiveTagsResponse) String() stringListFoldersRequest
type ListFoldersRequest struct {
// Required. The name of the parent resource whose folders are being listed.
// Only children of this parent resource are listed; descendants are not
// listed.
//
// If the parent is a folder, use the value `folders/{folder_id}`. If the
// parent is an organization, use the value `organizations/{org_id}`.
//
// Access to this method is controlled by checking the
// `resourcemanager.folders.list` permission on the `parent`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of folders to return in the response. The
// server can return fewer folders than requested. If unspecified, server
// picks an appropriate default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A pagination token returned from a previous call to `ListFolders`
// that indicates where this listing should continue from.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Controls whether folders in the
// [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Folder.State.DELETE_REQUESTED]
// state should be returned. Defaults to false.
ShowDeleted bool `protobuf:"varint,4,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
// contains filtered or unexported fields
}The ListFolders request message.
func (*ListFoldersRequest) Descriptor
func (*ListFoldersRequest) Descriptor() ([]byte, []int)Deprecated: Use ListFoldersRequest.ProtoReflect.Descriptor instead.
func (*ListFoldersRequest) GetPageSize
func (x *ListFoldersRequest) GetPageSize() int32func (*ListFoldersRequest) GetPageToken
func (x *ListFoldersRequest) GetPageToken() stringfunc (*ListFoldersRequest) GetParent
func (x *ListFoldersRequest) GetParent() stringfunc (*ListFoldersRequest) GetShowDeleted
func (x *ListFoldersRequest) GetShowDeleted() boolfunc (*ListFoldersRequest) ProtoMessage
func (*ListFoldersRequest) ProtoMessage()func (*ListFoldersRequest) ProtoReflect
func (x *ListFoldersRequest) ProtoReflect() protoreflect.Messagefunc (*ListFoldersRequest) Reset
func (x *ListFoldersRequest) Reset()func (*ListFoldersRequest) String
func (x *ListFoldersRequest) String() stringListFoldersResponse
type ListFoldersResponse struct {
// A possibly paginated list of folders that are direct descendants of
// the specified parent resource.
Folders []*Folder `protobuf:"bytes,1,rep,name=folders,proto3" json:"folders,omitempty"`
// A pagination token returned from a previous call to `ListFolders`
// that indicates from where listing should continue.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The ListFolders response message.
func (*ListFoldersResponse) Descriptor
func (*ListFoldersResponse) Descriptor() ([]byte, []int)Deprecated: Use ListFoldersResponse.ProtoReflect.Descriptor instead.
func (*ListFoldersResponse) GetFolders
func (x *ListFoldersResponse) GetFolders() []*Folderfunc (*ListFoldersResponse) GetNextPageToken
func (x *ListFoldersResponse) GetNextPageToken() stringfunc (*ListFoldersResponse) ProtoMessage
func (*ListFoldersResponse) ProtoMessage()func (*ListFoldersResponse) ProtoReflect
func (x *ListFoldersResponse) ProtoReflect() protoreflect.Messagefunc (*ListFoldersResponse) Reset
func (x *ListFoldersResponse) Reset()func (*ListFoldersResponse) String
func (x *ListFoldersResponse) String() stringListProjectsRequest
type ListProjectsRequest struct {
// Required. The name of the parent resource whose projects are being listed.
// Only children of this parent resource are listed; descendants are not
// listed.
//
// If the parent is a folder, use the value `folders/{folder_id}`. If the
// parent is an organization, use the value `organizations/{org_id}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. A pagination token returned from a previous call to
// [ListProjects] [google.cloud.resourcemanager.v3.Projects.ListProjects] that
// indicates from where listing should continue.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. The maximum number of projects to return in the response.
// The server can return fewer projects than requested.
// If unspecified, server picks an appropriate default.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. Indicate that projects in the `DELETE_REQUESTED` state should
// also be returned. Normally only `ACTIVE` projects are returned.
ShowDeleted bool `protobuf:"varint,4,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
// contains filtered or unexported fields
}The request sent to the [ListProjects][google.cloud.resourcemanager.v3.Projects.ListProjects] method.
func (*ListProjectsRequest) Descriptor
func (*ListProjectsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListProjectsRequest.ProtoReflect.Descriptor instead.
func (*ListProjectsRequest) GetPageSize
func (x *ListProjectsRequest) GetPageSize() int32func (*ListProjectsRequest) GetPageToken
func (x *ListProjectsRequest) GetPageToken() stringfunc (*ListProjectsRequest) GetParent
func (x *ListProjectsRequest) GetParent() stringfunc (*ListProjectsRequest) GetShowDeleted
func (x *ListProjectsRequest) GetShowDeleted() boolfunc (*ListProjectsRequest) ProtoMessage
func (*ListProjectsRequest) ProtoMessage()func (*ListProjectsRequest) ProtoReflect
func (x *ListProjectsRequest) ProtoReflect() protoreflect.Messagefunc (*ListProjectsRequest) Reset
func (x *ListProjectsRequest) Reset()func (*ListProjectsRequest) String
func (x *ListProjectsRequest) String() stringListProjectsResponse
type ListProjectsResponse struct {
// The list of Projects under the parent. This list can be paginated.
Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
// Pagination token.
//
// If the result set is too large to fit in a single response, this token
// is returned. It encodes the position of the current result cursor.
// Feeding this value into a new list request with the `page_token` parameter
// gives the next page of the results.
//
// When `next_page_token` is not filled in, there is no next page and
// the list returned is the last page in the result set.
//
// Pagination tokens have a limited lifetime.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}A page of the response received from the [ListProjects][google.cloud.resourcemanager.v3.Projects.ListProjects] method.
A paginated response where more pages are available has
next_page_token set. This token can be used in a subsequent request to
retrieve the next request page.
NOTE: A response may contain fewer elements than the request page_size and
still have a next_page_token.
func (*ListProjectsResponse) Descriptor
func (*ListProjectsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListProjectsResponse.ProtoReflect.Descriptor instead.
func (*ListProjectsResponse) GetNextPageToken
func (x *ListProjectsResponse) GetNextPageToken() stringfunc (*ListProjectsResponse) GetProjects
func (x *ListProjectsResponse) GetProjects() []*Projectfunc (*ListProjectsResponse) ProtoMessage
func (*ListProjectsResponse) ProtoMessage()func (*ListProjectsResponse) ProtoReflect
func (x *ListProjectsResponse) ProtoReflect() protoreflect.Messagefunc (*ListProjectsResponse) Reset
func (x *ListProjectsResponse) Reset()func (*ListProjectsResponse) String
func (x *ListProjectsResponse) String() stringListTagBindingsRequest
type ListTagBindingsRequest struct {
// Required. The full resource name of a resource for which you want to list
// existing TagBindings. E.g.
// "//cloudresourcemanager.googleapis.com/projects/123"
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of TagBindings to return in the response. The
// server allows a maximum of 300 TagBindings to return. If unspecified, the
// server will use 100 as the default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A pagination token returned from a previous call to
// `ListTagBindings` that indicates where this listing should continue from.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}The request message to list all TagBindings for a parent.
func (*ListTagBindingsRequest) Descriptor
func (*ListTagBindingsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListTagBindingsRequest.ProtoReflect.Descriptor instead.
func (*ListTagBindingsRequest) GetPageSize
func (x *ListTagBindingsRequest) GetPageSize() int32func (*ListTagBindingsRequest) GetPageToken
func (x *ListTagBindingsRequest) GetPageToken() stringfunc (*ListTagBindingsRequest) GetParent
func (x *ListTagBindingsRequest) GetParent() stringfunc (*ListTagBindingsRequest) ProtoMessage
func (*ListTagBindingsRequest) ProtoMessage()func (*ListTagBindingsRequest) ProtoReflect
func (x *ListTagBindingsRequest) ProtoReflect() protoreflect.Messagefunc (*ListTagBindingsRequest) Reset
func (x *ListTagBindingsRequest) Reset()func (*ListTagBindingsRequest) String
func (x *ListTagBindingsRequest) String() stringListTagBindingsResponse
type ListTagBindingsResponse struct {
// A possibly paginated list of TagBindings for the specified resource.
TagBindings []*TagBinding `protobuf:"bytes,1,rep,name=tag_bindings,json=tagBindings,proto3" json:"tag_bindings,omitempty"`
// Pagination token.
//
// If the result set is too large to fit in a single response, this token
// is returned. It encodes the position of the current result cursor.
// Feeding this value into a new list request with the `page_token` parameter
// gives the next page of the results.
//
// When `next_page_token` is not filled in, there is no next page and
// the list returned is the last page in the result set.
//
// Pagination tokens have a limited lifetime.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The ListTagBindings response.
func (*ListTagBindingsResponse) Descriptor
func (*ListTagBindingsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListTagBindingsResponse.ProtoReflect.Descriptor instead.
func (*ListTagBindingsResponse) GetNextPageToken
func (x *ListTagBindingsResponse) GetNextPageToken() stringfunc (*ListTagBindingsResponse) GetTagBindings
func (x *ListTagBindingsResponse) GetTagBindings() []*TagBindingfunc (*ListTagBindingsResponse) ProtoMessage
func (*ListTagBindingsResponse) ProtoMessage()func (*ListTagBindingsResponse) ProtoReflect
func (x *ListTagBindingsResponse) ProtoReflect() protoreflect.Messagefunc (*ListTagBindingsResponse) Reset
func (x *ListTagBindingsResponse) Reset()func (*ListTagBindingsResponse) String
func (x *ListTagBindingsResponse) String() stringListTagHoldsRequest
type ListTagHoldsRequest struct {
// Required. The resource name of the parent TagValue. Must be of the form:
// `tagValues/{tag-value-id}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of TagHolds to return in the response. The
// server allows a maximum of 300 TagHolds to return. If unspecified, the
// server will use 100 as the default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A pagination token returned from a previous call to
// `ListTagHolds` that indicates where this listing should continue from.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Criteria used to select a subset of TagHolds parented by the
// TagValue to return. This field follows the syntax defined by aip.dev/160;
// the `holder` and `origin` fields are supported for filtering. Currently
// only `AND` syntax is supported. Some example queries are:
//
// - `holder =
// //compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group`
// - `origin = 35678234`
// - `holder =
// //compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group
// AND origin = 35678234`
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}The request message for listing the TagHolds under a TagValue.
func (*ListTagHoldsRequest) Descriptor
func (*ListTagHoldsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListTagHoldsRequest.ProtoReflect.Descriptor instead.
func (*ListTagHoldsRequest) GetFilter
func (x *ListTagHoldsRequest) GetFilter() stringfunc (*ListTagHoldsRequest) GetPageSize
func (x *ListTagHoldsRequest) GetPageSize() int32func (*ListTagHoldsRequest) GetPageToken
func (x *ListTagHoldsRequest) GetPageToken() stringfunc (*ListTagHoldsRequest) GetParent
func (x *ListTagHoldsRequest) GetParent() stringfunc (*ListTagHoldsRequest) ProtoMessage
func (*ListTagHoldsRequest) ProtoMessage()func (*ListTagHoldsRequest) ProtoReflect
func (x *ListTagHoldsRequest) ProtoReflect() protoreflect.Messagefunc (*ListTagHoldsRequest) Reset
func (x *ListTagHoldsRequest) Reset()func (*ListTagHoldsRequest) String
func (x *ListTagHoldsRequest) String() stringListTagHoldsResponse
type ListTagHoldsResponse struct {
// A possibly paginated list of TagHolds.
TagHolds []*TagHold `protobuf:"bytes,1,rep,name=tag_holds,json=tagHolds,proto3" json:"tag_holds,omitempty"`
// Pagination token.
//
// If the result set is too large to fit in a single response, this token
// is returned. It encodes the position of the current result cursor.
// Feeding this value into a new list request with the `page_token` parameter
// gives the next page of the results.
//
// When `next_page_token` is not filled in, there is no next page and
// the list returned is the last page in the result set.
//
// Pagination tokens have a limited lifetime.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The ListTagHolds response.
func (*ListTagHoldsResponse) Descriptor
func (*ListTagHoldsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListTagHoldsResponse.ProtoReflect.Descriptor instead.
func (*ListTagHoldsResponse) GetNextPageToken
func (x *ListTagHoldsResponse) GetNextPageToken() stringfunc (*ListTagHoldsResponse) GetTagHolds
func (x *ListTagHoldsResponse) GetTagHolds() []*TagHoldfunc (*ListTagHoldsResponse) ProtoMessage
func (*ListTagHoldsResponse) ProtoMessage()func (*ListTagHoldsResponse) ProtoReflect
func (x *ListTagHoldsResponse) ProtoReflect() protoreflect.Messagefunc (*ListTagHoldsResponse) Reset
func (x *ListTagHoldsResponse) Reset()func (*ListTagHoldsResponse) String
func (x *ListTagHoldsResponse) String() stringListTagKeysRequest
type ListTagKeysRequest struct {
// Required. The resource name of the TagKey's parent.
// Must be of the form `organizations/{org_id}` or `projects/{project_id}` or
// `projects/{project_number}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of TagKeys to return in the response. The
// server allows a maximum of 300 TagKeys to return. If unspecified, the
// server will use 100 as the default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A pagination token returned from a previous call to `ListTagKey`
// that indicates where this listing should continue from.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}The request message for listing all TagKeys under a parent resource.
func (*ListTagKeysRequest) Descriptor
func (*ListTagKeysRequest) Descriptor() ([]byte, []int)Deprecated: Use ListTagKeysRequest.ProtoReflect.Descriptor instead.
func (*ListTagKeysRequest) GetPageSize
func (x *ListTagKeysRequest) GetPageSize() int32func (*ListTagKeysRequest) GetPageToken
func (x *ListTagKeysRequest) GetPageToken() stringfunc (*ListTagKeysRequest) GetParent
func (x *ListTagKeysRequest) GetParent() stringfunc (*ListTagKeysRequest) ProtoMessage
func (*ListTagKeysRequest) ProtoMessage()func (*ListTagKeysRequest) ProtoReflect
func (x *ListTagKeysRequest) ProtoReflect() protoreflect.Messagefunc (*ListTagKeysRequest) Reset
func (x *ListTagKeysRequest) Reset()func (*ListTagKeysRequest) String
func (x *ListTagKeysRequest) String() stringListTagKeysResponse
type ListTagKeysResponse struct {
// List of TagKeys that live under the specified parent in the request.
TagKeys []*TagKey `protobuf:"bytes,1,rep,name=tag_keys,json=tagKeys,proto3" json:"tag_keys,omitempty"`
// A pagination token returned from a previous call to `ListTagKeys`
// that indicates from where listing should continue.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The ListTagKeys response message.
func (*ListTagKeysResponse) Descriptor
func (*ListTagKeysResponse) Descriptor() ([]byte, []int)Deprecated: Use ListTagKeysResponse.ProtoReflect.Descriptor instead.
func (*ListTagKeysResponse) GetNextPageToken
func (x *ListTagKeysResponse) GetNextPageToken() stringfunc (*ListTagKeysResponse) GetTagKeys
func (x *ListTagKeysResponse) GetTagKeys() []*TagKeyfunc (*ListTagKeysResponse) ProtoMessage
func (*ListTagKeysResponse) ProtoMessage()func (*ListTagKeysResponse) ProtoReflect
func (x *ListTagKeysResponse) ProtoReflect() protoreflect.Messagefunc (*ListTagKeysResponse) Reset
func (x *ListTagKeysResponse) Reset()func (*ListTagKeysResponse) String
func (x *ListTagKeysResponse) String() stringListTagValuesRequest
type ListTagValuesRequest struct {
// Required.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of TagValues to return in the response. The
// server allows a maximum of 300 TagValues to return. If unspecified, the
// server will use 100 as the default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A pagination token returned from a previous call to
// `ListTagValues` that indicates where this listing should continue from.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}The request message for listing TagValues for the specified TagKey.
Resource name for TagKey, parent of the TagValues to be listed,
in the format tagKeys/123.
func (*ListTagValuesRequest) Descriptor
func (*ListTagValuesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListTagValuesRequest.ProtoReflect.Descriptor instead.
func (*ListTagValuesRequest) GetPageSize
func (x *ListTagValuesRequest) GetPageSize() int32func (*ListTagValuesRequest) GetPageToken
func (x *ListTagValuesRequest) GetPageToken() stringfunc (*ListTagValuesRequest) GetParent
func (x *ListTagValuesRequest) GetParent() stringfunc (*ListTagValuesRequest) ProtoMessage
func (*ListTagValuesRequest) ProtoMessage()func (*ListTagValuesRequest) ProtoReflect
func (x *ListTagValuesRequest) ProtoReflect() protoreflect.Messagefunc (*ListTagValuesRequest) Reset
func (x *ListTagValuesRequest) Reset()func (*ListTagValuesRequest) String
func (x *ListTagValuesRequest) String() stringListTagValuesResponse
type ListTagValuesResponse struct {
// A possibly paginated list of TagValues that are direct descendants of
// the specified parent TagKey.
TagValues []*TagValue `protobuf:"bytes,1,rep,name=tag_values,json=tagValues,proto3" json:"tag_values,omitempty"`
// A pagination token returned from a previous call to `ListTagValues`
// that indicates from where listing should continue. This is currently not
// used, but the server may at any point start supplying a valid token.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The ListTagValues response.
func (*ListTagValuesResponse) Descriptor
func (*ListTagValuesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListTagValuesResponse.ProtoReflect.Descriptor instead.
func (*ListTagValuesResponse) GetNextPageToken
func (x *ListTagValuesResponse) GetNextPageToken() stringfunc (*ListTagValuesResponse) GetTagValues
func (x *ListTagValuesResponse) GetTagValues() []*TagValuefunc (*ListTagValuesResponse) ProtoMessage
func (*ListTagValuesResponse) ProtoMessage()func (*ListTagValuesResponse) ProtoReflect
func (x *ListTagValuesResponse) ProtoReflect() protoreflect.Messagefunc (*ListTagValuesResponse) Reset
func (x *ListTagValuesResponse) Reset()func (*ListTagValuesResponse) String
func (x *ListTagValuesResponse) String() stringMoveFolderMetadata
type MoveFolderMetadata struct {
// The display name of the folder.
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// The resource name of the folder's parent.
SourceParent string `protobuf:"bytes,2,opt,name=source_parent,json=sourceParent,proto3" json:"source_parent,omitempty"`
// The resource name of the folder or organization to move the folder to.
DestinationParent string `protobuf:"bytes,3,opt,name=destination_parent,json=destinationParent,proto3" json:"destination_parent,omitempty"`
// contains filtered or unexported fields
}Metadata pertaining to the folder move process.
func (*MoveFolderMetadata) Descriptor
func (*MoveFolderMetadata) Descriptor() ([]byte, []int)Deprecated: Use MoveFolderMetadata.ProtoReflect.Descriptor instead.
func (*MoveFolderMetadata) GetDestinationParent
func (x *MoveFolderMetadata) GetDestinationParent() stringfunc (*MoveFolderMetadata) GetDisplayName
func (x *MoveFolderMetadata) GetDisplayName() stringfunc (*MoveFolderMetadata) GetSourceParent
func (x *MoveFolderMetadata) GetSourceParent() stringfunc (*MoveFolderMetadata) ProtoMessage
func (*MoveFolderMetadata) ProtoMessage()func (*MoveFolderMetadata) ProtoReflect
func (x *MoveFolderMetadata) ProtoReflect() protoreflect.Messagefunc (*MoveFolderMetadata) Reset
func (x *MoveFolderMetadata) Reset()func (*MoveFolderMetadata) String
func (x *MoveFolderMetadata) String() stringMoveFolderRequest
type MoveFolderRequest struct {
// Required. The resource name of the Folder to move.
// Must be of the form folders/{folder_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The resource name of the folder or organization which should be
// the folder's new parent. Must be of the form `folders/{folder_id}` or
// `organizations/{org_id}`.
DestinationParent string `protobuf:"bytes,2,opt,name=destination_parent,json=destinationParent,proto3" json:"destination_parent,omitempty"`
// contains filtered or unexported fields
}The MoveFolder request message.
func (*MoveFolderRequest) Descriptor
func (*MoveFolderRequest) Descriptor() ([]byte, []int)Deprecated: Use MoveFolderRequest.ProtoReflect.Descriptor instead.
func (*MoveFolderRequest) GetDestinationParent
func (x *MoveFolderRequest) GetDestinationParent() stringfunc (*MoveFolderRequest) GetName
func (x *MoveFolderRequest) GetName() stringfunc (*MoveFolderRequest) ProtoMessage
func (*MoveFolderRequest) ProtoMessage()func (*MoveFolderRequest) ProtoReflect
func (x *MoveFolderRequest) ProtoReflect() protoreflect.Messagefunc (*MoveFolderRequest) Reset
func (x *MoveFolderRequest) Reset()func (*MoveFolderRequest) String
func (x *MoveFolderRequest) String() stringMoveProjectMetadata
type MoveProjectMetadata struct {
// contains filtered or unexported fields
}A status object which is used as the metadata field for the Operation
returned by MoveProject.
func (*MoveProjectMetadata) Descriptor
func (*MoveProjectMetadata) Descriptor() ([]byte, []int)Deprecated: Use MoveProjectMetadata.ProtoReflect.Descriptor instead.
func (*MoveProjectMetadata) ProtoMessage
func (*MoveProjectMetadata) ProtoMessage()func (*MoveProjectMetadata) ProtoReflect
func (x *MoveProjectMetadata) ProtoReflect() protoreflect.Messagefunc (*MoveProjectMetadata) Reset
func (x *MoveProjectMetadata) Reset()func (*MoveProjectMetadata) String
func (x *MoveProjectMetadata) String() stringMoveProjectRequest
type MoveProjectRequest struct {
// Required. The name of the project to move.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The new parent to move the Project under.
DestinationParent string `protobuf:"bytes,2,opt,name=destination_parent,json=destinationParent,proto3" json:"destination_parent,omitempty"`
// contains filtered or unexported fields
}The request sent to [MoveProject][google.cloud.resourcemanager.v3.Projects.MoveProject] method.
func (*MoveProjectRequest) Descriptor
func (*MoveProjectRequest) Descriptor() ([]byte, []int)Deprecated: Use MoveProjectRequest.ProtoReflect.Descriptor instead.
func (*MoveProjectRequest) GetDestinationParent
func (x *MoveProjectRequest) GetDestinationParent() stringfunc (*MoveProjectRequest) GetName
func (x *MoveProjectRequest) GetName() stringfunc (*MoveProjectRequest) ProtoMessage
func (*MoveProjectRequest) ProtoMessage()func (*MoveProjectRequest) ProtoReflect
func (x *MoveProjectRequest) ProtoReflect() protoreflect.Messagefunc (*MoveProjectRequest) Reset
func (x *MoveProjectRequest) Reset()func (*MoveProjectRequest) String
func (x *MoveProjectRequest) String() stringOrganization
type Organization struct {
// Output only. The resource name of the organization. This is the
// organization's relative path in the API. Its format is
// "organizations/[organization_id]". For example, "organizations/1234".
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. A human-readable string that refers to the organization in the
// Google Cloud Console. This string is set by the server and cannot be
// changed. The string will be set to the primary domain (for example,
// "google.com") of the Google Workspace customer that owns the organization.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// The owner of this organization. The owner should be specified on
// creation. Once set, it cannot be changed.
//
// The lifetime of the organization and all of its descendants are bound to
// the owner. If the owner is deleted, the organization and all its
// descendants will be deleted.
//
// Types that are valid to be assigned to Owner:
//
// *Organization_DirectoryCustomerId
Owner isOrganization_Owner `protobuf_oneof:"owner"`
// Output only. The organization's current lifecycle state.
State Organization_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.resourcemanager.v3.Organization_State" json:"state,omitempty"`
// Output only. Timestamp when the Organization was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Timestamp when the Organization was last modified.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. Timestamp when the Organization was requested for deletion.
DeleteTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
// Output only. A checksum computed by the server based on the current value
// of the Organization resource. This may be sent on update and delete
// requests to ensure the client has an up-to-date value before proceeding.
Etag string `protobuf:"bytes,8,opt,name=etag,proto3" json:"etag,omitempty"`
// contains filtered or unexported fields
}The root node in the resource hierarchy to which a particular entity's (a company, for example) resources belong.
func (*Organization) Descriptor
func (*Organization) Descriptor() ([]byte, []int)Deprecated: Use Organization.ProtoReflect.Descriptor instead.
func (*Organization) GetCreateTime
func (x *Organization) GetCreateTime() *timestamppb.Timestampfunc (*Organization) GetDeleteTime
func (x *Organization) GetDeleteTime() *timestamppb.Timestampfunc (*Organization) GetDirectoryCustomerId
func (x *Organization) GetDirectoryCustomerId() stringfunc (*Organization) GetDisplayName
func (x *Organization) GetDisplayName() stringfunc (*Organization) GetEtag
func (x *Organization) GetEtag() stringfunc (*Organization) GetName
func (x *Organization) GetName() stringfunc (*Organization) GetOwner
func (x *Organization) GetOwner() isOrganization_Ownerfunc (*Organization) GetState
func (x *Organization) GetState() Organization_Statefunc (*Organization) GetUpdateTime
func (x *Organization) GetUpdateTime() *timestamppb.Timestampfunc (*Organization) ProtoMessage
func (*Organization) ProtoMessage()func (*Organization) ProtoReflect
func (x *Organization) ProtoReflect() protoreflect.Messagefunc (*Organization) Reset
func (x *Organization) Reset()func (*Organization) String
func (x *Organization) String() stringOrganization_DirectoryCustomerId
type Organization_DirectoryCustomerId struct {
// Immutable. The G Suite / Workspace customer id used in the Directory API.
DirectoryCustomerId string `protobuf:"bytes,3,opt,name=directory_customer_id,json=directoryCustomerId,proto3,oneof"`
}Organization_State
type Organization_State int32Organization lifecycle states.
Organization_STATE_UNSPECIFIED, Organization_ACTIVE, Organization_DELETE_REQUESTED
const (
// Unspecified state. This is only useful for distinguishing unset values.
Organization_STATE_UNSPECIFIED Organization_State = 0
// The normal and active state.
Organization_ACTIVE Organization_State = 1
// The organization has been marked for deletion by the user.
Organization_DELETE_REQUESTED Organization_State = 2
)func (Organization_State) Descriptor
func (Organization_State) Descriptor() protoreflect.EnumDescriptorfunc (Organization_State) Enum
func (x Organization_State) Enum() *Organization_Statefunc (Organization_State) EnumDescriptor
func (Organization_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Organization_State.Descriptor instead.
func (Organization_State) Number
func (x Organization_State) Number() protoreflect.EnumNumberfunc (Organization_State) String
func (x Organization_State) String() stringfunc (Organization_State) Type
func (Organization_State) Type() protoreflect.EnumTypeOrganizationsClient
type OrganizationsClient interface {
// Fetches an organization resource identified by the specified resource name.
GetOrganization(ctx context.Context, in *GetOrganizationRequest, opts ...grpc.CallOption) (*Organization, error)
// Searches organization resources that are visible to the user and satisfy
// the specified filter. This method returns organizations in an unspecified
// order. New organizations do not necessarily appear at the end of the
// results, and may take a small amount of time to appear.
//
// Search will only return organizations on which the user has the permission
// `resourcemanager.organizations.get`
SearchOrganizations(ctx context.Context, in *SearchOrganizationsRequest, opts ...grpc.CallOption) (*SearchOrganizationsResponse, error)
// Gets the access control policy for an organization resource. The policy may
// be empty if no such policy or resource exists. The `resource` field should
// be the organization's resource name, for example: "organizations/123".
//
// Authorization requires the IAM permission
// `resourcemanager.organizations.getIamPolicy` on the specified organization.
GetIamPolicy(ctx context.Context, in *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
// Sets the access control policy on an organization resource. Replaces any
// existing policy. The `resource` field should be the organization's resource
// name, for example: "organizations/123".
//
// Authorization requires the IAM permission
// `resourcemanager.organizations.setIamPolicy` on the specified organization.
SetIamPolicy(ctx context.Context, in *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
// Returns the permissions that a caller has on the specified organization.
// The `resource` field should be the organization's resource name,
// for example: "organizations/123".
//
// There are no permissions required for making this API call.
TestIamPermissions(ctx context.Context, in *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.TestIamPermissionsResponse, error)
}OrganizationsClient is the client API for Organizations service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewOrganizationsClient
func NewOrganizationsClient(cc grpc.ClientConnInterface) OrganizationsClientOrganizationsServer
type OrganizationsServer interface {
// Fetches an organization resource identified by the specified resource name.
GetOrganization(context.Context, *GetOrganizationRequest) (*Organization, error)
// Searches organization resources that are visible to the user and satisfy
// the specified filter. This method returns organizations in an unspecified
// order. New organizations do not necessarily appear at the end of the
// results, and may take a small amount of time to appear.
//
// Search will only return organizations on which the user has the permission
// `resourcemanager.organizations.get`
SearchOrganizations(context.Context, *SearchOrganizationsRequest) (*SearchOrganizationsResponse, error)
// Gets the access control policy for an organization resource. The policy may
// be empty if no such policy or resource exists. The `resource` field should
// be the organization's resource name, for example: "organizations/123".
//
// Authorization requires the IAM permission
// `resourcemanager.organizations.getIamPolicy` on the specified organization.
GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
// Sets the access control policy on an organization resource. Replaces any
// existing policy. The `resource` field should be the organization's resource
// name, for example: "organizations/123".
//
// Authorization requires the IAM permission
// `resourcemanager.organizations.setIamPolicy` on the specified organization.
SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
// Returns the permissions that a caller has on the specified organization.
// The `resource` field should be the organization's resource name,
// for example: "organizations/123".
//
// There are no permissions required for making this API call.
TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
}OrganizationsServer is the server API for Organizations service. All implementations should embed UnimplementedOrganizationsServer for forward compatibility
Project
type Project struct {
// Output only. The unique resource name of the project. It is an int64
// generated number prefixed by "projects/".
//
// Example: `projects/415104041262`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. A reference to a parent Resource. eg., `organizations/123` or
// `folders/876`.
Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
// Immutable. The unique, user-assigned id of the project.
// It must be 6 to 30 lowercase ASCII letters, digits, or hyphens.
// It must start with a letter.
// Trailing hyphens are prohibited.
//
// Example: `tokyo-rain-123`
ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Output only. The project lifecycle state.
State Project_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.resourcemanager.v3.Project_State" json:"state,omitempty"`
// Optional. A user-assigned display name of the project.
// When present it must be between 4 to 30 characters.
// Allowed characters are: lowercase and uppercase letters, numbers,
// hyphen, single-quote, double-quote, space, and exclamation point.
//
// Example: `My Project`
DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Output only. Creation time.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The most recent time this resource was modified.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. The time at which this resource was requested for deletion.
DeleteTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
// Output only. A checksum computed by the server based on the current value
// of the Project resource. This may be sent on update and delete requests to
// ensure the client has an up-to-date value before proceeding.
Etag string `protobuf:"bytes,9,opt,name=etag,proto3" json:"etag,omitempty"`
// Optional. The labels associated with this project.
//
// Label keys must be between 1 and 63 characters long and must conform
// to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
//
// Label values must be between 0 and 63 characters long and must conform
// to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
//
// No more than 64 labels can be associated with a given resource.
//
// Clients should store labels in a representation such as JSON that does not
// depend on specific characters being disallowed.
//
// Example: `"myBusinessDimension" : "businessValue"`
Labels map[string]string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// contains filtered or unexported fields
}A project is a high-level Google Cloud entity. It is a container for ACLs, APIs, App Engine Apps, VMs, and other Google Cloud Platform resources.
func (*Project) Descriptor
Deprecated: Use Project.ProtoReflect.Descriptor instead.
func (*Project) GetCreateTime
func (x *Project) GetCreateTime() *timestamppb.Timestampfunc (*Project) GetDeleteTime
func (x *Project) GetDeleteTime() *timestamppb.Timestampfunc (*Project) GetDisplayName
func (*Project) GetEtag
func (*Project) GetLabels
func (*Project) GetName
func (*Project) GetParent
func (*Project) GetProjectId
func (*Project) GetState
func (x *Project) GetState() Project_Statefunc (*Project) GetUpdateTime
func (x *Project) GetUpdateTime() *timestamppb.Timestampfunc (*Project) ProtoMessage
func (*Project) ProtoMessage()func (*Project) ProtoReflect
func (x *Project) ProtoReflect() protoreflect.Messagefunc (*Project) Reset
func (x *Project) Reset()func (*Project) String
Project_State
type Project_State int32Project lifecycle states.
Project_STATE_UNSPECIFIED, Project_ACTIVE, Project_DELETE_REQUESTED
const (
// Unspecified state. This is only used/useful for distinguishing
// unset values.
Project_STATE_UNSPECIFIED Project_State = 0
// The normal and active state.
Project_ACTIVE Project_State = 1
// The project has been marked for deletion by the user
// (by invoking
// [DeleteProject][google.cloud.resourcemanager.v3.Projects.DeleteProject])
// or by the system (Google Cloud Platform).
// This can generally be reversed by invoking [UndeleteProject]
// [google.cloud.resourcemanager.v3.Projects.UndeleteProject].
Project_DELETE_REQUESTED Project_State = 2
)func (Project_State) Descriptor
func (Project_State) Descriptor() protoreflect.EnumDescriptorfunc (Project_State) Enum
func (x Project_State) Enum() *Project_Statefunc (Project_State) EnumDescriptor
func (Project_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Project_State.Descriptor instead.
func (Project_State) Number
func (x Project_State) Number() protoreflect.EnumNumberfunc (Project_State) String
func (x Project_State) String() stringfunc (Project_State) Type
func (Project_State) Type() protoreflect.EnumTypeProjectsClient
type ProjectsClient interface {
// Retrieves the project identified by the specified `name` (for example,
// `projects/415104041262`).
//
// The caller must have `resourcemanager.projects.get` permission
// for this project.
GetProject(ctx context.Context, in *GetProjectRequest, opts ...grpc.CallOption) (*Project, error)
// Lists projects that are direct children of the specified folder or
// organization resource. `list()` provides a strongly consistent view of the
// projects underneath the specified parent resource. `list()` returns
// projects sorted based upon the (ascending) lexical ordering of their
// `display_name`. The caller must have `resourcemanager.projects.list`
// permission on the identified parent.
ListProjects(ctx context.Context, in *ListProjectsRequest, opts ...grpc.CallOption) (*ListProjectsResponse, error)
// Search for projects that the caller has both `resourcemanager.projects.get`
// permission on, and also satisfy the specified query.
//
// This method returns projects in an unspecified order.
//
// This method is eventually consistent with project mutations; this means
// that a newly created project may not appear in the results or recent
// updates to an existing project may not be reflected in the results. To
// retrieve the latest state of a project, use the
// [GetProject][google.cloud.resourcemanager.v3.Projects.GetProject] method.
SearchProjects(ctx context.Context, in *SearchProjectsRequest, opts ...grpc.CallOption) (*SearchProjectsResponse, error)
// Request that a new project be created. The result is an `Operation` which
// can be used to track the creation process. This process usually takes a few
// seconds, but can sometimes take much longer. The tracking `Operation` is
// automatically deleted after a few hours, so there is no need to call
// `DeleteOperation`.
CreateProject(ctx context.Context, in *CreateProjectRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates the `display_name` and labels of the project identified by the
// specified `name` (for example, `projects/415104041262`). Deleting all
// labels requires an update mask for labels field.
//
// The caller must have `resourcemanager.projects.update` permission for this
// project.
UpdateProject(ctx context.Context, in *UpdateProjectRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Move a project to another place in your resource hierarchy, under a new
// resource parent.
//
// Returns an operation which can be used to track the process of the project
// move workflow.
// Upon success, the `Operation.response` field will be populated with the
// moved project.
//
// The caller must have `resourcemanager.projects.move` permission on the
// project, on the project's current and proposed new parent.
//
// If project has no current parent, or it currently does not have an
// associated organization resource, you will also need the
// `resourcemanager.projects.setIamPolicy` permission in the project.
MoveProject(ctx context.Context, in *MoveProjectRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Marks the project identified by the specified
// `name` (for example, `projects/415104041262`) for deletion.
//
// This method will only affect the project if it has a lifecycle state of
// [ACTIVE][google.cloud.resourcemanager.v3.Project.State.ACTIVE].
//
// This method changes the Project's lifecycle state from
// [ACTIVE][google.cloud.resourcemanager.v3.Project.State.ACTIVE]
// to
// [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Project.State.DELETE_REQUESTED].
// The deletion starts at an unspecified time,
// at which point the Project is no longer accessible.
//
// Until the deletion completes, you can check the lifecycle state
// checked by retrieving the project with [GetProject]
// [google.cloud.resourcemanager.v3.Projects.GetProject],
// and the project remains visible to [ListProjects]
// [google.cloud.resourcemanager.v3.Projects.ListProjects].
// However, you cannot update the project.
//
// After the deletion completes, the project is not retrievable by
// the [GetProject]
// [google.cloud.resourcemanager.v3.Projects.GetProject],
// [ListProjects]
// [google.cloud.resourcemanager.v3.Projects.ListProjects], and
// [SearchProjects][google.cloud.resourcemanager.v3.Projects.SearchProjects]
// methods.
//
// This method behaves idempotently, such that deleting a `DELETE_REQUESTED`
// project will not cause an error, but also won't do anything.
//
// The caller must have `resourcemanager.projects.delete` permissions for this
// project.
DeleteProject(ctx context.Context, in *DeleteProjectRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Restores the project identified by the specified
// `name` (for example, `projects/415104041262`).
// You can only use this method for a project that has a lifecycle state of
// [DELETE_REQUESTED]
// [Projects.State.DELETE_REQUESTED].
// After deletion starts, the project cannot be restored.
//
// The caller must have `resourcemanager.projects.undelete` permission for
// this project.
UndeleteProject(ctx context.Context, in *UndeleteProjectRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Returns the IAM access control policy for the specified project, in the
// format `projects/{ProjectIdOrNumber}` e.g. projects/123.
// Permission is denied if the policy or the resource do not exist.
GetIamPolicy(ctx context.Context, in *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
// Sets the IAM access control policy for the specified project, in the
// format `projects/{ProjectIdOrNumber}` e.g. projects/123.
//
// CAUTION: This method will replace the existing policy, and cannot be used
// to append additional IAM settings.
//
// Note: Removing service accounts from policies or changing their roles can
// render services completely inoperable. It is important to understand how
// the service account is being used before removing or updating its roles.
//
// The following constraints apply when using `setIamPolicy()`:
//
// + Project does not support `allUsers` and `allAuthenticatedUsers` as
// `members` in a `Binding` of a `Policy`.
//
// + The owner role can be granted to a `user`, `serviceAccount`, or a group
// that is part of an organization. For example,
// group@myownpersonaldomain.com could be added as an owner to a project in
// the myownpersonaldomain.com organization, but not the examplepetstore.com
// organization.
//
// + Service accounts can be made owners of a project directly
// without any restrictions. However, to be added as an owner, a user must be
// invited using the Cloud Platform console and must accept the invitation.
//
// + A user cannot be granted the owner role using `setIamPolicy()`. The user
// must be granted the owner role using the Cloud Platform Console and must
// explicitly accept the invitation.
//
// + Invitations to grant the owner role cannot be sent using
// `setIamPolicy()`;
// they must be sent only using the Cloud Platform Console.
//
// + If the project is not part of an organization, there must be at least
// one owner who has accepted the Terms of Service (ToS) agreement in the
// policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner
// from the policy will fail. This restriction also applies to legacy
// projects that no longer have owners who have accepted the ToS. Edits to
// IAM policies will be rejected until the lack of a ToS-accepting owner is
// rectified. If the project is part of an organization, you can remove all
// owners, potentially making the organization inaccessible.
SetIamPolicy(ctx context.Context, in *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
// Returns permissions that a caller has on the specified project, in the
// format `projects/{ProjectIdOrNumber}` e.g. projects/123..
TestIamPermissions(ctx context.Context, in *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.TestIamPermissionsResponse, error)
}ProjectsClient is the client API for Projects service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewProjectsClient
func NewProjectsClient(cc grpc.ClientConnInterface) ProjectsClientProjectsServer
type ProjectsServer interface {
// Retrieves the project identified by the specified `name` (for example,
// `projects/415104041262`).
//
// The caller must have `resourcemanager.projects.get` permission
// for this project.
GetProject(context.Context, *GetProjectRequest) (*Project, error)
// Lists projects that are direct children of the specified folder or
// organization resource. `list()` provides a strongly consistent view of the
// projects underneath the specified parent resource. `list()` returns
// projects sorted based upon the (ascending) lexical ordering of their
// `display_name`. The caller must have `resourcemanager.projects.list`
// permission on the identified parent.
ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error)
// Search for projects that the caller has both `resourcemanager.projects.get`
// permission on, and also satisfy the specified query.
//
// This method returns projects in an unspecified order.
//
// This method is eventually consistent with project mutations; this means
// that a newly created project may not appear in the results or recent
// updates to an existing project may not be reflected in the results. To
// retrieve the latest state of a project, use the
// [GetProject][google.cloud.resourcemanager.v3.Projects.GetProject] method.
SearchProjects(context.Context, *SearchProjectsRequest) (*SearchProjectsResponse, error)
// Request that a new project be created. The result is an `Operation` which
// can be used to track the creation process. This process usually takes a few
// seconds, but can sometimes take much longer. The tracking `Operation` is
// automatically deleted after a few hours, so there is no need to call
// `DeleteOperation`.
CreateProject(context.Context, *CreateProjectRequest) (*longrunningpb.Operation, error)
// Updates the `display_name` and labels of the project identified by the
// specified `name` (for example, `projects/415104041262`). Deleting all
// labels requires an update mask for labels field.
//
// The caller must have `resourcemanager.projects.update` permission for this
// project.
UpdateProject(context.Context, *UpdateProjectRequest) (*longrunningpb.Operation, error)
// Move a project to another place in your resource hierarchy, under a new
// resource parent.
//
// Returns an operation which can be used to track the process of the project
// move workflow.
// Upon success, the `Operation.response` field will be populated with the
// moved project.
//
// The caller must have `resourcemanager.projects.move` permission on the
// project, on the project's current and proposed new parent.
//
// If project has no current parent, or it currently does not have an
// associated organization resource, you will also need the
// `resourcemanager.projects.setIamPolicy` permission in the project.
MoveProject(context.Context, *MoveProjectRequest) (*longrunningpb.Operation, error)
// Marks the project identified by the specified
// `name` (for example, `projects/415104041262`) for deletion.
//
// This method will only affect the project if it has a lifecycle state of
// [ACTIVE][google.cloud.resourcemanager.v3.Project.State.ACTIVE].
//
// This method changes the Project's lifecycle state from
// [ACTIVE][google.cloud.resourcemanager.v3.Project.State.ACTIVE]
// to
// [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Project.State.DELETE_REQUESTED].
// The deletion starts at an unspecified time,
// at which point the Project is no longer accessible.
//
// Until the deletion completes, you can check the lifecycle state
// checked by retrieving the project with [GetProject]
// [google.cloud.resourcemanager.v3.Projects.GetProject],
// and the project remains visible to [ListProjects]
// [google.cloud.resourcemanager.v3.Projects.ListProjects].
// However, you cannot update the project.
//
// After the deletion completes, the project is not retrievable by
// the [GetProject]
// [google.cloud.resourcemanager.v3.Projects.GetProject],
// [ListProjects]
// [google.cloud.resourcemanager.v3.Projects.ListProjects], and
// [SearchProjects][google.cloud.resourcemanager.v3.Projects.SearchProjects]
// methods.
//
// This method behaves idempotently, such that deleting a `DELETE_REQUESTED`
// project will not cause an error, but also won't do anything.
//
// The caller must have `resourcemanager.projects.delete` permissions for this
// project.
DeleteProject(context.Context, *DeleteProjectRequest) (*longrunningpb.Operation, error)
// Restores the project identified by the specified
// `name` (for example, `projects/415104041262`).
// You can only use this method for a project that has a lifecycle state of
// [DELETE_REQUESTED]
// [Projects.State.DELETE_REQUESTED].
// After deletion starts, the project cannot be restored.
//
// The caller must have `resourcemanager.projects.undelete` permission for
// this project.
UndeleteProject(context.Context, *UndeleteProjectRequest) (*longrunningpb.Operation, error)
// Returns the IAM access control policy for the specified project, in the
// format `projects/{ProjectIdOrNumber}` e.g. projects/123.
// Permission is denied if the policy or the resource do not exist.
GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
// Sets the IAM access control policy for the specified project, in the
// format `projects/{ProjectIdOrNumber}` e.g. projects/123.
//
// CAUTION: This method will replace the existing policy, and cannot be used
// to append additional IAM settings.
//
// Note: Removing service accounts from policies or changing their roles can
// render services completely inoperable. It is important to understand how
// the service account is being used before removing or updating its roles.
//
// The following constraints apply when using `setIamPolicy()`:
//
// + Project does not support `allUsers` and `allAuthenticatedUsers` as
// `members` in a `Binding` of a `Policy`.
//
// + The owner role can be granted to a `user`, `serviceAccount`, or a group
// that is part of an organization. For example,
// group@myownpersonaldomain.com could be added as an owner to a project in
// the myownpersonaldomain.com organization, but not the examplepetstore.com
// organization.
//
// + Service accounts can be made owners of a project directly
// without any restrictions. However, to be added as an owner, a user must be
// invited using the Cloud Platform console and must accept the invitation.
//
// + A user cannot be granted the owner role using `setIamPolicy()`. The user
// must be granted the owner role using the Cloud Platform Console and must
// explicitly accept the invitation.
//
// + Invitations to grant the owner role cannot be sent using
// `setIamPolicy()`;
// they must be sent only using the Cloud Platform Console.
//
// + If the project is not part of an organization, there must be at least
// one owner who has accepted the Terms of Service (ToS) agreement in the
// policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner
// from the policy will fail. This restriction also applies to legacy
// projects that no longer have owners who have accepted the ToS. Edits to
// IAM policies will be rejected until the lack of a ToS-accepting owner is
// rectified. If the project is part of an organization, you can remove all
// owners, potentially making the organization inaccessible.
SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
// Returns permissions that a caller has on the specified project, in the
// format `projects/{ProjectIdOrNumber}` e.g. projects/123..
TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
}ProjectsServer is the server API for Projects service. All implementations should embed UnimplementedProjectsServer for forward compatibility
Purpose
type Purpose int32A purpose for each policy engine requiring such an integration. A single policy engine may have multiple purposes defined, however a TagKey may only specify a single purpose.
Purpose_PURPOSE_UNSPECIFIED, Purpose_GCE_FIREWALL
const (
// Unspecified purpose.
Purpose_PURPOSE_UNSPECIFIED Purpose = 0
// Purpose for Compute Engine firewalls.
// A corresponding `purpose_data` should be set for the network the tag is
// intended for. The key should be `network` and the value should be in
// either of these two formats:
//
// -
// `https://www.googleapis.com/compute/{compute_version}/projects/{project_id}/global/networks/{network_id}`
// - `{project_id}/{network_name}`
//
// Examples:
//
// -
// `https://www.googleapis.com/compute/staging_v1/projects/fail-closed-load-testing/global/networks/6992953698831725600`
// - `fail-closed-load-testing/load-testing-network`
Purpose_GCE_FIREWALL Purpose = 1
)func (Purpose) Descriptor
func (Purpose) Descriptor() protoreflect.EnumDescriptorfunc (Purpose) Enum
func (Purpose) EnumDescriptor
Deprecated: Use Purpose.Descriptor instead.
func (Purpose) Number
func (x Purpose) Number() protoreflect.EnumNumberfunc (Purpose) String
func (Purpose) Type
func (Purpose) Type() protoreflect.EnumTypeSearchFoldersRequest
type SearchFoldersRequest struct {
// Optional. The maximum number of folders to return in the response. The
// server can return fewer folders than requested. If unspecified, server
// picks an appropriate default.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A pagination token returned from a previous call to
// `SearchFolders` that indicates from where search should continue.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Search criteria used to select the folders to return.
// If no search criteria is specified then all accessible folders will be
// returned.
//
// Query expressions can be used to restrict results based upon displayName,
// state and parent, where the operators `=` (`:`) `NOT`, `AND` and `OR`
// can be used along with the suffix wildcard symbol `*`.
//
// The `displayName` field in a query expression should use escaped quotes
// for values that include whitespace to prevent unexpected behavior.
//
// ```
// | Field | Description |
// |-------------------------|----------------------------------------|
// | displayName | Filters by displayName. |
// | parent | Filters by parent (for example: folders/123). |
// | state, lifecycleState | Filters by state. |
// ```
//
// Some example queries are:
//
// * Query `displayName=Test*` returns Folder resources whose display name
// starts with "Test".
// * Query `state=ACTIVE` returns Folder resources with
// `state` set to `ACTIVE`.
// * Query `parent=folders/123` returns Folder resources that have
// `folders/123` as a parent resource.
// * Query `parent=folders/123 AND state=ACTIVE` returns active
// Folder resources that have `folders/123` as a parent resource.
// * Query `displayName=\\"Test String\\"` returns Folder resources with
// display names that include both "Test" and "String".
Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"`
// contains filtered or unexported fields
}The request message for searching folders.
func (*SearchFoldersRequest) Descriptor
func (*SearchFoldersRequest) Descriptor() ([]byte, []int)Deprecated: Use SearchFoldersRequest.ProtoReflect.Descriptor instead.
func (*SearchFoldersRequest) GetPageSize
func (x *SearchFoldersRequest) GetPageSize() int32func (*SearchFoldersRequest) GetPageToken
func (x *SearchFoldersRequest) GetPageToken() stringfunc (*SearchFoldersRequest) GetQuery
func (x *SearchFoldersRequest) GetQuery() stringfunc (*SearchFoldersRequest) ProtoMessage
func (*SearchFoldersRequest) ProtoMessage()func (*SearchFoldersRequest) ProtoReflect
func (x *SearchFoldersRequest) ProtoReflect() protoreflect.Messagefunc (*SearchFoldersRequest) Reset
func (x *SearchFoldersRequest) Reset()func (*SearchFoldersRequest) String
func (x *SearchFoldersRequest) String() stringSearchFoldersResponse
type SearchFoldersResponse struct {
// A possibly paginated folder search results.
// the specified parent resource.
Folders []*Folder `protobuf:"bytes,1,rep,name=folders,proto3" json:"folders,omitempty"`
// A pagination token returned from a previous call to `SearchFolders`
// that indicates from where searching should continue.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response message for searching folders.
func (*SearchFoldersResponse) Descriptor
func (*SearchFoldersResponse) Descriptor() ([]byte, []int)Deprecated: Use SearchFoldersResponse.ProtoReflect.Descriptor instead.
func (*SearchFoldersResponse) GetFolders
func (x *SearchFoldersResponse) GetFolders() []*Folderfunc (*SearchFoldersResponse) GetNextPageToken
func (x *SearchFoldersResponse) GetNextPageToken() stringfunc (*SearchFoldersResponse) ProtoMessage
func (*SearchFoldersResponse) ProtoMessage()func (*SearchFoldersResponse) ProtoReflect
func (x *SearchFoldersResponse) ProtoReflect() protoreflect.Messagefunc (*SearchFoldersResponse) Reset
func (x *SearchFoldersResponse) Reset()func (*SearchFoldersResponse) String
func (x *SearchFoldersResponse) String() stringSearchOrganizationsRequest
type SearchOrganizationsRequest struct {
// Optional. The maximum number of organizations to return in the response.
// The server can return fewer organizations than requested. If unspecified,
// server picks an appropriate default.
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A pagination token returned from a previous call to
// `SearchOrganizations` that indicates from where listing should continue.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. An optional query string used to filter the Organizations to
// return in the response. Query rules are case-insensitive.
//
// ```
// | Field | Description |
// |------------------|--------------------------------------------|
// | directoryCustomerId, owner.directoryCustomerId | Filters by directory
// customer id. |
// | domain | Filters by domain. |
// ```
//
// Organizations may be queried by `directoryCustomerId` or by
// `domain`, where the domain is a G Suite domain, for example:
//
// * Query `directorycustomerid:123456789` returns Organization
// resources with `owner.directory_customer_id` equal to `123456789`.
// * Query `domain:google.com` returns Organization resources corresponding
// to the domain `google.com`.
Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"`
// contains filtered or unexported fields
}The request sent to the SearchOrganizations method.
func (*SearchOrganizationsRequest) Descriptor
func (*SearchOrganizationsRequest) Descriptor() ([]byte, []int)Deprecated: Use SearchOrganizationsRequest.ProtoReflect.Descriptor instead.
func (*SearchOrganizationsRequest) GetPageSize
func (x *SearchOrganizationsRequest) GetPageSize() int32func (*SearchOrganizationsRequest) GetPageToken
func (x *SearchOrganizationsRequest) GetPageToken() stringfunc (*SearchOrganizationsRequest) GetQuery
func (x *SearchOrganizationsRequest) GetQuery() stringfunc (*SearchOrganizationsRequest) ProtoMessage
func (*SearchOrganizationsRequest) ProtoMessage()func (*SearchOrganizationsRequest) ProtoReflect
func (x *SearchOrganizationsRequest) ProtoReflect() protoreflect.Messagefunc (*SearchOrganizationsRequest) Reset
func (x *SearchOrganizationsRequest) Reset()func (*SearchOrganizationsRequest) String
func (x *SearchOrganizationsRequest) String() stringSearchOrganizationsResponse
type SearchOrganizationsResponse struct {
// The list of Organizations that matched the search query, possibly
// paginated.
Organizations []*Organization `protobuf:"bytes,1,rep,name=organizations,proto3" json:"organizations,omitempty"`
// A pagination token to be used to retrieve the next page of results. If the
// result is too large to fit within the page size specified in the request,
// this field will be set with a token that can be used to fetch the next page
// of results. If this field is empty, it indicates that this response
// contains the last page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response returned from the SearchOrganizations method.
func (*SearchOrganizationsResponse) Descriptor
func (*SearchOrganizationsResponse) Descriptor() ([]byte, []int)Deprecated: Use SearchOrganizationsResponse.ProtoReflect.Descriptor instead.
func (*SearchOrganizationsResponse) GetNextPageToken
func (x *SearchOrganizationsResponse) GetNextPageToken() stringfunc (*SearchOrganizationsResponse) GetOrganizations
func (x *SearchOrganizationsResponse) GetOrganizations() []*Organizationfunc (*SearchOrganizationsResponse) ProtoMessage
func (*SearchOrganizationsResponse) ProtoMessage()func (*SearchOrganizationsResponse) ProtoReflect
func (x *SearchOrganizationsResponse) ProtoReflect() protoreflect.Messagefunc (*SearchOrganizationsResponse) Reset
func (x *SearchOrganizationsResponse) Reset()func (*SearchOrganizationsResponse) String
func (x *SearchOrganizationsResponse) String() stringSearchProjectsRequest
type SearchProjectsRequest struct {
// Optional. A query string for searching for projects that the caller has
// `resourcemanager.projects.get` permission to. If multiple fields are
// included in the query, then it will return results that match any of the
// fields. Some eligible fields are:
//
// - **`displayName`, `name`**: Filters by displayName.
// - **`parent`**: Project's parent (for example: `folders/123`,
// `organizations/*`). Prefer `parent` field over `parent.type` and
// `parent.id`.
// - **`parent.type`**: Parent's type: `folder` or `organization`.
// - **`parent.id`**: Parent's id number (for example: `123`).
// - **`id`, `projectId`**: Filters by projectId.
// - **`state`, `lifecycleState`**: Filters by state.
// - **`labels`**: Filters by label name or value.
// - **`labels.The request sent to the [SearchProjects][google.cloud.resourcemanager.v3.Projects.SearchProjects] method.
func (*SearchProjectsRequest) Descriptor
func (*SearchProjectsRequest) Descriptor() ([]byte, []int)Deprecated: Use SearchProjectsRequest.ProtoReflect.Descriptor instead.
func (*SearchProjectsRequest) GetPageSize
func (x *SearchProjectsRequest) GetPageSize() int32func (*SearchProjectsRequest) GetPageToken
func (x *SearchProjectsRequest) GetPageToken() stringfunc (*SearchProjectsRequest) GetQuery
func (x *SearchProjectsRequest) GetQuery() stringfunc (*SearchProjectsRequest) ProtoMessage
func (*SearchProjectsRequest) ProtoMessage()func (*SearchProjectsRequest) ProtoReflect
func (x *SearchProjectsRequest) ProtoReflect() protoreflect.Messagefunc (*SearchProjectsRequest) Reset
func (x *SearchProjectsRequest) Reset()func (*SearchProjectsRequest) String
func (x *SearchProjectsRequest) String() stringSearchProjectsResponse
type SearchProjectsResponse struct {
// The list of Projects that matched the list filter query. This list can
// be paginated.
Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
// Pagination token.
//
// If the result set is too large to fit in a single response, this token
// is returned. It encodes the position of the current result cursor.
// Feeding this value into a new list request with the `page_token` parameter
// gives the next page of the results.
//
// When `next_page_token` is not filled in, there is no next page and
// the list returned is the last page in the result set.
//
// Pagination tokens have a limited lifetime.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}A page of the response received from the [SearchProjects][google.cloud.resourcemanager.v3.Projects.SearchProjects] method.
A paginated response where more pages are available has
next_page_token set. This token can be used in a subsequent request to
retrieve the next request page.
func (*SearchProjectsResponse) Descriptor
func (*SearchProjectsResponse) Descriptor() ([]byte, []int)Deprecated: Use SearchProjectsResponse.ProtoReflect.Descriptor instead.
func (*SearchProjectsResponse) GetNextPageToken
func (x *SearchProjectsResponse) GetNextPageToken() stringfunc (*SearchProjectsResponse) GetProjects
func (x *SearchProjectsResponse) GetProjects() []*Projectfunc (*SearchProjectsResponse) ProtoMessage
func (*SearchProjectsResponse) ProtoMessage()func (*SearchProjectsResponse) ProtoReflect
func (x *SearchProjectsResponse) ProtoReflect() protoreflect.Messagefunc (*SearchProjectsResponse) Reset
func (x *SearchProjectsResponse) Reset()func (*SearchProjectsResponse) String
func (x *SearchProjectsResponse) String() stringTagBinding
type TagBinding struct {
// Output only. The name of the TagBinding. This is a String of the form:
// `tagBindings/{full-resource-name}/{tag-value-name}` (e.g.
// `tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The full resource name of the resource the TagValue is bound to.
// E.g. `//cloudresourcemanager.googleapis.com/projects/123`
Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
// The TagValue of the TagBinding.
// Must be of the form `tagValues/456`.
TagValue string `protobuf:"bytes,3,opt,name=tag_value,json=tagValue,proto3" json:"tag_value,omitempty"`
// The namespaced name for the TagValue of the TagBinding.
// Must be in the format
// `{parent_id}/{tag_key_short_name}/{short_name}`.
//
// For methods that support TagValue namespaced name, only one of
// tag_value_namespaced_name or tag_value may be filled. Requests with both
// fields will be rejected.
TagValueNamespacedName string `protobuf:"bytes,4,opt,name=tag_value_namespaced_name,json=tagValueNamespacedName,proto3" json:"tag_value_namespaced_name,omitempty"`
// contains filtered or unexported fields
}A TagBinding represents a connection between a TagValue and a cloud resource Once a TagBinding is created, the TagValue is applied to all the descendants of the Google Cloud resource.
func (*TagBinding) Descriptor
func (*TagBinding) Descriptor() ([]byte, []int)Deprecated: Use TagBinding.ProtoReflect.Descriptor instead.
func (*TagBinding) GetName
func (x *TagBinding) GetName() stringfunc (*TagBinding) GetParent
func (x *TagBinding) GetParent() stringfunc (*TagBinding) GetTagValue
func (x *TagBinding) GetTagValue() stringfunc (*TagBinding) GetTagValueNamespacedName
func (x *TagBinding) GetTagValueNamespacedName() stringfunc (*TagBinding) ProtoMessage
func (*TagBinding) ProtoMessage()func (*TagBinding) ProtoReflect
func (x *TagBinding) ProtoReflect() protoreflect.Messagefunc (*TagBinding) Reset
func (x *TagBinding) Reset()func (*TagBinding) String
func (x *TagBinding) String() stringTagBindingsClient
type TagBindingsClient interface {
// Lists the TagBindings for the given Google Cloud resource, as specified
// with `parent`.
//
// NOTE: The `parent` field is expected to be a full resource name:
// https://cloud.google.com/apis/design/resource_names#full_resource_name
ListTagBindings(ctx context.Context, in *ListTagBindingsRequest, opts ...grpc.CallOption) (*ListTagBindingsResponse, error)
// Creates a TagBinding between a TagValue and a Google Cloud resource.
CreateTagBinding(ctx context.Context, in *CreateTagBindingRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a TagBinding.
DeleteTagBinding(ctx context.Context, in *DeleteTagBindingRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Return a list of effective tags for the given Google Cloud resource, as
// specified in `parent`.
ListEffectiveTags(ctx context.Context, in *ListEffectiveTagsRequest, opts ...grpc.CallOption) (*ListEffectiveTagsResponse, error)
}TagBindingsClient is the client API for TagBindings service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTagBindingsClient
func NewTagBindingsClient(cc grpc.ClientConnInterface) TagBindingsClientTagBindingsServer
type TagBindingsServer interface {
// Lists the TagBindings for the given Google Cloud resource, as specified
// with `parent`.
//
// NOTE: The `parent` field is expected to be a full resource name:
// https://cloud.google.com/apis/design/resource_names#full_resource_name
ListTagBindings(context.Context, *ListTagBindingsRequest) (*ListTagBindingsResponse, error)
// Creates a TagBinding between a TagValue and a Google Cloud resource.
CreateTagBinding(context.Context, *CreateTagBindingRequest) (*longrunningpb.Operation, error)
// Deletes a TagBinding.
DeleteTagBinding(context.Context, *DeleteTagBindingRequest) (*longrunningpb.Operation, error)
// Return a list of effective tags for the given Google Cloud resource, as
// specified in `parent`.
ListEffectiveTags(context.Context, *ListEffectiveTagsRequest) (*ListEffectiveTagsResponse, error)
}TagBindingsServer is the server API for TagBindings service. All implementations should embed UnimplementedTagBindingsServer for forward compatibility
TagHold
type TagHold struct {
// Output only. The resource name of a TagHold. This is a String of the form:
// `tagValues/{tag-value-id}/tagHolds/{tag-hold-id}`
// (e.g. `tagValues/123/tagHolds/456`). This resource name is generated by
// the server.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The name of the resource where the TagValue is being used. Must
// be less than 200 characters. E.g.
// `//compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group`
Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"`
// Optional. An optional string representing the origin of this request. This
// field should include human-understandable information to distinguish
// origins from each other. Must be less than 200 characters. E.g.
// `migs-35678234`
Origin string `protobuf:"bytes,3,opt,name=origin,proto3" json:"origin,omitempty"`
// Optional. A URL where an end user can learn more about removing this hold.
// E.g.
// `https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing`
HelpLink string `protobuf:"bytes,4,opt,name=help_link,json=helpLink,proto3" json:"help_link,omitempty"`
// Output only. The time this TagHold was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// contains filtered or unexported fields
}A TagHold represents the use of a TagValue that is not captured by
TagBindings. If a TagValue has any TagHolds, deletion will be blocked.
This resource is intended to be created in the same cloud location as the
holder.
func (*TagHold) Descriptor
Deprecated: Use TagHold.ProtoReflect.Descriptor instead.
func (*TagHold) GetCreateTime
func (x *TagHold) GetCreateTime() *timestamppb.Timestampfunc (*TagHold) GetHelpLink
func (*TagHold) GetHolder
func (*TagHold) GetName
func (*TagHold) GetOrigin
func (*TagHold) ProtoMessage
func (*TagHold) ProtoMessage()func (*TagHold) ProtoReflect
func (x *TagHold) ProtoReflect() protoreflect.Messagefunc (*TagHold) Reset
func (x *TagHold) Reset()func (*TagHold) String
TagHoldsClient
type TagHoldsClient interface {
// Creates a TagHold. Returns ALREADY_EXISTS if a TagHold with the same
// resource and origin exists under the same TagValue.
CreateTagHold(ctx context.Context, in *CreateTagHoldRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a TagHold.
DeleteTagHold(ctx context.Context, in *DeleteTagHoldRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists TagHolds under a TagValue.
ListTagHolds(ctx context.Context, in *ListTagHoldsRequest, opts ...grpc.CallOption) (*ListTagHoldsResponse, error)
}TagHoldsClient is the client API for TagHolds service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTagHoldsClient
func NewTagHoldsClient(cc grpc.ClientConnInterface) TagHoldsClientTagHoldsServer
type TagHoldsServer interface {
// Creates a TagHold. Returns ALREADY_EXISTS if a TagHold with the same
// resource and origin exists under the same TagValue.
CreateTagHold(context.Context, *CreateTagHoldRequest) (*longrunningpb.Operation, error)
// Deletes a TagHold.
DeleteTagHold(context.Context, *DeleteTagHoldRequest) (*longrunningpb.Operation, error)
// Lists TagHolds under a TagValue.
ListTagHolds(context.Context, *ListTagHoldsRequest) (*ListTagHoldsResponse, error)
}TagHoldsServer is the server API for TagHolds service. All implementations should embed UnimplementedTagHoldsServer for forward compatibility
TagKey
type TagKey struct {
// Immutable. The resource name for a TagKey. Must be in the format
// `tagKeys/{tag_key_id}`, where `tag_key_id` is the generated numeric id for
// the TagKey.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Immutable. The resource name of the TagKey's parent. A TagKey can be
// parented by an Organization or a Project. For a TagKey parented by an
// Organization, its parent must be in the form `organizations/{org_id}`. For
// a TagKey parented by a Project, its parent can be in the form
// `projects/{project_id}` or `projects/{project_number}`.
Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Immutable. The user friendly name for a TagKey. The short name
// should be unique for TagKeys within the same tag namespace.
//
// The short name must be 1-63 characters, beginning and ending with
// an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_),
// dots (.), and alphanumerics between.
ShortName string `protobuf:"bytes,3,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"`
// Output only. Immutable. Namespaced name of the TagKey.
NamespacedName string `protobuf:"bytes,4,opt,name=namespaced_name,json=namespacedName,proto3" json:"namespaced_name,omitempty"`
// Optional. User-assigned description of the TagKey. Must not exceed 256
// characters.
//
// Read-write.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// Output only. Creation time.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Update time.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. Entity tag which users can pass to prevent race conditions. This
// field is always set in server responses. See UpdateTagKeyRequest for
// details.
Etag string `protobuf:"bytes,8,opt,name=etag,proto3" json:"etag,omitempty"`
// Optional. A purpose denotes that this Tag is intended for use in policies
// of a specific policy engine, and will involve that policy engine in
// management operations involving this Tag. A purpose does not grant a
// policy engine exclusive rights to the Tag, and it may be referenced by
// other policy engines.
//
// A purpose cannot be changed once set.
Purpose Purpose `protobuf:"varint,11,opt,name=purpose,proto3,enum=google.cloud.resourcemanager.v3.Purpose" json:"purpose,omitempty"`
// Optional. Purpose data corresponds to the policy system that the tag is
// intended for. See documentation for `Purpose` for formatting of this field.
//
// Purpose data cannot be changed once set.
PurposeData map[string]string `protobuf:"bytes,12,rep,name=purpose_data,json=purposeData,proto3" json:"purpose_data,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// contains filtered or unexported fields
}A TagKey, used to group a set of TagValues.
func (*TagKey) Descriptor
Deprecated: Use TagKey.ProtoReflect.Descriptor instead.
func (*TagKey) GetCreateTime
func (x *TagKey) GetCreateTime() *timestamppb.Timestampfunc (*TagKey) GetDescription
func (*TagKey) GetEtag
func (*TagKey) GetName
func (*TagKey) GetNamespacedName
func (*TagKey) GetParent
func (*TagKey) GetPurpose
func (*TagKey) GetPurposeData
func (*TagKey) GetShortName
func (*TagKey) GetUpdateTime
func (x *TagKey) GetUpdateTime() *timestamppb.Timestampfunc (*TagKey) ProtoMessage
func (*TagKey) ProtoMessage()func (*TagKey) ProtoReflect
func (x *TagKey) ProtoReflect() protoreflect.Messagefunc (*TagKey) Reset
func (x *TagKey) Reset()func (*TagKey) String
TagKeysClient
type TagKeysClient interface {
// Lists all TagKeys for a parent resource.
ListTagKeys(ctx context.Context, in *ListTagKeysRequest, opts ...grpc.CallOption) (*ListTagKeysResponse, error)
// Retrieves a TagKey. This method will return `PERMISSION_DENIED` if the
// key does not exist or the user does not have permission to view it.
GetTagKey(ctx context.Context, in *GetTagKeyRequest, opts ...grpc.CallOption) (*TagKey, error)
// Retrieves a TagKey by its namespaced name.
// This method will return `PERMISSION_DENIED` if the key does not exist
// or the user does not have permission to view it.
GetNamespacedTagKey(ctx context.Context, in *GetNamespacedTagKeyRequest, opts ...grpc.CallOption) (*TagKey, error)
// Creates a new TagKey. If another request with the same parameters is
// sent while the original request is in process, the second request
// will receive an error. A maximum of 1000 TagKeys can exist under a parent
// at any given time.
CreateTagKey(ctx context.Context, in *CreateTagKeyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates the attributes of the TagKey resource.
UpdateTagKey(ctx context.Context, in *UpdateTagKeyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a TagKey. The TagKey cannot be deleted if it has any child
// TagValues.
DeleteTagKey(ctx context.Context, in *DeleteTagKeyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Gets the access control policy for a TagKey. The returned policy may be
// empty if no such policy or resource exists. The `resource` field should
// be the TagKey's resource name. For example, "tagKeys/1234".
// The caller must have
// `cloudresourcemanager.googleapis.com/tagKeys.getIamPolicy` permission on
// the specified TagKey.
GetIamPolicy(ctx context.Context, in *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
// Sets the access control policy on a TagKey, replacing any existing
// policy. The `resource` field should be the TagKey's resource name.
// For example, "tagKeys/1234".
// The caller must have `resourcemanager.tagKeys.setIamPolicy` permission
// on the identified tagValue.
SetIamPolicy(ctx context.Context, in *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
// Returns permissions that a caller has on the specified TagKey.
// The `resource` field should be the TagKey's resource name.
// For example, "tagKeys/1234".
//
// There are no permissions required for making this API call.
TestIamPermissions(ctx context.Context, in *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.TestIamPermissionsResponse, error)
}TagKeysClient is the client API for TagKeys service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTagKeysClient
func NewTagKeysClient(cc grpc.ClientConnInterface) TagKeysClientTagKeysServer
type TagKeysServer interface {
// Lists all TagKeys for a parent resource.
ListTagKeys(context.Context, *ListTagKeysRequest) (*ListTagKeysResponse, error)
// Retrieves a TagKey. This method will return `PERMISSION_DENIED` if the
// key does not exist or the user does not have permission to view it.
GetTagKey(context.Context, *GetTagKeyRequest) (*TagKey, error)
// Retrieves a TagKey by its namespaced name.
// This method will return `PERMISSION_DENIED` if the key does not exist
// or the user does not have permission to view it.
GetNamespacedTagKey(context.Context, *GetNamespacedTagKeyRequest) (*TagKey, error)
// Creates a new TagKey. If another request with the same parameters is
// sent while the original request is in process, the second request
// will receive an error. A maximum of 1000 TagKeys can exist under a parent
// at any given time.
CreateTagKey(context.Context, *CreateTagKeyRequest) (*longrunningpb.Operation, error)
// Updates the attributes of the TagKey resource.
UpdateTagKey(context.Context, *UpdateTagKeyRequest) (*longrunningpb.Operation, error)
// Deletes a TagKey. The TagKey cannot be deleted if it has any child
// TagValues.
DeleteTagKey(context.Context, *DeleteTagKeyRequest) (*longrunningpb.Operation, error)
// Gets the access control policy for a TagKey. The returned policy may be
// empty if no such policy or resource exists. The `resource` field should
// be the TagKey's resource name. For example, "tagKeys/1234".
// The caller must have
// `cloudresourcemanager.googleapis.com/tagKeys.getIamPolicy` permission on
// the specified TagKey.
GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
// Sets the access control policy on a TagKey, replacing any existing
// policy. The `resource` field should be the TagKey's resource name.
// For example, "tagKeys/1234".
// The caller must have `resourcemanager.tagKeys.setIamPolicy` permission
// on the identified tagValue.
SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
// Returns permissions that a caller has on the specified TagKey.
// The `resource` field should be the TagKey's resource name.
// For example, "tagKeys/1234".
//
// There are no permissions required for making this API call.
TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
}TagKeysServer is the server API for TagKeys service. All implementations should embed UnimplementedTagKeysServer for forward compatibility
TagValue
type TagValue struct {
// Immutable. Resource name for TagValue in the format `tagValues/456`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Immutable. The resource name of the new TagValue's parent TagKey.
// Must be of the form `tagKeys/{tag_key_id}`.
Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Immutable. User-assigned short name for TagValue. The short name
// should be unique for TagValues within the same parent TagKey.
//
// The short name must be 63 characters or less, beginning and ending with
// an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_),
// dots (.), and alphanumerics between.
ShortName string `protobuf:"bytes,3,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"`
// Output only. The namespaced name of the TagValue. Can be in the form
// `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
// `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
// `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
NamespacedName string `protobuf:"bytes,4,opt,name=namespaced_name,json=namespacedName,proto3" json:"namespaced_name,omitempty"`
// Optional. User-assigned description of the TagValue.
// Must not exceed 256 characters.
//
// Read-write.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// Output only. Creation time.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Update time.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. Entity tag which users can pass to prevent race conditions. This
// field is always set in server responses. See UpdateTagValueRequest for
// details.
Etag string `protobuf:"bytes,8,opt,name=etag,proto3" json:"etag,omitempty"`
// contains filtered or unexported fields
}A TagValue is a child of a particular TagKey. This is used to group cloud resources for the purpose of controlling them using policies.
func (*TagValue) Descriptor
Deprecated: Use TagValue.ProtoReflect.Descriptor instead.
func (*TagValue) GetCreateTime
func (x *TagValue) GetCreateTime() *timestamppb.Timestampfunc (*TagValue) GetDescription
func (*TagValue) GetEtag
func (*TagValue) GetName
func (*TagValue) GetNamespacedName
func (*TagValue) GetParent
func (*TagValue) GetShortName
func (*TagValue) GetUpdateTime
func (x *TagValue) GetUpdateTime() *timestamppb.Timestampfunc (*TagValue) ProtoMessage
func (*TagValue) ProtoMessage()func (*TagValue) ProtoReflect
func (x *TagValue) ProtoReflect() protoreflect.Messagefunc (*TagValue) Reset
func (x *TagValue) Reset()func (*TagValue) String
TagValuesClient
type TagValuesClient interface {
// Lists all TagValues for a specific TagKey.
ListTagValues(ctx context.Context, in *ListTagValuesRequest, opts ...grpc.CallOption) (*ListTagValuesResponse, error)
// Retrieves a TagValue. This method will return `PERMISSION_DENIED` if the
// value does not exist or the user does not have permission to view it.
GetTagValue(ctx context.Context, in *GetTagValueRequest, opts ...grpc.CallOption) (*TagValue, error)
// Retrieves a TagValue by its namespaced name.
// This method will return `PERMISSION_DENIED` if the value does not exist
// or the user does not have permission to view it.
GetNamespacedTagValue(ctx context.Context, in *GetNamespacedTagValueRequest, opts ...grpc.CallOption) (*TagValue, error)
// Creates a TagValue as a child of the specified TagKey. If a another
// request with the same parameters is sent while the original request is in
// process the second request will receive an error. A maximum of 1000
// TagValues can exist under a TagKey at any given time.
CreateTagValue(ctx context.Context, in *CreateTagValueRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates the attributes of the TagValue resource.
UpdateTagValue(ctx context.Context, in *UpdateTagValueRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a TagValue. The TagValue cannot have any bindings when it is
// deleted.
DeleteTagValue(ctx context.Context, in *DeleteTagValueRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Gets the access control policy for a TagValue. The returned policy may be
// empty if no such policy or resource exists. The `resource` field should
// be the TagValue's resource name. For example: `tagValues/1234`.
// The caller must have the
// `cloudresourcemanager.googleapis.com/tagValues.getIamPolicy` permission on
// the identified TagValue to get the access control policy.
GetIamPolicy(ctx context.Context, in *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
// Sets the access control policy on a TagValue, replacing any existing
// policy. The `resource` field should be the TagValue's resource name.
// For example: `tagValues/1234`.
// The caller must have `resourcemanager.tagValues.setIamPolicy` permission
// on the identified tagValue.
SetIamPolicy(ctx context.Context, in *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
// Returns permissions that a caller has on the specified TagValue.
// The `resource` field should be the TagValue's resource name. For example:
// `tagValues/1234`.
//
// There are no permissions required for making this API call.
TestIamPermissions(ctx context.Context, in *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.TestIamPermissionsResponse, error)
}TagValuesClient is the client API for TagValues service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTagValuesClient
func NewTagValuesClient(cc grpc.ClientConnInterface) TagValuesClientTagValuesServer
type TagValuesServer interface {
// Lists all TagValues for a specific TagKey.
ListTagValues(context.Context, *ListTagValuesRequest) (*ListTagValuesResponse, error)
// Retrieves a TagValue. This method will return `PERMISSION_DENIED` if the
// value does not exist or the user does not have permission to view it.
GetTagValue(context.Context, *GetTagValueRequest) (*TagValue, error)
// Retrieves a TagValue by its namespaced name.
// This method will return `PERMISSION_DENIED` if the value does not exist
// or the user does not have permission to view it.
GetNamespacedTagValue(context.Context, *GetNamespacedTagValueRequest) (*TagValue, error)
// Creates a TagValue as a child of the specified TagKey. If a another
// request with the same parameters is sent while the original request is in
// process the second request will receive an error. A maximum of 1000
// TagValues can exist under a TagKey at any given time.
CreateTagValue(context.Context, *CreateTagValueRequest) (*longrunningpb.Operation, error)
// Updates the attributes of the TagValue resource.
UpdateTagValue(context.Context, *UpdateTagValueRequest) (*longrunningpb.Operation, error)
// Deletes a TagValue. The TagValue cannot have any bindings when it is
// deleted.
DeleteTagValue(context.Context, *DeleteTagValueRequest) (*longrunningpb.Operation, error)
// Gets the access control policy for a TagValue. The returned policy may be
// empty if no such policy or resource exists. The `resource` field should
// be the TagValue's resource name. For example: `tagValues/1234`.
// The caller must have the
// `cloudresourcemanager.googleapis.com/tagValues.getIamPolicy` permission on
// the identified TagValue to get the access control policy.
GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
// Sets the access control policy on a TagValue, replacing any existing
// policy. The `resource` field should be the TagValue's resource name.
// For example: `tagValues/1234`.
// The caller must have `resourcemanager.tagValues.setIamPolicy` permission
// on the identified tagValue.
SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
// Returns permissions that a caller has on the specified TagValue.
// The `resource` field should be the TagValue's resource name. For example:
// `tagValues/1234`.
//
// There are no permissions required for making this API call.
TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
}TagValuesServer is the server API for TagValues service. All implementations should embed UnimplementedTagValuesServer for forward compatibility
UndeleteFolderMetadata
type UndeleteFolderMetadata struct {
// contains filtered or unexported fields
}A status object which is used as the metadata field for the Operation
returned by UndeleteFolder.
func (*UndeleteFolderMetadata) Descriptor
func (*UndeleteFolderMetadata) Descriptor() ([]byte, []int)Deprecated: Use UndeleteFolderMetadata.ProtoReflect.Descriptor instead.
func (*UndeleteFolderMetadata) ProtoMessage
func (*UndeleteFolderMetadata) ProtoMessage()func (*UndeleteFolderMetadata) ProtoReflect
func (x *UndeleteFolderMetadata) ProtoReflect() protoreflect.Messagefunc (*UndeleteFolderMetadata) Reset
func (x *UndeleteFolderMetadata) Reset()func (*UndeleteFolderMetadata) String
func (x *UndeleteFolderMetadata) String() stringUndeleteFolderRequest
type UndeleteFolderRequest struct {
// Required. The resource name of the folder to undelete.
// Must be of the form `folders/{folder_id}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The UndeleteFolder request message.
func (*UndeleteFolderRequest) Descriptor
func (*UndeleteFolderRequest) Descriptor() ([]byte, []int)Deprecated: Use UndeleteFolderRequest.ProtoReflect.Descriptor instead.
func (*UndeleteFolderRequest) GetName
func (x *UndeleteFolderRequest) GetName() stringfunc (*UndeleteFolderRequest) ProtoMessage
func (*UndeleteFolderRequest) ProtoMessage()func (*UndeleteFolderRequest) ProtoReflect
func (x *UndeleteFolderRequest) ProtoReflect() protoreflect.Messagefunc (*UndeleteFolderRequest) Reset
func (x *UndeleteFolderRequest) Reset()func (*UndeleteFolderRequest) String
func (x *UndeleteFolderRequest) String() stringUndeleteOrganizationMetadata
type UndeleteOrganizationMetadata struct {
// contains filtered or unexported fields
}A status object which is used as the metadata field for the Operation
returned by UndeleteOrganization.
func (*UndeleteOrganizationMetadata) Descriptor
func (*UndeleteOrganizationMetadata) Descriptor() ([]byte, []int)Deprecated: Use UndeleteOrganizationMetadata.ProtoReflect.Descriptor instead.
func (*UndeleteOrganizationMetadata) ProtoMessage
func (*UndeleteOrganizationMetadata) ProtoMessage()func (*UndeleteOrganizationMetadata) ProtoReflect
func (x *UndeleteOrganizationMetadata) ProtoReflect() protoreflect.Messagefunc (*UndeleteOrganizationMetadata) Reset
func (x *UndeleteOrganizationMetadata) Reset()func (*UndeleteOrganizationMetadata) String
func (x *UndeleteOrganizationMetadata) String() stringUndeleteProjectMetadata
type UndeleteProjectMetadata struct {
// contains filtered or unexported fields
}A status object which is used as the metadata field for the Operation
returned by UndeleteProject.
func (*UndeleteProjectMetadata) Descriptor
func (*UndeleteProjectMetadata) Descriptor() ([]byte, []int)Deprecated: Use UndeleteProjectMetadata.ProtoReflect.Descriptor instead.
func (*UndeleteProjectMetadata) ProtoMessage
func (*UndeleteProjectMetadata) ProtoMessage()func (*UndeleteProjectMetadata) ProtoReflect
func (x *UndeleteProjectMetadata) ProtoReflect() protoreflect.Messagefunc (*UndeleteProjectMetadata) Reset
func (x *UndeleteProjectMetadata) Reset()func (*UndeleteProjectMetadata) String
func (x *UndeleteProjectMetadata) String() stringUndeleteProjectRequest
type UndeleteProjectRequest struct {
// Required. The name of the project (for example, `projects/415104041262`).
//
// Required.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request sent to the [UndeleteProject] [google.cloud.resourcemanager.v3.Projects.UndeleteProject] method.
func (*UndeleteProjectRequest) Descriptor
func (*UndeleteProjectRequest) Descriptor() ([]byte, []int)Deprecated: Use UndeleteProjectRequest.ProtoReflect.Descriptor instead.
func (*UndeleteProjectRequest) GetName
func (x *UndeleteProjectRequest) GetName() stringfunc (*UndeleteProjectRequest) ProtoMessage
func (*UndeleteProjectRequest) ProtoMessage()func (*UndeleteProjectRequest) ProtoReflect
func (x *UndeleteProjectRequest) ProtoReflect() protoreflect.Messagefunc (*UndeleteProjectRequest) Reset
func (x *UndeleteProjectRequest) Reset()func (*UndeleteProjectRequest) String
func (x *UndeleteProjectRequest) String() stringUnimplementedFoldersServer
type UnimplementedFoldersServer struct {
}UnimplementedFoldersServer should be embedded to have forward compatible implementations.
func (UnimplementedFoldersServer) CreateFolder
func (UnimplementedFoldersServer) CreateFolder(context.Context, *CreateFolderRequest) (*longrunningpb.Operation, error)func (UnimplementedFoldersServer) DeleteFolder
func (UnimplementedFoldersServer) DeleteFolder(context.Context, *DeleteFolderRequest) (*longrunningpb.Operation, error)func (UnimplementedFoldersServer) GetFolder
func (UnimplementedFoldersServer) GetFolder(context.Context, *GetFolderRequest) (*Folder, error)func (UnimplementedFoldersServer) GetIamPolicy
func (UnimplementedFoldersServer) GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)func (UnimplementedFoldersServer) ListFolders
func (UnimplementedFoldersServer) ListFolders(context.Context, *ListFoldersRequest) (*ListFoldersResponse, error)func (UnimplementedFoldersServer) MoveFolder
func (UnimplementedFoldersServer) MoveFolder(context.Context, *MoveFolderRequest) (*longrunningpb.Operation, error)func (UnimplementedFoldersServer) SearchFolders
func (UnimplementedFoldersServer) SearchFolders(context.Context, *SearchFoldersRequest) (*SearchFoldersResponse, error)func (UnimplementedFoldersServer) SetIamPolicy
func (UnimplementedFoldersServer) SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)func (UnimplementedFoldersServer) TestIamPermissions
func (UnimplementedFoldersServer) TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)func (UnimplementedFoldersServer) UndeleteFolder
func (UnimplementedFoldersServer) UndeleteFolder(context.Context, *UndeleteFolderRequest) (*longrunningpb.Operation, error)func (UnimplementedFoldersServer) UpdateFolder
func (UnimplementedFoldersServer) UpdateFolder(context.Context, *UpdateFolderRequest) (*longrunningpb.Operation, error)UnimplementedOrganizationsServer
type UnimplementedOrganizationsServer struct {
}UnimplementedOrganizationsServer should be embedded to have forward compatible implementations.
func (UnimplementedOrganizationsServer) GetIamPolicy
func (UnimplementedOrganizationsServer) GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)func (UnimplementedOrganizationsServer) GetOrganization
func (UnimplementedOrganizationsServer) GetOrganization(context.Context, *GetOrganizationRequest) (*Organization, error)func (UnimplementedOrganizationsServer) SearchOrganizations
func (UnimplementedOrganizationsServer) SearchOrganizations(context.Context, *SearchOrganizationsRequest) (*SearchOrganizationsResponse, error)func (UnimplementedOrganizationsServer) SetIamPolicy
func (UnimplementedOrganizationsServer) SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)func (UnimplementedOrganizationsServer) TestIamPermissions
func (UnimplementedOrganizationsServer) TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)UnimplementedProjectsServer
type UnimplementedProjectsServer struct {
}UnimplementedProjectsServer should be embedded to have forward compatible implementations.
func (UnimplementedProjectsServer) CreateProject
func (UnimplementedProjectsServer) CreateProject(context.Context, *CreateProjectRequest) (*longrunningpb.Operation, error)func (UnimplementedProjectsServer) DeleteProject
func (UnimplementedProjectsServer) DeleteProject(context.Context, *DeleteProjectRequest) (*longrunningpb.Operation, error)func (UnimplementedProjectsServer) GetIamPolicy
func (UnimplementedProjectsServer) GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)func (UnimplementedProjectsServer) GetProject
func (UnimplementedProjectsServer) GetProject(context.Context, *GetProjectRequest) (*Project, error)func (UnimplementedProjectsServer) ListProjects
func (UnimplementedProjectsServer) ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error)func (UnimplementedProjectsServer) MoveProject
func (UnimplementedProjectsServer) MoveProject(context.Context, *MoveProjectRequest) (*longrunningpb.Operation, error)func (UnimplementedProjectsServer) SearchProjects
func (UnimplementedProjectsServer) SearchProjects(context.Context, *SearchProjectsRequest) (*SearchProjectsResponse, error)func (UnimplementedProjectsServer) SetIamPolicy
func (UnimplementedProjectsServer) SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)func (UnimplementedProjectsServer) TestIamPermissions
func (UnimplementedProjectsServer) TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)func (UnimplementedProjectsServer) UndeleteProject
func (UnimplementedProjectsServer) UndeleteProject(context.Context, *UndeleteProjectRequest) (*longrunningpb.Operation, error)func (UnimplementedProjectsServer) UpdateProject
func (UnimplementedProjectsServer) UpdateProject(context.Context, *UpdateProjectRequest) (*longrunningpb.Operation, error)UnimplementedTagBindingsServer
type UnimplementedTagBindingsServer struct {
}UnimplementedTagBindingsServer should be embedded to have forward compatible implementations.
func (UnimplementedTagBindingsServer) CreateTagBinding
func (UnimplementedTagBindingsServer) CreateTagBinding(context.Context, *CreateTagBindingRequest) (*longrunningpb.Operation, error)func (UnimplementedTagBindingsServer) DeleteTagBinding
func (UnimplementedTagBindingsServer) DeleteTagBinding(context.Context, *DeleteTagBindingRequest) (*longrunningpb.Operation, error)func (UnimplementedTagBindingsServer) ListEffectiveTags
func (UnimplementedTagBindingsServer) ListEffectiveTags(context.Context, *ListEffectiveTagsRequest) (*ListEffectiveTagsResponse, error)func (UnimplementedTagBindingsServer) ListTagBindings
func (UnimplementedTagBindingsServer) ListTagBindings(context.Context, *ListTagBindingsRequest) (*ListTagBindingsResponse, error)UnimplementedTagHoldsServer
type UnimplementedTagHoldsServer struct {
}UnimplementedTagHoldsServer should be embedded to have forward compatible implementations.
func (UnimplementedTagHoldsServer) CreateTagHold
func (UnimplementedTagHoldsServer) CreateTagHold(context.Context, *CreateTagHoldRequest) (*longrunningpb.Operation, error)func (UnimplementedTagHoldsServer) DeleteTagHold
func (UnimplementedTagHoldsServer) DeleteTagHold(context.Context, *DeleteTagHoldRequest) (*longrunningpb.Operation, error)func (UnimplementedTagHoldsServer) ListTagHolds
func (UnimplementedTagHoldsServer) ListTagHolds(context.Context, *ListTagHoldsRequest) (*ListTagHoldsResponse, error)UnimplementedTagKeysServer
type UnimplementedTagKeysServer struct {
}UnimplementedTagKeysServer should be embedded to have forward compatible implementations.
func (UnimplementedTagKeysServer) CreateTagKey
func (UnimplementedTagKeysServer) CreateTagKey(context.Context, *CreateTagKeyRequest) (*longrunningpb.Operation, error)func (UnimplementedTagKeysServer) DeleteTagKey
func (UnimplementedTagKeysServer) DeleteTagKey(context.Context, *DeleteTagKeyRequest) (*longrunningpb.Operation, error)func (UnimplementedTagKeysServer) GetIamPolicy
func (UnimplementedTagKeysServer) GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)func (UnimplementedTagKeysServer) GetNamespacedTagKey
func (UnimplementedTagKeysServer) GetNamespacedTagKey(context.Context, *GetNamespacedTagKeyRequest) (*TagKey, error)func (UnimplementedTagKeysServer) GetTagKey
func (UnimplementedTagKeysServer) GetTagKey(context.Context, *GetTagKeyRequest) (*TagKey, error)func (UnimplementedTagKeysServer) ListTagKeys
func (UnimplementedTagKeysServer) ListTagKeys(context.Context, *ListTagKeysRequest) (*ListTagKeysResponse, error)func (UnimplementedTagKeysServer) SetIamPolicy
func (UnimplementedTagKeysServer) SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)func (UnimplementedTagKeysServer) TestIamPermissions
func (UnimplementedTagKeysServer) TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)func (UnimplementedTagKeysServer) UpdateTagKey
func (UnimplementedTagKeysServer) UpdateTagKey(context.Context, *UpdateTagKeyRequest) (*longrunningpb.Operation, error)UnimplementedTagValuesServer
type UnimplementedTagValuesServer struct {
}UnimplementedTagValuesServer should be embedded to have forward compatible implementations.
func (UnimplementedTagValuesServer) CreateTagValue
func (UnimplementedTagValuesServer) CreateTagValue(context.Context, *CreateTagValueRequest) (*longrunningpb.Operation, error)func (UnimplementedTagValuesServer) DeleteTagValue
func (UnimplementedTagValuesServer) DeleteTagValue(context.Context, *DeleteTagValueRequest) (*longrunningpb.Operation, error)func (UnimplementedTagValuesServer) GetIamPolicy
func (UnimplementedTagValuesServer) GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)func (UnimplementedTagValuesServer) GetNamespacedTagValue
func (UnimplementedTagValuesServer) GetNamespacedTagValue(context.Context, *GetNamespacedTagValueRequest) (*TagValue, error)func (UnimplementedTagValuesServer) GetTagValue
func (UnimplementedTagValuesServer) GetTagValue(context.Context, *GetTagValueRequest) (*TagValue, error)func (UnimplementedTagValuesServer) ListTagValues
func (UnimplementedTagValuesServer) ListTagValues(context.Context, *ListTagValuesRequest) (*ListTagValuesResponse, error)func (UnimplementedTagValuesServer) SetIamPolicy
func (UnimplementedTagValuesServer) SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)func (UnimplementedTagValuesServer) TestIamPermissions
func (UnimplementedTagValuesServer) TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)func (UnimplementedTagValuesServer) UpdateTagValue
func (UnimplementedTagValuesServer) UpdateTagValue(context.Context, *UpdateTagValueRequest) (*longrunningpb.Operation, error)UnsafeFoldersServer
type UnsafeFoldersServer interface {
// contains filtered or unexported methods
}UnsafeFoldersServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FoldersServer will result in compilation errors.
UnsafeOrganizationsServer
type UnsafeOrganizationsServer interface {
// contains filtered or unexported methods
}UnsafeOrganizationsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrganizationsServer will result in compilation errors.
UnsafeProjectsServer
type UnsafeProjectsServer interface {
// contains filtered or unexported methods
}UnsafeProjectsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProjectsServer will result in compilation errors.
UnsafeTagBindingsServer
type UnsafeTagBindingsServer interface {
// contains filtered or unexported methods
}UnsafeTagBindingsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TagBindingsServer will result in compilation errors.
UnsafeTagHoldsServer
type UnsafeTagHoldsServer interface {
// contains filtered or unexported methods
}UnsafeTagHoldsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TagHoldsServer will result in compilation errors.
UnsafeTagKeysServer
type UnsafeTagKeysServer interface {
// contains filtered or unexported methods
}UnsafeTagKeysServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TagKeysServer will result in compilation errors.
UnsafeTagValuesServer
type UnsafeTagValuesServer interface {
// contains filtered or unexported methods
}UnsafeTagValuesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TagValuesServer will result in compilation errors.
UpdateFolderMetadata
type UpdateFolderMetadata struct {
// contains filtered or unexported fields
}A status object which is used as the metadata field for the Operation
returned by UpdateFolder.
func (*UpdateFolderMetadata) Descriptor
func (*UpdateFolderMetadata) Descriptor() ([]byte, []int)Deprecated: Use UpdateFolderMetadata.ProtoReflect.Descriptor instead.
func (*UpdateFolderMetadata) ProtoMessage
func (*UpdateFolderMetadata) ProtoMessage()func (*UpdateFolderMetadata) ProtoReflect
func (x *UpdateFolderMetadata) ProtoReflect() protoreflect.Messagefunc (*UpdateFolderMetadata) Reset
func (x *UpdateFolderMetadata) Reset()func (*UpdateFolderMetadata) String
func (x *UpdateFolderMetadata) String() stringUpdateFolderRequest
type UpdateFolderRequest struct {
// Required. The new definition of the Folder. It must include the `name`
// field, which cannot be changed.
Folder *Folder `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder,omitempty"`
// Required. Fields to be updated.
// Only the `display_name` can be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}The request sent to the [UpdateFolder][google.cloud.resourcemanager.v3.Folder.UpdateFolder] method.
Only the display_name field can be changed. All other fields will be
ignored. Use the
[MoveFolder][google.cloud.resourcemanager.v3.Folders.MoveFolder] method to
change the parent field.
func (*UpdateFolderRequest) Descriptor
func (*UpdateFolderRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateFolderRequest.ProtoReflect.Descriptor instead.
func (*UpdateFolderRequest) GetFolder
func (x *UpdateFolderRequest) GetFolder() *Folderfunc (*UpdateFolderRequest) GetUpdateMask
func (x *UpdateFolderRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateFolderRequest) ProtoMessage
func (*UpdateFolderRequest) ProtoMessage()func (*UpdateFolderRequest) ProtoReflect
func (x *UpdateFolderRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateFolderRequest) Reset
func (x *UpdateFolderRequest) Reset()func (*UpdateFolderRequest) String
func (x *UpdateFolderRequest) String() stringUpdateProjectMetadata
type UpdateProjectMetadata struct {
// contains filtered or unexported fields
}A status object which is used as the metadata field for the Operation
returned by UpdateProject.
func (*UpdateProjectMetadata) Descriptor
func (*UpdateProjectMetadata) Descriptor() ([]byte, []int)Deprecated: Use UpdateProjectMetadata.ProtoReflect.Descriptor instead.
func (*UpdateProjectMetadata) ProtoMessage
func (*UpdateProjectMetadata) ProtoMessage()func (*UpdateProjectMetadata) ProtoReflect
func (x *UpdateProjectMetadata) ProtoReflect() protoreflect.Messagefunc (*UpdateProjectMetadata) Reset
func (x *UpdateProjectMetadata) Reset()func (*UpdateProjectMetadata) String
func (x *UpdateProjectMetadata) String() stringUpdateProjectRequest
type UpdateProjectRequest struct {
// Required. The new definition of the project.
Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
// Optional. An update mask to selectively update fields.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}The request sent to the [UpdateProject][google.cloud.resourcemanager.v3.Projects.UpdateProject] method.
Only the display_name and labels fields can be change. Use the
[MoveProject][google.cloud.resourcemanager.v3.Projects.MoveProject] method to
change the parent field.
func (*UpdateProjectRequest) Descriptor
func (*UpdateProjectRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateProjectRequest.ProtoReflect.Descriptor instead.
func (*UpdateProjectRequest) GetProject
func (x *UpdateProjectRequest) GetProject() *Projectfunc (*UpdateProjectRequest) GetUpdateMask
func (x *UpdateProjectRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateProjectRequest) ProtoMessage
func (*UpdateProjectRequest) ProtoMessage()func (*UpdateProjectRequest) ProtoReflect
func (x *UpdateProjectRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateProjectRequest) Reset
func (x *UpdateProjectRequest) Reset()func (*UpdateProjectRequest) String
func (x *UpdateProjectRequest) String() stringUpdateTagKeyMetadata
type UpdateTagKeyMetadata struct {
// contains filtered or unexported fields
}Runtime operation information for updating a TagKey.
func (*UpdateTagKeyMetadata) Descriptor
func (*UpdateTagKeyMetadata) Descriptor() ([]byte, []int)Deprecated: Use UpdateTagKeyMetadata.ProtoReflect.Descriptor instead.
func (*UpdateTagKeyMetadata) ProtoMessage
func (*UpdateTagKeyMetadata) ProtoMessage()func (*UpdateTagKeyMetadata) ProtoReflect
func (x *UpdateTagKeyMetadata) ProtoReflect() protoreflect.Messagefunc (*UpdateTagKeyMetadata) Reset
func (x *UpdateTagKeyMetadata) Reset()func (*UpdateTagKeyMetadata) String
func (x *UpdateTagKeyMetadata) String() stringUpdateTagKeyRequest
type UpdateTagKeyRequest struct {
// Required. The new definition of the TagKey. Only the `description` and
// `etag` fields can be updated by this request. If the `etag` field is not
// empty, it must match the `etag` field of the existing tag key. Otherwise,
// `ABORTED` will be returned.
TagKey *TagKey `protobuf:"bytes,1,opt,name=tag_key,json=tagKey,proto3" json:"tag_key,omitempty"`
// Fields to be updated. The mask may only contain `description` or
// `etag`. If omitted entirely, both `description` and `etag` are assumed to
// be significant.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Set as true to perform validations necessary for updating the resource, but
// not actually perform the action.
ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// contains filtered or unexported fields
}The request message for updating a TagKey.
func (*UpdateTagKeyRequest) Descriptor
func (*UpdateTagKeyRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateTagKeyRequest.ProtoReflect.Descriptor instead.
func (*UpdateTagKeyRequest) GetTagKey
func (x *UpdateTagKeyRequest) GetTagKey() *TagKeyfunc (*UpdateTagKeyRequest) GetUpdateMask
func (x *UpdateTagKeyRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateTagKeyRequest) GetValidateOnly
func (x *UpdateTagKeyRequest) GetValidateOnly() boolfunc (*UpdateTagKeyRequest) ProtoMessage
func (*UpdateTagKeyRequest) ProtoMessage()func (*UpdateTagKeyRequest) ProtoReflect
func (x *UpdateTagKeyRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateTagKeyRequest) Reset
func (x *UpdateTagKeyRequest) Reset()func (*UpdateTagKeyRequest) String
func (x *UpdateTagKeyRequest) String() stringUpdateTagValueMetadata
type UpdateTagValueMetadata struct {
// contains filtered or unexported fields
}Runtime operation information for updating a TagValue.
func (*UpdateTagValueMetadata) Descriptor
func (*UpdateTagValueMetadata) Descriptor() ([]byte, []int)Deprecated: Use UpdateTagValueMetadata.ProtoReflect.Descriptor instead.
func (*UpdateTagValueMetadata) ProtoMessage
func (*UpdateTagValueMetadata) ProtoMessage()func (*UpdateTagValueMetadata) ProtoReflect
func (x *UpdateTagValueMetadata) ProtoReflect() protoreflect.Messagefunc (*UpdateTagValueMetadata) Reset
func (x *UpdateTagValueMetadata) Reset()func (*UpdateTagValueMetadata) String
func (x *UpdateTagValueMetadata) String() stringUpdateTagValueRequest
type UpdateTagValueRequest struct {
// Required. The new definition of the TagValue. Only fields `description` and
// `etag` fields can be updated by this request. If the `etag` field is
// nonempty, it must match the `etag` field of the existing ControlGroup.
// Otherwise, `ABORTED` will be returned.
TagValue *TagValue `protobuf:"bytes,1,opt,name=tag_value,json=tagValue,proto3" json:"tag_value,omitempty"`
// Optional. Fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Optional. True to perform validations necessary for updating the resource,
// but not actually perform the action.
ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// contains filtered or unexported fields
}The request message for updating a TagValue.
func (*UpdateTagValueRequest) Descriptor
func (*UpdateTagValueRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateTagValueRequest.ProtoReflect.Descriptor instead.
func (*UpdateTagValueRequest) GetTagValue
func (x *UpdateTagValueRequest) GetTagValue() *TagValuefunc (*UpdateTagValueRequest) GetUpdateMask
func (x *UpdateTagValueRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateTagValueRequest) GetValidateOnly
func (x *UpdateTagValueRequest) GetValidateOnly() boolfunc (*UpdateTagValueRequest) ProtoMessage
func (*UpdateTagValueRequest) ProtoMessage()func (*UpdateTagValueRequest) ProtoReflect
func (x *UpdateTagValueRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateTagValueRequest) Reset
func (x *UpdateTagValueRequest) Reset()func (*UpdateTagValueRequest) String
func (x *UpdateTagValueRequest) String() string