Constants
ManagedIdentitiesService_CreateMicrosoftAdDomain_FullMethodName, ManagedIdentitiesService_ResetAdminPassword_FullMethodName, ManagedIdentitiesService_ListDomains_FullMethodName, ManagedIdentitiesService_GetDomain_FullMethodName, ManagedIdentitiesService_UpdateDomain_FullMethodName, ManagedIdentitiesService_DeleteDomain_FullMethodName, ManagedIdentitiesService_AttachTrust_FullMethodName, ManagedIdentitiesService_ReconfigureTrust_FullMethodName, ManagedIdentitiesService_DetachTrust_FullMethodName, ManagedIdentitiesService_ValidateTrust_FullMethodName
const (
ManagedIdentitiesService_CreateMicrosoftAdDomain_FullMethodName = "/google.cloud.managedidentities.v1.ManagedIdentitiesService/CreateMicrosoftAdDomain"
ManagedIdentitiesService_ResetAdminPassword_FullMethodName = "/google.cloud.managedidentities.v1.ManagedIdentitiesService/ResetAdminPassword"
ManagedIdentitiesService_ListDomains_FullMethodName = "/google.cloud.managedidentities.v1.ManagedIdentitiesService/ListDomains"
ManagedIdentitiesService_GetDomain_FullMethodName = "/google.cloud.managedidentities.v1.ManagedIdentitiesService/GetDomain"
ManagedIdentitiesService_UpdateDomain_FullMethodName = "/google.cloud.managedidentities.v1.ManagedIdentitiesService/UpdateDomain"
ManagedIdentitiesService_DeleteDomain_FullMethodName = "/google.cloud.managedidentities.v1.ManagedIdentitiesService/DeleteDomain"
ManagedIdentitiesService_AttachTrust_FullMethodName = "/google.cloud.managedidentities.v1.ManagedIdentitiesService/AttachTrust"
ManagedIdentitiesService_ReconfigureTrust_FullMethodName = "/google.cloud.managedidentities.v1.ManagedIdentitiesService/ReconfigureTrust"
ManagedIdentitiesService_DetachTrust_FullMethodName = "/google.cloud.managedidentities.v1.ManagedIdentitiesService/DetachTrust"
ManagedIdentitiesService_ValidateTrust_FullMethodName = "/google.cloud.managedidentities.v1.ManagedIdentitiesService/ValidateTrust"
)Variables
Domain_State_name, Domain_State_value
var (
Domain_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "READY",
3: "UPDATING",
4: "DELETING",
5: "REPAIRING",
6: "PERFORMING_MAINTENANCE",
7: "UNAVAILABLE",
}
Domain_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"READY": 2,
"UPDATING": 3,
"DELETING": 4,
"REPAIRING": 5,
"PERFORMING_MAINTENANCE": 6,
"UNAVAILABLE": 7,
}
)Enum value maps for Domain_State.
Trust_State_name, Trust_State_value
var (
Trust_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "UPDATING",
3: "DELETING",
4: "CONNECTED",
5: "DISCONNECTED",
}
Trust_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"UPDATING": 2,
"DELETING": 3,
"CONNECTED": 4,
"DISCONNECTED": 5,
}
)Enum value maps for Trust_State.
Trust_TrustType_name, Trust_TrustType_value
var (
Trust_TrustType_name = map[int32]string{
0: "TRUST_TYPE_UNSPECIFIED",
1: "FOREST",
2: "EXTERNAL",
}
Trust_TrustType_value = map[string]int32{
"TRUST_TYPE_UNSPECIFIED": 0,
"FOREST": 1,
"EXTERNAL": 2,
}
)Enum value maps for Trust_TrustType.
Trust_TrustDirection_name, Trust_TrustDirection_value
var (
Trust_TrustDirection_name = map[int32]string{
0: "TRUST_DIRECTION_UNSPECIFIED",
1: "INBOUND",
2: "OUTBOUND",
3: "BIDIRECTIONAL",
}
Trust_TrustDirection_value = map[string]int32{
"TRUST_DIRECTION_UNSPECIFIED": 0,
"INBOUND": 1,
"OUTBOUND": 2,
"BIDIRECTIONAL": 3,
}
)Enum value maps for Trust_TrustDirection.
File_google_cloud_managedidentities_v1_managed_identities_service_proto
var File_google_cloud_managedidentities_v1_managed_identities_service_proto protoreflect.FileDescriptorFile_google_cloud_managedidentities_v1_resource_proto
var File_google_cloud_managedidentities_v1_resource_proto protoreflect.FileDescriptorManagedIdentitiesService_ServiceDesc
var ManagedIdentitiesService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.managedidentities.v1.ManagedIdentitiesService",
HandlerType: (*ManagedIdentitiesServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateMicrosoftAdDomain",
Handler: _ManagedIdentitiesService_CreateMicrosoftAdDomain_Handler,
},
{
MethodName: "ResetAdminPassword",
Handler: _ManagedIdentitiesService_ResetAdminPassword_Handler,
},
{
MethodName: "ListDomains",
Handler: _ManagedIdentitiesService_ListDomains_Handler,
},
{
MethodName: "GetDomain",
Handler: _ManagedIdentitiesService_GetDomain_Handler,
},
{
MethodName: "UpdateDomain",
Handler: _ManagedIdentitiesService_UpdateDomain_Handler,
},
{
MethodName: "DeleteDomain",
Handler: _ManagedIdentitiesService_DeleteDomain_Handler,
},
{
MethodName: "AttachTrust",
Handler: _ManagedIdentitiesService_AttachTrust_Handler,
},
{
MethodName: "ReconfigureTrust",
Handler: _ManagedIdentitiesService_ReconfigureTrust_Handler,
},
{
MethodName: "DetachTrust",
Handler: _ManagedIdentitiesService_DetachTrust_Handler,
},
{
MethodName: "ValidateTrust",
Handler: _ManagedIdentitiesService_ValidateTrust_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/managedidentities/v1/managed_identities_service.proto",
}ManagedIdentitiesService_ServiceDesc is the grpc.ServiceDesc for ManagedIdentitiesService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions
func RegisterManagedIdentitiesServiceServer
func RegisterManagedIdentitiesServiceServer(s grpc.ServiceRegistrar, srv ManagedIdentitiesServiceServer)AttachTrustRequest
type AttachTrustRequest struct {
// Required. The resource domain name, project name and location using the form:
// `projects/{project_id}/locations/global/domains/{domain_name}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The domain trust resource.
Trust *Trust `protobuf:"bytes,2,opt,name=trust,proto3" json:"trust,omitempty"`
// contains filtered or unexported fields
}Request message for [AttachTrust][google.cloud.managedidentities.v1.AttachTrust]
func (*AttachTrustRequest) Descriptor
func (*AttachTrustRequest) Descriptor() ([]byte, []int)Deprecated: Use AttachTrustRequest.ProtoReflect.Descriptor instead.
func (*AttachTrustRequest) GetName
func (x *AttachTrustRequest) GetName() stringfunc (*AttachTrustRequest) GetTrust
func (x *AttachTrustRequest) GetTrust() *Trustfunc (*AttachTrustRequest) ProtoMessage
func (*AttachTrustRequest) ProtoMessage()func (*AttachTrustRequest) ProtoReflect
func (x *AttachTrustRequest) ProtoReflect() protoreflect.Messagefunc (*AttachTrustRequest) Reset
func (x *AttachTrustRequest) Reset()func (*AttachTrustRequest) String
func (x *AttachTrustRequest) String() stringCreateMicrosoftAdDomainRequest
type CreateMicrosoftAdDomainRequest struct {
// Required. The resource project name and location using the form:
// `projects/{project_id}/locations/global`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The fully qualified domain name.
// e.g. mydomain.myorganization.com, with the following restrictions:
//
// - Must contain only lowercase letters, numbers, periods and hyphens.
// - Must start with a letter.
// - Must contain between 2-64 characters.
// - Must end with a number or a letter.
// - Must not start with period.
// - First segement length (mydomain form example above) shouldn't exceed
// 15 chars.
// - The last segment cannot be fully numeric.
// - Must be unique within the customer project.
DomainName string `protobuf:"bytes,2,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"`
// Required. A Managed Identity domain resource.
Domain *Domain `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`
// contains filtered or unexported fields
}Request message for [CreateMicrosoftAdDomain][google.cloud.managedidentities.v1.CreateMicrosoftAdDomain]
func (*CreateMicrosoftAdDomainRequest) Descriptor
func (*CreateMicrosoftAdDomainRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateMicrosoftAdDomainRequest.ProtoReflect.Descriptor instead.
func (*CreateMicrosoftAdDomainRequest) GetDomain
func (x *CreateMicrosoftAdDomainRequest) GetDomain() *Domainfunc (*CreateMicrosoftAdDomainRequest) GetDomainName
func (x *CreateMicrosoftAdDomainRequest) GetDomainName() stringfunc (*CreateMicrosoftAdDomainRequest) GetParent
func (x *CreateMicrosoftAdDomainRequest) GetParent() stringfunc (*CreateMicrosoftAdDomainRequest) ProtoMessage
func (*CreateMicrosoftAdDomainRequest) ProtoMessage()func (*CreateMicrosoftAdDomainRequest) ProtoReflect
func (x *CreateMicrosoftAdDomainRequest) ProtoReflect() protoreflect.Messagefunc (*CreateMicrosoftAdDomainRequest) Reset
func (x *CreateMicrosoftAdDomainRequest) Reset()func (*CreateMicrosoftAdDomainRequest) String
func (x *CreateMicrosoftAdDomainRequest) String() stringDeleteDomainRequest
type DeleteDomainRequest struct {
// Required. The domain resource name using the form:
// `projects/{project_id}/locations/global/domains/{domain_name}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for [DeleteDomain][google.cloud.managedidentities.v1.DeleteDomain]
func (*DeleteDomainRequest) Descriptor
func (*DeleteDomainRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteDomainRequest.ProtoReflect.Descriptor instead.
func (*DeleteDomainRequest) GetName
func (x *DeleteDomainRequest) GetName() stringfunc (*DeleteDomainRequest) ProtoMessage
func (*DeleteDomainRequest) ProtoMessage()func (*DeleteDomainRequest) ProtoReflect
func (x *DeleteDomainRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteDomainRequest) Reset
func (x *DeleteDomainRequest) Reset()func (*DeleteDomainRequest) String
func (x *DeleteDomainRequest) String() stringDetachTrustRequest
type DetachTrustRequest struct {
// Required. The resource domain name, project name, and location using the form:
// `projects/{project_id}/locations/global/domains/{domain_name}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The domain trust resource to removed.
Trust *Trust `protobuf:"bytes,2,opt,name=trust,proto3" json:"trust,omitempty"`
// contains filtered or unexported fields
}Request message for [DetachTrust][google.cloud.managedidentities.v1.DetachTrust]
func (*DetachTrustRequest) Descriptor
func (*DetachTrustRequest) Descriptor() ([]byte, []int)Deprecated: Use DetachTrustRequest.ProtoReflect.Descriptor instead.
func (*DetachTrustRequest) GetName
func (x *DetachTrustRequest) GetName() stringfunc (*DetachTrustRequest) GetTrust
func (x *DetachTrustRequest) GetTrust() *Trustfunc (*DetachTrustRequest) ProtoMessage
func (*DetachTrustRequest) ProtoMessage()func (*DetachTrustRequest) ProtoReflect
func (x *DetachTrustRequest) ProtoReflect() protoreflect.Messagefunc (*DetachTrustRequest) Reset
func (x *DetachTrustRequest) Reset()func (*DetachTrustRequest) String
func (x *DetachTrustRequest) String() stringDomain
type Domain struct {
// Required. The unique name of the domain using the form:
// `projects/{project_id}/locations/global/domains/{domain_name}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Resource labels that can contain user-provided metadata.
Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. The full names of the Google Compute Engine
// [networks](/compute/docs/networks-and-firewalls#networks) the domain
// instance is connected to. Networks can be added using UpdateDomain.
// The domain is only available on networks listed in `authorized_networks`.
// If CIDR subnets overlap between networks, domain creation will fail.
AuthorizedNetworks []string `protobuf:"bytes,3,rep,name=authorized_networks,json=authorizedNetworks,proto3" json:"authorized_networks,omitempty"`
// Required. The CIDR range of internal addresses that are reserved for this
// domain. Reserved networks must be /24 or larger. Ranges must be
// unique and non-overlapping with existing subnets in
// [Domain].[authorized_networks].
ReservedIpRange string `protobuf:"bytes,4,opt,name=reserved_ip_range,json=reservedIpRange,proto3" json:"reserved_ip_range,omitempty"`
// Required. Locations where domain needs to be provisioned.
// [regions][compute/docs/regions-zones/]
// e.g. us-west1 or us-east4
// Service supports up to 4 locations at once. Each location will use a /26
// block.
Locations []string `protobuf:"bytes,5,rep,name=locations,proto3" json:"locations,omitempty"`
// Optional. The name of delegated administrator account used to perform
// Active Directory operations. If not specified, `setupadmin` will be used.
Admin string `protobuf:"bytes,6,opt,name=admin,proto3" json:"admin,omitempty"`
// Output only. The fully-qualified domain name of the exposed domain used by
// clients to connect to the service. Similar to what would be chosen for an
// Active Directory set up on an internal network.
Fqdn string `protobuf:"bytes,10,opt,name=fqdn,proto3" json:"fqdn,omitempty"`
// Output only. The time the instance was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The last update time.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. The current state of this domain.
State Domain_State `protobuf:"varint,13,opt,name=state,proto3,enum=google.cloud.managedidentities.v1.Domain_State" json:"state,omitempty"`
// Output only. Additional information about the current status of this
// domain, if available.
StatusMessage string `protobuf:"bytes,14,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
// Output only. The current trusts associated with the domain.
Trusts []*Trust `protobuf:"bytes,15,rep,name=trusts,proto3" json:"trusts,omitempty"`
// contains filtered or unexported fields
}Represents a managed Microsoft Active Directory domain.
func (*Domain) Descriptor
Deprecated: Use Domain.ProtoReflect.Descriptor instead.
func (*Domain) GetAdmin
func (*Domain) GetAuthorizedNetworks
func (*Domain) GetCreateTime
func (x *Domain) GetCreateTime() *timestamppb.Timestampfunc (*Domain) GetFqdn
func (*Domain) GetLabels
func (*Domain) GetLocations
func (*Domain) GetName
func (*Domain) GetReservedIpRange
func (*Domain) GetState
func (x *Domain) GetState() Domain_Statefunc (*Domain) GetStatusMessage
func (*Domain) GetTrusts
func (*Domain) GetUpdateTime
func (x *Domain) GetUpdateTime() *timestamppb.Timestampfunc (*Domain) ProtoMessage
func (*Domain) ProtoMessage()func (*Domain) ProtoReflect
func (x *Domain) ProtoReflect() protoreflect.Messagefunc (*Domain) Reset
func (x *Domain) Reset()func (*Domain) String
Domain_State
type Domain_State int32Represents the different states of a managed domain.
Domain_STATE_UNSPECIFIED, Domain_CREATING, Domain_READY, Domain_UPDATING, Domain_DELETING, Domain_REPAIRING, Domain_PERFORMING_MAINTENANCE, Domain_UNAVAILABLE
const (
// Not set.
Domain_STATE_UNSPECIFIED Domain_State = 0
// The domain is being created.
Domain_CREATING Domain_State = 1
// The domain has been created and is fully usable.
Domain_READY Domain_State = 2
// The domain's configuration is being updated.
Domain_UPDATING Domain_State = 3
// The domain is being deleted.
Domain_DELETING Domain_State = 4
// The domain is being repaired and may be unusable. Details
// can be found in the `status_message` field.
Domain_REPAIRING Domain_State = 5
// The domain is undergoing maintenance.
Domain_PERFORMING_MAINTENANCE Domain_State = 6
// The domain is not serving requests.
Domain_UNAVAILABLE Domain_State = 7
)func (Domain_State) Descriptor
func (Domain_State) Descriptor() protoreflect.EnumDescriptorfunc (Domain_State) Enum
func (x Domain_State) Enum() *Domain_Statefunc (Domain_State) EnumDescriptor
func (Domain_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Domain_State.Descriptor instead.
func (Domain_State) Number
func (x Domain_State) Number() protoreflect.EnumNumberfunc (Domain_State) String
func (x Domain_State) String() stringfunc (Domain_State) Type
func (Domain_State) Type() protoreflect.EnumTypeGetDomainRequest
type GetDomainRequest struct {
// Required. The domain resource name using the form:
// `projects/{project_id}/locations/global/domains/{domain_name}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for [GetDomain][google.cloud.managedidentities.v1.GetDomain]
func (*GetDomainRequest) Descriptor
func (*GetDomainRequest) Descriptor() ([]byte, []int)Deprecated: Use GetDomainRequest.ProtoReflect.Descriptor instead.
func (*GetDomainRequest) GetName
func (x *GetDomainRequest) GetName() stringfunc (*GetDomainRequest) ProtoMessage
func (*GetDomainRequest) ProtoMessage()func (*GetDomainRequest) ProtoReflect
func (x *GetDomainRequest) ProtoReflect() protoreflect.Messagefunc (*GetDomainRequest) Reset
func (x *GetDomainRequest) Reset()func (*GetDomainRequest) String
func (x *GetDomainRequest) String() stringListDomainsRequest
type ListDomainsRequest struct {
// Required. The resource name of the domain location using the form:
// `projects/{project_id}/locations/global`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of items to return.
// If not specified, a default value of 1000 will be used.
// Regardless of the page_size value, the response may include a partial list.
// Callers should rely on a response's
// [next_page_token][google.cloud.managedidentities.v1.ListDomainsResponse.next_page_token]
// to determine if there are additional results to list.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The `next_page_token` value returned from a previous ListDomainsRequest
// request, if any.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. A filter specifying constraints of a list operation.
// For example, `Domain.fqdn="mydomain.myorginization"`.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Specifies the ordering of results. See
// [Sorting
// order](https://cloud.google.com/apis/design/design_patterns#sorting_order)
// for more information.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}Request message for [ListDomains][google.cloud.managedidentities.v1.ListDomains]
func (*ListDomainsRequest) Descriptor
func (*ListDomainsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListDomainsRequest.ProtoReflect.Descriptor instead.
func (*ListDomainsRequest) GetFilter
func (x *ListDomainsRequest) GetFilter() stringfunc (*ListDomainsRequest) GetOrderBy
func (x *ListDomainsRequest) GetOrderBy() stringfunc (*ListDomainsRequest) GetPageSize
func (x *ListDomainsRequest) GetPageSize() int32func (*ListDomainsRequest) GetPageToken
func (x *ListDomainsRequest) GetPageToken() stringfunc (*ListDomainsRequest) GetParent
func (x *ListDomainsRequest) GetParent() stringfunc (*ListDomainsRequest) ProtoMessage
func (*ListDomainsRequest) ProtoMessage()func (*ListDomainsRequest) ProtoReflect
func (x *ListDomainsRequest) ProtoReflect() protoreflect.Messagefunc (*ListDomainsRequest) Reset
func (x *ListDomainsRequest) Reset()func (*ListDomainsRequest) String
func (x *ListDomainsRequest) String() stringListDomainsResponse
type ListDomainsResponse struct {
// A list of Managed Identities Service domains in the project.
Domains []*Domain `protobuf:"bytes,1,rep,name=domains,proto3" json:"domains,omitempty"`
// A token to retrieve the next page of results, or empty if there are no more
// results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// A list of locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Response message for [ListDomains][google.cloud.managedidentities.v1.ListDomains]
func (*ListDomainsResponse) Descriptor
func (*ListDomainsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListDomainsResponse.ProtoReflect.Descriptor instead.
func (*ListDomainsResponse) GetDomains
func (x *ListDomainsResponse) GetDomains() []*Domainfunc (*ListDomainsResponse) GetNextPageToken
func (x *ListDomainsResponse) GetNextPageToken() stringfunc (*ListDomainsResponse) GetUnreachable
func (x *ListDomainsResponse) GetUnreachable() []stringfunc (*ListDomainsResponse) ProtoMessage
func (*ListDomainsResponse) ProtoMessage()func (*ListDomainsResponse) ProtoReflect
func (x *ListDomainsResponse) ProtoReflect() protoreflect.Messagefunc (*ListDomainsResponse) Reset
func (x *ListDomainsResponse) Reset()func (*ListDomainsResponse) String
func (x *ListDomainsResponse) String() stringManagedIdentitiesServiceClient
type ManagedIdentitiesServiceClient interface {
// Creates a Microsoft AD domain.
CreateMicrosoftAdDomain(ctx context.Context, in *CreateMicrosoftAdDomainRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Resets a domain's administrator password.
ResetAdminPassword(ctx context.Context, in *ResetAdminPasswordRequest, opts ...grpc.CallOption) (*ResetAdminPasswordResponse, error)
// Lists domains in a project.
ListDomains(ctx context.Context, in *ListDomainsRequest, opts ...grpc.CallOption) (*ListDomainsResponse, error)
// Gets information about a domain.
GetDomain(ctx context.Context, in *GetDomainRequest, opts ...grpc.CallOption) (*Domain, error)
// Updates the metadata and configuration of a domain.
UpdateDomain(ctx context.Context, in *UpdateDomainRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a domain.
DeleteDomain(ctx context.Context, in *DeleteDomainRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Adds an AD trust to a domain.
AttachTrust(ctx context.Context, in *AttachTrustRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates the DNS conditional forwarder.
ReconfigureTrust(ctx context.Context, in *ReconfigureTrustRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Removes an AD trust.
DetachTrust(ctx context.Context, in *DetachTrustRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Validates a trust state, that the target domain is reachable, and that the
// target domain is able to accept incoming trust requests.
ValidateTrust(ctx context.Context, in *ValidateTrustRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}ManagedIdentitiesServiceClient is the client API for ManagedIdentitiesService 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 NewManagedIdentitiesServiceClient
func NewManagedIdentitiesServiceClient(cc grpc.ClientConnInterface) ManagedIdentitiesServiceClientManagedIdentitiesServiceServer
type ManagedIdentitiesServiceServer interface {
// Creates a Microsoft AD domain.
CreateMicrosoftAdDomain(context.Context, *CreateMicrosoftAdDomainRequest) (*longrunningpb.Operation, error)
// Resets a domain's administrator password.
ResetAdminPassword(context.Context, *ResetAdminPasswordRequest) (*ResetAdminPasswordResponse, error)
// Lists domains in a project.
ListDomains(context.Context, *ListDomainsRequest) (*ListDomainsResponse, error)
// Gets information about a domain.
GetDomain(context.Context, *GetDomainRequest) (*Domain, error)
// Updates the metadata and configuration of a domain.
UpdateDomain(context.Context, *UpdateDomainRequest) (*longrunningpb.Operation, error)
// Deletes a domain.
DeleteDomain(context.Context, *DeleteDomainRequest) (*longrunningpb.Operation, error)
// Adds an AD trust to a domain.
AttachTrust(context.Context, *AttachTrustRequest) (*longrunningpb.Operation, error)
// Updates the DNS conditional forwarder.
ReconfigureTrust(context.Context, *ReconfigureTrustRequest) (*longrunningpb.Operation, error)
// Removes an AD trust.
DetachTrust(context.Context, *DetachTrustRequest) (*longrunningpb.Operation, error)
// Validates a trust state, that the target domain is reachable, and that the
// target domain is able to accept incoming trust requests.
ValidateTrust(context.Context, *ValidateTrustRequest) (*longrunningpb.Operation, error)
}ManagedIdentitiesServiceServer is the server API for ManagedIdentitiesService service. All implementations should embed UnimplementedManagedIdentitiesServiceServer for forward compatibility
OpMetadata
type OpMetadata struct {
// Output only. The time the operation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time the operation finished running.
EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only. Server-defined resource path for the target of the operation.
Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
// Output only. Name of the verb executed by the operation.
Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
// Output only. Identifies whether the user has requested cancellation
// of the operation. Operations that have successfully been cancelled
// have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
// corresponding to `Code.CANCELLED`.
RequestedCancellation bool `protobuf:"varint,5,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
// Output only. API version used to start the operation.
ApiVersion string `protobuf:"bytes,6,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// contains filtered or unexported fields
}Represents the metadata of the long-running operation.
func (*OpMetadata) Descriptor
func (*OpMetadata) Descriptor() ([]byte, []int)Deprecated: Use OpMetadata.ProtoReflect.Descriptor instead.
func (*OpMetadata) GetApiVersion
func (x *OpMetadata) GetApiVersion() stringfunc (*OpMetadata) GetCreateTime
func (x *OpMetadata) GetCreateTime() *timestamppb.Timestampfunc (*OpMetadata) GetEndTime
func (x *OpMetadata) GetEndTime() *timestamppb.Timestampfunc (*OpMetadata) GetRequestedCancellation
func (x *OpMetadata) GetRequestedCancellation() boolfunc (*OpMetadata) GetTarget
func (x *OpMetadata) GetTarget() stringfunc (*OpMetadata) GetVerb
func (x *OpMetadata) GetVerb() stringfunc (*OpMetadata) ProtoMessage
func (*OpMetadata) ProtoMessage()func (*OpMetadata) ProtoReflect
func (x *OpMetadata) ProtoReflect() protoreflect.Messagefunc (*OpMetadata) Reset
func (x *OpMetadata) Reset()func (*OpMetadata) String
func (x *OpMetadata) String() stringReconfigureTrustRequest
type ReconfigureTrustRequest struct {
// Required. The resource domain name, project name and location using the form:
// `projects/{project_id}/locations/global/domains/{domain_name}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The fully-qualified target domain name which will be in trust with current
// domain.
TargetDomainName string `protobuf:"bytes,2,opt,name=target_domain_name,json=targetDomainName,proto3" json:"target_domain_name,omitempty"`
// Required. The target DNS server IP addresses to resolve the remote domain involved
// in the trust.
TargetDnsIpAddresses []string `protobuf:"bytes,3,rep,name=target_dns_ip_addresses,json=targetDnsIpAddresses,proto3" json:"target_dns_ip_addresses,omitempty"`
// contains filtered or unexported fields
}Request message for [ReconfigureTrust][google.cloud.managedidentities.v1.ReconfigureTrust]
func (*ReconfigureTrustRequest) Descriptor
func (*ReconfigureTrustRequest) Descriptor() ([]byte, []int)Deprecated: Use ReconfigureTrustRequest.ProtoReflect.Descriptor instead.
func (*ReconfigureTrustRequest) GetName
func (x *ReconfigureTrustRequest) GetName() stringfunc (*ReconfigureTrustRequest) GetTargetDnsIpAddresses
func (x *ReconfigureTrustRequest) GetTargetDnsIpAddresses() []stringfunc (*ReconfigureTrustRequest) GetTargetDomainName
func (x *ReconfigureTrustRequest) GetTargetDomainName() stringfunc (*ReconfigureTrustRequest) ProtoMessage
func (*ReconfigureTrustRequest) ProtoMessage()func (*ReconfigureTrustRequest) ProtoReflect
func (x *ReconfigureTrustRequest) ProtoReflect() protoreflect.Messagefunc (*ReconfigureTrustRequest) Reset
func (x *ReconfigureTrustRequest) Reset()func (*ReconfigureTrustRequest) String
func (x *ReconfigureTrustRequest) String() stringResetAdminPasswordRequest
type ResetAdminPasswordRequest struct {
// Required. The domain resource name using the form:
// `projects/{project_id}/locations/global/domains/{domain_name}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for [ResetAdminPassword][google.cloud.managedidentities.v1.ResetAdminPassword]
func (*ResetAdminPasswordRequest) Descriptor
func (*ResetAdminPasswordRequest) Descriptor() ([]byte, []int)Deprecated: Use ResetAdminPasswordRequest.ProtoReflect.Descriptor instead.
func (*ResetAdminPasswordRequest) GetName
func (x *ResetAdminPasswordRequest) GetName() stringfunc (*ResetAdminPasswordRequest) ProtoMessage
func (*ResetAdminPasswordRequest) ProtoMessage()func (*ResetAdminPasswordRequest) ProtoReflect
func (x *ResetAdminPasswordRequest) ProtoReflect() protoreflect.Messagefunc (*ResetAdminPasswordRequest) Reset
func (x *ResetAdminPasswordRequest) Reset()func (*ResetAdminPasswordRequest) String
func (x *ResetAdminPasswordRequest) String() stringResetAdminPasswordResponse
type ResetAdminPasswordResponse struct {
// A random password. See [admin][google.cloud.managedidentities.v1.Domain.admin] for more information.
Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
// contains filtered or unexported fields
}Response message for [ResetAdminPassword][google.cloud.managedidentities.v1.ResetAdminPassword]
func (*ResetAdminPasswordResponse) Descriptor
func (*ResetAdminPasswordResponse) Descriptor() ([]byte, []int)Deprecated: Use ResetAdminPasswordResponse.ProtoReflect.Descriptor instead.
func (*ResetAdminPasswordResponse) GetPassword
func (x *ResetAdminPasswordResponse) GetPassword() stringfunc (*ResetAdminPasswordResponse) ProtoMessage
func (*ResetAdminPasswordResponse) ProtoMessage()func (*ResetAdminPasswordResponse) ProtoReflect
func (x *ResetAdminPasswordResponse) ProtoReflect() protoreflect.Messagefunc (*ResetAdminPasswordResponse) Reset
func (x *ResetAdminPasswordResponse) Reset()func (*ResetAdminPasswordResponse) String
func (x *ResetAdminPasswordResponse) String() stringTrust
type Trust struct {
// Required. The fully qualified target domain name which will be in trust with the
// current domain.
TargetDomainName string `protobuf:"bytes,1,opt,name=target_domain_name,json=targetDomainName,proto3" json:"target_domain_name,omitempty"`
// Required. The type of trust represented by the trust resource.
TrustType Trust_TrustType `protobuf:"varint,2,opt,name=trust_type,json=trustType,proto3,enum=google.cloud.managedidentities.v1.Trust_TrustType" json:"trust_type,omitempty"`
// Required. The trust direction, which decides if the current domain is trusted,
// trusting, or both.
TrustDirection Trust_TrustDirection `protobuf:"varint,3,opt,name=trust_direction,json=trustDirection,proto3,enum=google.cloud.managedidentities.v1.Trust_TrustDirection" json:"trust_direction,omitempty"`
// Optional. The trust authentication type, which decides whether the trusted side has
// forest/domain wide access or selective access to an approved set of
// resources.
SelectiveAuthentication bool `protobuf:"varint,4,opt,name=selective_authentication,json=selectiveAuthentication,proto3" json:"selective_authentication,omitempty"`
// Required. The target DNS server IP addresses which can resolve the remote domain
// involved in the trust.
TargetDnsIpAddresses []string `protobuf:"bytes,5,rep,name=target_dns_ip_addresses,json=targetDnsIpAddresses,proto3" json:"target_dns_ip_addresses,omitempty"`
// Required. The trust secret used for the handshake with the target domain. This will
// not be stored.
TrustHandshakeSecret string `protobuf:"bytes,6,opt,name=trust_handshake_secret,json=trustHandshakeSecret,proto3" json:"trust_handshake_secret,omitempty"`
// Output only. The time the instance was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The last update time.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. The current state of the trust.
State Trust_State `protobuf:"varint,9,opt,name=state,proto3,enum=google.cloud.managedidentities.v1.Trust_State" json:"state,omitempty"`
// Output only. Additional information about the current state of the trust, if available.
StateDescription string `protobuf:"bytes,11,opt,name=state_description,json=stateDescription,proto3" json:"state_description,omitempty"`
// Output only. The last heartbeat time when the trust was known to be connected.
LastTrustHeartbeatTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=last_trust_heartbeat_time,json=lastTrustHeartbeatTime,proto3" json:"last_trust_heartbeat_time,omitempty"`
// contains filtered or unexported fields
}Represents a relationship between two domains. This allows a controller in one domain to authenticate a user in another domain.
func (*Trust) Descriptor
Deprecated: Use Trust.ProtoReflect.Descriptor instead.
func (*Trust) GetCreateTime
func (x *Trust) GetCreateTime() *timestamppb.Timestampfunc (*Trust) GetLastTrustHeartbeatTime
func (x *Trust) GetLastTrustHeartbeatTime() *timestamppb.Timestampfunc (*Trust) GetSelectiveAuthentication
func (*Trust) GetState
func (x *Trust) GetState() Trust_Statefunc (*Trust) GetStateDescription
func (*Trust) GetTargetDnsIpAddresses
func (*Trust) GetTargetDomainName
func (*Trust) GetTrustDirection
func (x *Trust) GetTrustDirection() Trust_TrustDirectionfunc (*Trust) GetTrustHandshakeSecret
func (*Trust) GetTrustType
func (x *Trust) GetTrustType() Trust_TrustTypefunc (*Trust) GetUpdateTime
func (x *Trust) GetUpdateTime() *timestamppb.Timestampfunc (*Trust) ProtoMessage
func (*Trust) ProtoMessage()func (*Trust) ProtoReflect
func (x *Trust) ProtoReflect() protoreflect.Messagefunc (*Trust) Reset
func (x *Trust) Reset()func (*Trust) String
Trust_State
type Trust_State int32Represents the different states of a domain trust.
Trust_STATE_UNSPECIFIED, Trust_CREATING, Trust_UPDATING, Trust_DELETING, Trust_CONNECTED, Trust_DISCONNECTED
const (
// Not set.
Trust_STATE_UNSPECIFIED Trust_State = 0
// The domain trust is being created.
Trust_CREATING Trust_State = 1
// The domain trust is being updated.
Trust_UPDATING Trust_State = 2
// The domain trust is being deleted.
Trust_DELETING Trust_State = 3
// The domain trust is connected.
Trust_CONNECTED Trust_State = 4
// The domain trust is disconnected.
Trust_DISCONNECTED Trust_State = 5
)func (Trust_State) Descriptor
func (Trust_State) Descriptor() protoreflect.EnumDescriptorfunc (Trust_State) Enum
func (x Trust_State) Enum() *Trust_Statefunc (Trust_State) EnumDescriptor
func (Trust_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Trust_State.Descriptor instead.
func (Trust_State) Number
func (x Trust_State) Number() protoreflect.EnumNumberfunc (Trust_State) String
func (x Trust_State) String() stringfunc (Trust_State) Type
func (Trust_State) Type() protoreflect.EnumTypeTrust_TrustDirection
type Trust_TrustDirection int32Represents the direction of trust. See System.DirectoryServices.ActiveDirectory.TrustDirection for more information.
Trust_TRUST_DIRECTION_UNSPECIFIED, Trust_INBOUND, Trust_OUTBOUND, Trust_BIDIRECTIONAL
const (
// Not set.
Trust_TRUST_DIRECTION_UNSPECIFIED Trust_TrustDirection = 0
// The inbound direction represents the trusting side.
Trust_INBOUND Trust_TrustDirection = 1
// The outboud direction represents the trusted side.
Trust_OUTBOUND Trust_TrustDirection = 2
// The bidirectional direction represents the trusted / trusting side.
Trust_BIDIRECTIONAL Trust_TrustDirection = 3
)func (Trust_TrustDirection) Descriptor
func (Trust_TrustDirection) Descriptor() protoreflect.EnumDescriptorfunc (Trust_TrustDirection) Enum
func (x Trust_TrustDirection) Enum() *Trust_TrustDirectionfunc (Trust_TrustDirection) EnumDescriptor
func (Trust_TrustDirection) EnumDescriptor() ([]byte, []int)Deprecated: Use Trust_TrustDirection.Descriptor instead.
func (Trust_TrustDirection) Number
func (x Trust_TrustDirection) Number() protoreflect.EnumNumberfunc (Trust_TrustDirection) String
func (x Trust_TrustDirection) String() stringfunc (Trust_TrustDirection) Type
func (Trust_TrustDirection) Type() protoreflect.EnumTypeTrust_TrustType
type Trust_TrustType int32Represents the different inter-forest trust types.
Trust_TRUST_TYPE_UNSPECIFIED, Trust_FOREST, Trust_EXTERNAL
const (
// Not set.
Trust_TRUST_TYPE_UNSPECIFIED Trust_TrustType = 0
// The forest trust.
Trust_FOREST Trust_TrustType = 1
// The external domain trust.
Trust_EXTERNAL Trust_TrustType = 2
)func (Trust_TrustType) Descriptor
func (Trust_TrustType) Descriptor() protoreflect.EnumDescriptorfunc (Trust_TrustType) Enum
func (x Trust_TrustType) Enum() *Trust_TrustTypefunc (Trust_TrustType) EnumDescriptor
func (Trust_TrustType) EnumDescriptor() ([]byte, []int)Deprecated: Use Trust_TrustType.Descriptor instead.
func (Trust_TrustType) Number
func (x Trust_TrustType) Number() protoreflect.EnumNumberfunc (Trust_TrustType) String
func (x Trust_TrustType) String() stringfunc (Trust_TrustType) Type
func (Trust_TrustType) Type() protoreflect.EnumTypeUnimplementedManagedIdentitiesServiceServer
type UnimplementedManagedIdentitiesServiceServer struct {
}UnimplementedManagedIdentitiesServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedManagedIdentitiesServiceServer) AttachTrust
func (UnimplementedManagedIdentitiesServiceServer) AttachTrust(context.Context, *AttachTrustRequest) (*longrunningpb.Operation, error)func (UnimplementedManagedIdentitiesServiceServer) CreateMicrosoftAdDomain
func (UnimplementedManagedIdentitiesServiceServer) CreateMicrosoftAdDomain(context.Context, *CreateMicrosoftAdDomainRequest) (*longrunningpb.Operation, error)func (UnimplementedManagedIdentitiesServiceServer) DeleteDomain
func (UnimplementedManagedIdentitiesServiceServer) DeleteDomain(context.Context, *DeleteDomainRequest) (*longrunningpb.Operation, error)func (UnimplementedManagedIdentitiesServiceServer) DetachTrust
func (UnimplementedManagedIdentitiesServiceServer) DetachTrust(context.Context, *DetachTrustRequest) (*longrunningpb.Operation, error)func (UnimplementedManagedIdentitiesServiceServer) GetDomain
func (UnimplementedManagedIdentitiesServiceServer) GetDomain(context.Context, *GetDomainRequest) (*Domain, error)func (UnimplementedManagedIdentitiesServiceServer) ListDomains
func (UnimplementedManagedIdentitiesServiceServer) ListDomains(context.Context, *ListDomainsRequest) (*ListDomainsResponse, error)func (UnimplementedManagedIdentitiesServiceServer) ReconfigureTrust
func (UnimplementedManagedIdentitiesServiceServer) ReconfigureTrust(context.Context, *ReconfigureTrustRequest) (*longrunningpb.Operation, error)func (UnimplementedManagedIdentitiesServiceServer) ResetAdminPassword
func (UnimplementedManagedIdentitiesServiceServer) ResetAdminPassword(context.Context, *ResetAdminPasswordRequest) (*ResetAdminPasswordResponse, error)func (UnimplementedManagedIdentitiesServiceServer) UpdateDomain
func (UnimplementedManagedIdentitiesServiceServer) UpdateDomain(context.Context, *UpdateDomainRequest) (*longrunningpb.Operation, error)func (UnimplementedManagedIdentitiesServiceServer) ValidateTrust
func (UnimplementedManagedIdentitiesServiceServer) ValidateTrust(context.Context, *ValidateTrustRequest) (*longrunningpb.Operation, error)UnsafeManagedIdentitiesServiceServer
type UnsafeManagedIdentitiesServiceServer interface {
// contains filtered or unexported methods
}UnsafeManagedIdentitiesServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ManagedIdentitiesServiceServer will result in compilation errors.
UpdateDomainRequest
type UpdateDomainRequest struct {
// Required. Mask of fields to update. At least one path must be supplied in this
// field. The elements of the repeated paths field may only include
// fields from [Domain][google.cloud.managedidentities.v1.Domain]:
// - `labels`
// - `locations`
// - `authorized_networks`
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Required. Domain message with updated fields. Only supported fields specified in
// update_mask are updated.
Domain *Domain `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
// contains filtered or unexported fields
}Request message for [UpdateDomain][google.cloud.managedidentities.v1.UpdateDomain]
func (*UpdateDomainRequest) Descriptor
func (*UpdateDomainRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateDomainRequest.ProtoReflect.Descriptor instead.
func (*UpdateDomainRequest) GetDomain
func (x *UpdateDomainRequest) GetDomain() *Domainfunc (*UpdateDomainRequest) GetUpdateMask
func (x *UpdateDomainRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateDomainRequest) ProtoMessage
func (*UpdateDomainRequest) ProtoMessage()func (*UpdateDomainRequest) ProtoReflect
func (x *UpdateDomainRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateDomainRequest) Reset
func (x *UpdateDomainRequest) Reset()func (*UpdateDomainRequest) String
func (x *UpdateDomainRequest) String() stringValidateTrustRequest
type ValidateTrustRequest struct {
// Required. The resource domain name, project name, and location using the form:
// `projects/{project_id}/locations/global/domains/{domain_name}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The domain trust to validate trust state for.
Trust *Trust `protobuf:"bytes,2,opt,name=trust,proto3" json:"trust,omitempty"`
// contains filtered or unexported fields
}Request message for [ValidateTrust][google.cloud.managedidentities.v1.ValidateTrust]
func (*ValidateTrustRequest) Descriptor
func (*ValidateTrustRequest) Descriptor() ([]byte, []int)Deprecated: Use ValidateTrustRequest.ProtoReflect.Descriptor instead.
func (*ValidateTrustRequest) GetName
func (x *ValidateTrustRequest) GetName() stringfunc (*ValidateTrustRequest) GetTrust
func (x *ValidateTrustRequest) GetTrust() *Trustfunc (*ValidateTrustRequest) ProtoMessage
func (*ValidateTrustRequest) ProtoMessage()func (*ValidateTrustRequest) ProtoReflect
func (x *ValidateTrustRequest) ProtoReflect() protoreflect.Messagefunc (*ValidateTrustRequest) Reset
func (x *ValidateTrustRequest) Reset()func (*ValidateTrustRequest) String
func (x *ValidateTrustRequest) String() string