genproto: google.golang.org/genproto/googleapis/cloud/accessapproval/v1 Index | Files

package accessapproval

import "google.golang.org/genproto/googleapis/cloud/accessapproval/v1"

Index

Package Files

accessapproval.pb.go

Variables

var (
    EnrollmentLevel_name = map[int32]string{
        0:  "ENROLLMENT_LEVEL_UNSPECIFIED",
        1:  "BLOCK_ALL",
    }
    EnrollmentLevel_value = map[string]int32{
        "ENROLLMENT_LEVEL_UNSPECIFIED": 0,
        "BLOCK_ALL":                    1,
    }
)

Enum value maps for EnrollmentLevel.

var (
    AccessReason_Type_name = map[int32]string{
        0:  "TYPE_UNSPECIFIED",
        1:  "CUSTOMER_INITIATED_SUPPORT",
        2:  "GOOGLE_INITIATED_SERVICE",
        3:  "GOOGLE_INITIATED_REVIEW",
    }
    AccessReason_Type_value = map[string]int32{
        "TYPE_UNSPECIFIED":           0,
        "CUSTOMER_INITIATED_SUPPORT": 1,
        "GOOGLE_INITIATED_SERVICE":   2,
        "GOOGLE_INITIATED_REVIEW":    3,
    }
)

Enum value maps for AccessReason_Type.

var File_google_cloud_accessapproval_v1_accessapproval_proto protoreflect.FileDescriptor

func RegisterAccessApprovalServer Uses

func RegisterAccessApprovalServer(s *grpc.Server, srv AccessApprovalServer)

type AccessApprovalClient Uses

type AccessApprovalClient interface {
    // Lists approval requests associated with a project, folder, or organization.
    // Approval requests can be filtered by state (pending, active, dismissed).
    // The order is reverse chronological.
    ListApprovalRequests(ctx context.Context, in *ListApprovalRequestsMessage, opts ...grpc.CallOption) (*ListApprovalRequestsResponse, error)
    // Gets an approval request. Returns NOT_FOUND if the request does not exist.
    GetApprovalRequest(ctx context.Context, in *GetApprovalRequestMessage, opts ...grpc.CallOption) (*ApprovalRequest, error)
    // Approves a request and returns the updated ApprovalRequest.
    //
    // Returns NOT_FOUND if the request does not exist. Returns
    // FAILED_PRECONDITION if the request exists but is not in a pending state.
    ApproveApprovalRequest(ctx context.Context, in *ApproveApprovalRequestMessage, opts ...grpc.CallOption) (*ApprovalRequest, error)
    // Dismisses a request. Returns the updated ApprovalRequest.
    //
    // NOTE: This does not deny access to the resource if another request has been
    // made and approved. It is equivalent in effect to ignoring the request
    // altogether.
    //
    // Returns NOT_FOUND if the request does not exist.
    //
    // Returns FAILED_PRECONDITION if the request exists but is not in a pending
    // state.
    DismissApprovalRequest(ctx context.Context, in *DismissApprovalRequestMessage, opts ...grpc.CallOption) (*ApprovalRequest, error)
    // Gets the settings associated with a project, folder, or organization.
    GetAccessApprovalSettings(ctx context.Context, in *GetAccessApprovalSettingsMessage, opts ...grpc.CallOption) (*AccessApprovalSettings, error)
    // Updates the settings associated with a project, folder, or organization.
    // Settings to update are determined by the value of field_mask.
    UpdateAccessApprovalSettings(ctx context.Context, in *UpdateAccessApprovalSettingsMessage, opts ...grpc.CallOption) (*AccessApprovalSettings, error)
    // Deletes the settings associated with a project, folder, or organization.
    // This will have the effect of disabling Access Approval for the project,
    // folder, or organization, but only if all ancestors also have Access
    // Approval disabled. If Access Approval is enabled at a higher level of the
    // hierarchy, then Access Approval will still be enabled at this level as
    // the settings are inherited.
    DeleteAccessApprovalSettings(ctx context.Context, in *DeleteAccessApprovalSettingsMessage, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

AccessApprovalClient is the client API for AccessApproval service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAccessApprovalClient Uses

func NewAccessApprovalClient(cc grpc.ClientConnInterface) AccessApprovalClient

type AccessApprovalServer Uses

type AccessApprovalServer interface {
    // Lists approval requests associated with a project, folder, or organization.
    // Approval requests can be filtered by state (pending, active, dismissed).
    // The order is reverse chronological.
    ListApprovalRequests(context.Context, *ListApprovalRequestsMessage) (*ListApprovalRequestsResponse, error)
    // Gets an approval request. Returns NOT_FOUND if the request does not exist.
    GetApprovalRequest(context.Context, *GetApprovalRequestMessage) (*ApprovalRequest, error)
    // Approves a request and returns the updated ApprovalRequest.
    //
    // Returns NOT_FOUND if the request does not exist. Returns
    // FAILED_PRECONDITION if the request exists but is not in a pending state.
    ApproveApprovalRequest(context.Context, *ApproveApprovalRequestMessage) (*ApprovalRequest, error)
    // Dismisses a request. Returns the updated ApprovalRequest.
    //
    // NOTE: This does not deny access to the resource if another request has been
    // made and approved. It is equivalent in effect to ignoring the request
    // altogether.
    //
    // Returns NOT_FOUND if the request does not exist.
    //
    // Returns FAILED_PRECONDITION if the request exists but is not in a pending
    // state.
    DismissApprovalRequest(context.Context, *DismissApprovalRequestMessage) (*ApprovalRequest, error)
    // Gets the settings associated with a project, folder, or organization.
    GetAccessApprovalSettings(context.Context, *GetAccessApprovalSettingsMessage) (*AccessApprovalSettings, error)
    // Updates the settings associated with a project, folder, or organization.
    // Settings to update are determined by the value of field_mask.
    UpdateAccessApprovalSettings(context.Context, *UpdateAccessApprovalSettingsMessage) (*AccessApprovalSettings, error)
    // Deletes the settings associated with a project, folder, or organization.
    // This will have the effect of disabling Access Approval for the project,
    // folder, or organization, but only if all ancestors also have Access
    // Approval disabled. If Access Approval is enabled at a higher level of the
    // hierarchy, then Access Approval will still be enabled at this level as
    // the settings are inherited.
    DeleteAccessApprovalSettings(context.Context, *DeleteAccessApprovalSettingsMessage) (*emptypb.Empty, error)
}

AccessApprovalServer is the server API for AccessApproval service.

type AccessApprovalSettings Uses

type AccessApprovalSettings struct {

    // The resource name of the settings. Format is one of:
    //
    // - "projects/{project_id}/accessApprovalSettings"
    // - "folders/{folder_id}/accessApprovalSettings"
    // - "organizations/{organization_id}/accessApprovalSettings"
    //
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // A list of email addresses to which notifications relating to approval
    // requests should be sent. Notifications relating to a resource will be sent
    // to all emails in the settings of ancestor resources of that resource. A
    // maximum of 50 email addresses are allowed.
    NotificationEmails []string `protobuf:"bytes,2,rep,name=notification_emails,json=notificationEmails,proto3" json:"notification_emails,omitempty"`
    // A list of Google Cloud Services for which the given resource has Access
    // Approval enrolled. Access requests for the resource given by name against
    // any of these services contained here will be required to have explicit
    // approval. If name refers to an organization, enrollment can be done for
    // individual services. If name refers to a folder or project, enrollment can
    // only be done on an all or nothing basis.
    //
    // If a cloud_product is repeated in this list, the first entry will be
    // honored and all following entries will be discarded. A maximum of 10
    // enrolled services will be enforced, to be expanded as the set of supported
    // services is expanded.
    EnrolledServices []*EnrolledService `protobuf:"bytes,3,rep,name=enrolled_services,json=enrolledServices,proto3" json:"enrolled_services,omitempty"`
    // Output only. This field is read only (not settable via
    // UpdateAccessAccessApprovalSettings method). If the field is true, that
    // indicates that at least one service is enrolled for Access Approval in one
    // or more ancestors of the Project or Folder (this field will always be
    // unset for the organization since organizations do not have ancestors).
    EnrolledAncestor bool `protobuf:"varint,4,opt,name=enrolled_ancestor,json=enrolledAncestor,proto3" json:"enrolled_ancestor,omitempty"`
    // contains filtered or unexported fields
}

Settings on a Project/Folder/Organization related to Access Approval.

func (*AccessApprovalSettings) Descriptor Uses

func (*AccessApprovalSettings) Descriptor() ([]byte, []int)

Deprecated: Use AccessApprovalSettings.ProtoReflect.Descriptor instead.

func (*AccessApprovalSettings) GetEnrolledAncestor Uses

func (x *AccessApprovalSettings) GetEnrolledAncestor() bool

func (*AccessApprovalSettings) GetEnrolledServices Uses

func (x *AccessApprovalSettings) GetEnrolledServices() []*EnrolledService

func (*AccessApprovalSettings) GetName Uses

func (x *AccessApprovalSettings) GetName() string

func (*AccessApprovalSettings) GetNotificationEmails Uses

func (x *AccessApprovalSettings) GetNotificationEmails() []string

func (*AccessApprovalSettings) ProtoMessage Uses

func (*AccessApprovalSettings) ProtoMessage()

func (*AccessApprovalSettings) ProtoReflect Uses

func (x *AccessApprovalSettings) ProtoReflect() protoreflect.Message

func (*AccessApprovalSettings) Reset Uses

func (x *AccessApprovalSettings) Reset()

func (*AccessApprovalSettings) String Uses

func (x *AccessApprovalSettings) String() string

type AccessLocations Uses

type AccessLocations struct {

    // The "home office" location of the principal. A two-letter country code
    // (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
    // limited situations Google systems may refer refer to a region code instead
    // of a country code.
    // Possible Region Codes:
    //
    // - ASI: Asia
    // - EUR: Europe
    // - OCE: Oceania
    // - AFR: Africa
    // - NAM: North America
    // - SAM: South America
    // - ANT: Antarctica
    // - ANY: Any location
    //
    PrincipalOfficeCountry string `protobuf:"bytes,1,opt,name=principal_office_country,json=principalOfficeCountry,proto3" json:"principal_office_country,omitempty"`
    // Physical location of the principal at the time of the access. A
    // two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
    // a region code. In some limited situations Google systems may refer refer to
    // a region code instead of a country code.
    // Possible Region Codes:
    //
    // - ASI: Asia
    // - EUR: Europe
    // - OCE: Oceania
    // - AFR: Africa
    // - NAM: North America
    // - SAM: South America
    // - ANT: Antarctica
    // - ANY: Any location
    //
    PrincipalPhysicalLocationCountry string `protobuf:"bytes,2,opt,name=principal_physical_location_country,json=principalPhysicalLocationCountry,proto3" json:"principal_physical_location_country,omitempty"`
    // contains filtered or unexported fields
}

Home office and physical location of the principal.

func (*AccessLocations) Descriptor Uses

func (*AccessLocations) Descriptor() ([]byte, []int)

Deprecated: Use AccessLocations.ProtoReflect.Descriptor instead.

func (*AccessLocations) GetPrincipalOfficeCountry Uses

func (x *AccessLocations) GetPrincipalOfficeCountry() string

func (*AccessLocations) GetPrincipalPhysicalLocationCountry Uses

func (x *AccessLocations) GetPrincipalPhysicalLocationCountry() string

func (*AccessLocations) ProtoMessage Uses

func (*AccessLocations) ProtoMessage()

func (*AccessLocations) ProtoReflect Uses

func (x *AccessLocations) ProtoReflect() protoreflect.Message

func (*AccessLocations) Reset Uses

func (x *AccessLocations) Reset()

func (*AccessLocations) String Uses

func (x *AccessLocations) String() string

type AccessReason Uses

type AccessReason struct {

    // Type of access justification.
    Type AccessReason_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.accessapproval.v1.AccessReason_Type" json:"type,omitempty"`
    // More detail about certain reason types. See comments for each type above.
    Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"`
    // contains filtered or unexported fields
}

func (*AccessReason) Descriptor Uses

func (*AccessReason) Descriptor() ([]byte, []int)

Deprecated: Use AccessReason.ProtoReflect.Descriptor instead.

func (*AccessReason) GetDetail Uses

func (x *AccessReason) GetDetail() string

func (*AccessReason) GetType Uses

func (x *AccessReason) GetType() AccessReason_Type

func (*AccessReason) ProtoMessage Uses

func (*AccessReason) ProtoMessage()

func (*AccessReason) ProtoReflect Uses

func (x *AccessReason) ProtoReflect() protoreflect.Message

func (*AccessReason) Reset Uses

func (x *AccessReason) Reset()

func (*AccessReason) String Uses

func (x *AccessReason) String() string

type AccessReason_Type Uses

type AccessReason_Type int32

Type of access justification.

const (
    // Default value for proto, shouldn't be used.
    AccessReason_TYPE_UNSPECIFIED AccessReason_Type = 0
    // Customer made a request or raised an issue that required the principal to
    // access customer data. `detail` is of the form ("#####" is the issue ID):
    //
    // - "Feedback Report: #####"
    // - "Case Number: #####"
    // - "Case ID: #####"
    // - "E-PIN Reference: #####"
    // - "Google-#####"
    // - "T-#####"
    //
    AccessReason_CUSTOMER_INITIATED_SUPPORT AccessReason_Type = 1
    // The principal accessed customer data in order to diagnose or resolve a
    // suspected issue in services or a known outage. Often this access is used
    // to confirm that customers are not affected by a suspected service issue
    // or to remediate a reversible system issue.
    AccessReason_GOOGLE_INITIATED_SERVICE AccessReason_Type = 2
    // Google initiated service for security, fraud, abuse, or compliance
    // purposes.
    AccessReason_GOOGLE_INITIATED_REVIEW AccessReason_Type = 3
)

func (AccessReason_Type) Descriptor Uses

func (AccessReason_Type) Descriptor() protoreflect.EnumDescriptor

func (AccessReason_Type) Enum Uses

func (x AccessReason_Type) Enum() *AccessReason_Type

func (AccessReason_Type) EnumDescriptor Uses

func (AccessReason_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use AccessReason_Type.Descriptor instead.

func (AccessReason_Type) Number Uses

func (x AccessReason_Type) Number() protoreflect.EnumNumber

func (AccessReason_Type) String Uses

func (x AccessReason_Type) String() string

func (AccessReason_Type) Type Uses

func (AccessReason_Type) Type() protoreflect.EnumType

type ApprovalRequest Uses

type ApprovalRequest struct {

    // The resource name of the request. Format is
    // "{projects|folders|organizations}/{id}/approvalRequests/{approval_request_id}".
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The resource for which approval is being requested. The format of the
    // resource name is defined at
    // https://cloud.google.com/apis/design/resource_names. The resource name here
    // may either be a "full" resource name (e.g.
    // "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative"
    // resource name (e.g. "shelves/shelf1/books/book2") as described in the
    // resource name specification.
    RequestedResourceName string `protobuf:"bytes,2,opt,name=requested_resource_name,json=requestedResourceName,proto3" json:"requested_resource_name,omitempty"`
    // Properties related to the resource represented by requested_resource_name.
    RequestedResourceProperties *ResourceProperties `protobuf:"bytes,9,opt,name=requested_resource_properties,json=requestedResourceProperties,proto3" json:"requested_resource_properties,omitempty"`
    // The justification for which approval is being requested.
    RequestedReason *AccessReason `protobuf:"bytes,3,opt,name=requested_reason,json=requestedReason,proto3" json:"requested_reason,omitempty"`
    // The locations for which approval is being requested.
    RequestedLocations *AccessLocations `protobuf:"bytes,4,opt,name=requested_locations,json=requestedLocations,proto3" json:"requested_locations,omitempty"`
    // The time at which approval was requested.
    RequestTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=request_time,json=requestTime,proto3" json:"request_time,omitempty"`
    // The requested expiration for the approval. If the request is approved,
    // access will be granted from the time of approval until the expiration time.
    RequestedExpiration *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=requested_expiration,json=requestedExpiration,proto3" json:"requested_expiration,omitempty"`
    // The current decision on the approval request.
    //
    // Types that are assignable to Decision:
    //	*ApprovalRequest_Approve
    //	*ApprovalRequest_Dismiss
    Decision isApprovalRequest_Decision `protobuf_oneof:"decision"`
    // contains filtered or unexported fields
}

A request for the customer to approve access to a resource.

func (*ApprovalRequest) Descriptor Uses

func (*ApprovalRequest) Descriptor() ([]byte, []int)

Deprecated: Use ApprovalRequest.ProtoReflect.Descriptor instead.

func (*ApprovalRequest) GetApprove Uses

func (x *ApprovalRequest) GetApprove() *ApproveDecision

func (*ApprovalRequest) GetDecision Uses

func (m *ApprovalRequest) GetDecision() isApprovalRequest_Decision

func (*ApprovalRequest) GetDismiss Uses

func (x *ApprovalRequest) GetDismiss() *DismissDecision

func (*ApprovalRequest) GetName Uses

func (x *ApprovalRequest) GetName() string

func (*ApprovalRequest) GetRequestTime Uses

func (x *ApprovalRequest) GetRequestTime() *timestamppb.Timestamp

func (*ApprovalRequest) GetRequestedExpiration Uses

func (x *ApprovalRequest) GetRequestedExpiration() *timestamppb.Timestamp

func (*ApprovalRequest) GetRequestedLocations Uses

func (x *ApprovalRequest) GetRequestedLocations() *AccessLocations

func (*ApprovalRequest) GetRequestedReason Uses

func (x *ApprovalRequest) GetRequestedReason() *AccessReason

func (*ApprovalRequest) GetRequestedResourceName Uses

func (x *ApprovalRequest) GetRequestedResourceName() string

func (*ApprovalRequest) GetRequestedResourceProperties Uses

func (x *ApprovalRequest) GetRequestedResourceProperties() *ResourceProperties

func (*ApprovalRequest) ProtoMessage Uses

func (*ApprovalRequest) ProtoMessage()

func (*ApprovalRequest) ProtoReflect Uses

func (x *ApprovalRequest) ProtoReflect() protoreflect.Message

func (*ApprovalRequest) Reset Uses

func (x *ApprovalRequest) Reset()

func (*ApprovalRequest) String Uses

func (x *ApprovalRequest) String() string

type ApprovalRequest_Approve Uses

type ApprovalRequest_Approve struct {
    // Access was approved.
    Approve *ApproveDecision `protobuf:"bytes,7,opt,name=approve,proto3,oneof"`
}

type ApprovalRequest_Dismiss Uses

type ApprovalRequest_Dismiss struct {
    // The request was dismissed.
    Dismiss *DismissDecision `protobuf:"bytes,8,opt,name=dismiss,proto3,oneof"`
}

type ApproveApprovalRequestMessage Uses

type ApproveApprovalRequestMessage struct {

    // Name of the approval request to approve.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The expiration time of this approval.
    ExpireTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
    // contains filtered or unexported fields
}

Request to approve an ApprovalRequest.

func (*ApproveApprovalRequestMessage) Descriptor Uses

func (*ApproveApprovalRequestMessage) Descriptor() ([]byte, []int)

Deprecated: Use ApproveApprovalRequestMessage.ProtoReflect.Descriptor instead.

func (*ApproveApprovalRequestMessage) GetExpireTime Uses

func (x *ApproveApprovalRequestMessage) GetExpireTime() *timestamppb.Timestamp

func (*ApproveApprovalRequestMessage) GetName Uses

func (x *ApproveApprovalRequestMessage) GetName() string

func (*ApproveApprovalRequestMessage) ProtoMessage Uses

func (*ApproveApprovalRequestMessage) ProtoMessage()

func (*ApproveApprovalRequestMessage) ProtoReflect Uses

func (x *ApproveApprovalRequestMessage) ProtoReflect() protoreflect.Message

func (*ApproveApprovalRequestMessage) Reset Uses

func (x *ApproveApprovalRequestMessage) Reset()

func (*ApproveApprovalRequestMessage) String Uses

func (x *ApproveApprovalRequestMessage) String() string

type ApproveDecision Uses

type ApproveDecision struct {

    // The time at which approval was granted.
    ApproveTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=approve_time,json=approveTime,proto3" json:"approve_time,omitempty"`
    // The time at which the approval expires.
    ExpireTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
    // contains filtered or unexported fields
}

A decision that has been made to approve access to a resource.

func (*ApproveDecision) Descriptor Uses

func (*ApproveDecision) Descriptor() ([]byte, []int)

Deprecated: Use ApproveDecision.ProtoReflect.Descriptor instead.

func (*ApproveDecision) GetApproveTime Uses

func (x *ApproveDecision) GetApproveTime() *timestamppb.Timestamp

func (*ApproveDecision) GetExpireTime Uses

func (x *ApproveDecision) GetExpireTime() *timestamppb.Timestamp

func (*ApproveDecision) ProtoMessage Uses

func (*ApproveDecision) ProtoMessage()

func (*ApproveDecision) ProtoReflect Uses

func (x *ApproveDecision) ProtoReflect() protoreflect.Message

func (*ApproveDecision) Reset Uses

func (x *ApproveDecision) Reset()

func (*ApproveDecision) String Uses

func (x *ApproveDecision) String() string

type DeleteAccessApprovalSettingsMessage Uses

type DeleteAccessApprovalSettingsMessage struct {

    // Name of the AccessApprovalSettings to delete.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

Request to delete access approval settings.

func (*DeleteAccessApprovalSettingsMessage) Descriptor Uses

func (*DeleteAccessApprovalSettingsMessage) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAccessApprovalSettingsMessage.ProtoReflect.Descriptor instead.

func (*DeleteAccessApprovalSettingsMessage) GetName Uses

func (x *DeleteAccessApprovalSettingsMessage) GetName() string

func (*DeleteAccessApprovalSettingsMessage) ProtoMessage Uses

func (*DeleteAccessApprovalSettingsMessage) ProtoMessage()

func (*DeleteAccessApprovalSettingsMessage) ProtoReflect Uses

func (x *DeleteAccessApprovalSettingsMessage) ProtoReflect() protoreflect.Message

func (*DeleteAccessApprovalSettingsMessage) Reset Uses

func (x *DeleteAccessApprovalSettingsMessage) Reset()

func (*DeleteAccessApprovalSettingsMessage) String Uses

func (x *DeleteAccessApprovalSettingsMessage) String() string

type DismissApprovalRequestMessage Uses

type DismissApprovalRequestMessage struct {

    // Name of the ApprovalRequest to dismiss.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

Request to dismiss an approval request.

func (*DismissApprovalRequestMessage) Descriptor Uses

func (*DismissApprovalRequestMessage) Descriptor() ([]byte, []int)

Deprecated: Use DismissApprovalRequestMessage.ProtoReflect.Descriptor instead.

func (*DismissApprovalRequestMessage) GetName Uses

func (x *DismissApprovalRequestMessage) GetName() string

func (*DismissApprovalRequestMessage) ProtoMessage Uses

func (*DismissApprovalRequestMessage) ProtoMessage()

func (*DismissApprovalRequestMessage) ProtoReflect Uses

func (x *DismissApprovalRequestMessage) ProtoReflect() protoreflect.Message

func (*DismissApprovalRequestMessage) Reset Uses

func (x *DismissApprovalRequestMessage) Reset()

func (*DismissApprovalRequestMessage) String Uses

func (x *DismissApprovalRequestMessage) String() string

type DismissDecision Uses

type DismissDecision struct {

    // The time at which the approval request was dismissed.
    DismissTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=dismiss_time,json=dismissTime,proto3" json:"dismiss_time,omitempty"`
    // contains filtered or unexported fields
}

A decision that has been made to dismiss an approval request.

func (*DismissDecision) Descriptor Uses

func (*DismissDecision) Descriptor() ([]byte, []int)

Deprecated: Use DismissDecision.ProtoReflect.Descriptor instead.

func (*DismissDecision) GetDismissTime Uses

func (x *DismissDecision) GetDismissTime() *timestamppb.Timestamp

func (*DismissDecision) ProtoMessage Uses

func (*DismissDecision) ProtoMessage()

func (*DismissDecision) ProtoReflect Uses

func (x *DismissDecision) ProtoReflect() protoreflect.Message

func (*DismissDecision) Reset Uses

func (x *DismissDecision) Reset()

func (*DismissDecision) String Uses

func (x *DismissDecision) String() string

type EnrolledService Uses

type EnrolledService struct {

    // The product for which Access Approval will be enrolled. Allowed values are
    // listed below (case-sensitive):
    //
    // - all
    // - appengine.googleapis.com
    // - bigquery.googleapis.com
    // - bigtable.googleapis.com
    // - cloudkms.googleapis.com
    // - compute.googleapis.com
    // - dataflow.googleapis.com
    // - iam.googleapis.com
    // - pubsub.googleapis.com
    // - storage.googleapis.com
    //
    CloudProduct string `protobuf:"bytes,1,opt,name=cloud_product,json=cloudProduct,proto3" json:"cloud_product,omitempty"`
    // The enrollment level of the service.
    EnrollmentLevel EnrollmentLevel `protobuf:"varint,2,opt,name=enrollment_level,json=enrollmentLevel,proto3,enum=google.cloud.accessapproval.v1.EnrollmentLevel" json:"enrollment_level,omitempty"`
    // contains filtered or unexported fields
}

Represents the enrollment of a cloud resource into a specific service.

func (*EnrolledService) Descriptor Uses

func (*EnrolledService) Descriptor() ([]byte, []int)

Deprecated: Use EnrolledService.ProtoReflect.Descriptor instead.

func (*EnrolledService) GetCloudProduct Uses

func (x *EnrolledService) GetCloudProduct() string

func (*EnrolledService) GetEnrollmentLevel Uses

func (x *EnrolledService) GetEnrollmentLevel() EnrollmentLevel

func (*EnrolledService) ProtoMessage Uses

func (*EnrolledService) ProtoMessage()

func (*EnrolledService) ProtoReflect Uses

func (x *EnrolledService) ProtoReflect() protoreflect.Message

func (*EnrolledService) Reset Uses

func (x *EnrolledService) Reset()

func (*EnrolledService) String Uses

func (x *EnrolledService) String() string

type EnrollmentLevel Uses

type EnrollmentLevel int32

Represents the type of enrollment for a given service to Access Approval.

const (
    // Default value for proto, shouldn't be used.
    EnrollmentLevel_ENROLLMENT_LEVEL_UNSPECIFIED EnrollmentLevel = 0
    // Service is enrolled in Access Approval for all requests
    EnrollmentLevel_BLOCK_ALL EnrollmentLevel = 1
)

func (EnrollmentLevel) Descriptor Uses

func (EnrollmentLevel) Descriptor() protoreflect.EnumDescriptor

func (EnrollmentLevel) Enum Uses

func (x EnrollmentLevel) Enum() *EnrollmentLevel

func (EnrollmentLevel) EnumDescriptor Uses

func (EnrollmentLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use EnrollmentLevel.Descriptor instead.

func (EnrollmentLevel) Number Uses

func (x EnrollmentLevel) Number() protoreflect.EnumNumber

func (EnrollmentLevel) String Uses

func (x EnrollmentLevel) String() string

func (EnrollmentLevel) Type Uses

func (EnrollmentLevel) Type() protoreflect.EnumType

type GetAccessApprovalSettingsMessage Uses

type GetAccessApprovalSettingsMessage struct {

    // Name of the AccessApprovalSettings to retrieve.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

Request to get access approval settings.

func (*GetAccessApprovalSettingsMessage) Descriptor Uses

func (*GetAccessApprovalSettingsMessage) Descriptor() ([]byte, []int)

Deprecated: Use GetAccessApprovalSettingsMessage.ProtoReflect.Descriptor instead.

func (*GetAccessApprovalSettingsMessage) GetName Uses

func (x *GetAccessApprovalSettingsMessage) GetName() string

func (*GetAccessApprovalSettingsMessage) ProtoMessage Uses

func (*GetAccessApprovalSettingsMessage) ProtoMessage()

func (*GetAccessApprovalSettingsMessage) ProtoReflect Uses

func (x *GetAccessApprovalSettingsMessage) ProtoReflect() protoreflect.Message

func (*GetAccessApprovalSettingsMessage) Reset Uses

func (x *GetAccessApprovalSettingsMessage) Reset()

func (*GetAccessApprovalSettingsMessage) String Uses

func (x *GetAccessApprovalSettingsMessage) String() string

type GetApprovalRequestMessage Uses

type GetApprovalRequestMessage struct {

    // Name of the approval request to retrieve.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

Request to get an approval request.

func (*GetApprovalRequestMessage) Descriptor Uses

func (*GetApprovalRequestMessage) Descriptor() ([]byte, []int)

Deprecated: Use GetApprovalRequestMessage.ProtoReflect.Descriptor instead.

func (*GetApprovalRequestMessage) GetName Uses

func (x *GetApprovalRequestMessage) GetName() string

func (*GetApprovalRequestMessage) ProtoMessage Uses

func (*GetApprovalRequestMessage) ProtoMessage()

func (*GetApprovalRequestMessage) ProtoReflect Uses

func (x *GetApprovalRequestMessage) ProtoReflect() protoreflect.Message

func (*GetApprovalRequestMessage) Reset Uses

func (x *GetApprovalRequestMessage) Reset()

func (*GetApprovalRequestMessage) String Uses

func (x *GetApprovalRequestMessage) String() string

type ListApprovalRequestsMessage Uses

type ListApprovalRequestsMessage struct {

    // The parent resource. This may be "projects/{project_id}",
    // "folders/{folder_id}", or "organizations/{organization_id}".
    Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    // A filter on the type of approval requests to retrieve. Must be one of the
    // following values:
    //
    // - [not set]: Requests that are pending or have active approvals.
    // - ALL: All requests.
    // - PENDING: Only pending requests.
    // - ACTIVE: Only active (i.e. currently approved) requests.
    // - DISMISSED: Only dismissed (including expired) requests.
    //
    Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
    // Requested page size.
    PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    // A token identifying the page of results to return.
    PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    // contains filtered or unexported fields
}

Request to list approval requests.

func (*ListApprovalRequestsMessage) Descriptor Uses

func (*ListApprovalRequestsMessage) Descriptor() ([]byte, []int)

Deprecated: Use ListApprovalRequestsMessage.ProtoReflect.Descriptor instead.

func (*ListApprovalRequestsMessage) GetFilter Uses

func (x *ListApprovalRequestsMessage) GetFilter() string

func (*ListApprovalRequestsMessage) GetPageSize Uses

func (x *ListApprovalRequestsMessage) GetPageSize() int32

func (*ListApprovalRequestsMessage) GetPageToken Uses

func (x *ListApprovalRequestsMessage) GetPageToken() string

func (*ListApprovalRequestsMessage) GetParent Uses

func (x *ListApprovalRequestsMessage) GetParent() string

func (*ListApprovalRequestsMessage) ProtoMessage Uses

func (*ListApprovalRequestsMessage) ProtoMessage()

func (*ListApprovalRequestsMessage) ProtoReflect Uses

func (x *ListApprovalRequestsMessage) ProtoReflect() protoreflect.Message

func (*ListApprovalRequestsMessage) Reset Uses

func (x *ListApprovalRequestsMessage) Reset()

func (*ListApprovalRequestsMessage) String Uses

func (x *ListApprovalRequestsMessage) String() string

type ListApprovalRequestsResponse Uses

type ListApprovalRequestsResponse struct {

    // Approval request details.
    ApprovalRequests []*ApprovalRequest `protobuf:"bytes,1,rep,name=approval_requests,json=approvalRequests,proto3" json:"approval_requests,omitempty"`
    // Token to retrieve the next page of results, or empty if there are no more.
    NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
    // contains filtered or unexported fields
}

Response to listing of ApprovalRequest objects.

func (*ListApprovalRequestsResponse) Descriptor Uses

func (*ListApprovalRequestsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListApprovalRequestsResponse.ProtoReflect.Descriptor instead.

func (*ListApprovalRequestsResponse) GetApprovalRequests Uses

func (x *ListApprovalRequestsResponse) GetApprovalRequests() []*ApprovalRequest

func (*ListApprovalRequestsResponse) GetNextPageToken Uses

func (x *ListApprovalRequestsResponse) GetNextPageToken() string

func (*ListApprovalRequestsResponse) ProtoMessage Uses

func (*ListApprovalRequestsResponse) ProtoMessage()

func (*ListApprovalRequestsResponse) ProtoReflect Uses

func (x *ListApprovalRequestsResponse) ProtoReflect() protoreflect.Message

func (*ListApprovalRequestsResponse) Reset Uses

func (x *ListApprovalRequestsResponse) Reset()

func (*ListApprovalRequestsResponse) String Uses

func (x *ListApprovalRequestsResponse) String() string

type ResourceProperties Uses

type ResourceProperties struct {

    // Whether an approval will exclude the descendants of the resource being
    // requested.
    ExcludesDescendants bool `protobuf:"varint,1,opt,name=excludes_descendants,json=excludesDescendants,proto3" json:"excludes_descendants,omitempty"`
    // contains filtered or unexported fields
}

The properties associated with the resource of the request.

func (*ResourceProperties) Descriptor Uses

func (*ResourceProperties) Descriptor() ([]byte, []int)

Deprecated: Use ResourceProperties.ProtoReflect.Descriptor instead.

func (*ResourceProperties) GetExcludesDescendants Uses

func (x *ResourceProperties) GetExcludesDescendants() bool

func (*ResourceProperties) ProtoMessage Uses

func (*ResourceProperties) ProtoMessage()

func (*ResourceProperties) ProtoReflect Uses

func (x *ResourceProperties) ProtoReflect() protoreflect.Message

func (*ResourceProperties) Reset Uses

func (x *ResourceProperties) Reset()

func (*ResourceProperties) String Uses

func (x *ResourceProperties) String() string

type UnimplementedAccessApprovalServer Uses

type UnimplementedAccessApprovalServer struct {
}

UnimplementedAccessApprovalServer can be embedded to have forward compatible implementations.

func (*UnimplementedAccessApprovalServer) ApproveApprovalRequest Uses

func (*UnimplementedAccessApprovalServer) ApproveApprovalRequest(context.Context, *ApproveApprovalRequestMessage) (*ApprovalRequest, error)

func (*UnimplementedAccessApprovalServer) DeleteAccessApprovalSettings Uses

func (*UnimplementedAccessApprovalServer) DeleteAccessApprovalSettings(context.Context, *DeleteAccessApprovalSettingsMessage) (*emptypb.Empty, error)

func (*UnimplementedAccessApprovalServer) DismissApprovalRequest Uses

func (*UnimplementedAccessApprovalServer) DismissApprovalRequest(context.Context, *DismissApprovalRequestMessage) (*ApprovalRequest, error)

func (*UnimplementedAccessApprovalServer) GetAccessApprovalSettings Uses

func (*UnimplementedAccessApprovalServer) GetAccessApprovalSettings(context.Context, *GetAccessApprovalSettingsMessage) (*AccessApprovalSettings, error)

func (*UnimplementedAccessApprovalServer) GetApprovalRequest Uses

func (*UnimplementedAccessApprovalServer) GetApprovalRequest(context.Context, *GetApprovalRequestMessage) (*ApprovalRequest, error)

func (*UnimplementedAccessApprovalServer) ListApprovalRequests Uses

func (*UnimplementedAccessApprovalServer) ListApprovalRequests(context.Context, *ListApprovalRequestsMessage) (*ListApprovalRequestsResponse, error)

func (*UnimplementedAccessApprovalServer) UpdateAccessApprovalSettings Uses

func (*UnimplementedAccessApprovalServer) UpdateAccessApprovalSettings(context.Context, *UpdateAccessApprovalSettingsMessage) (*AccessApprovalSettings, error)

type UpdateAccessApprovalSettingsMessage Uses

type UpdateAccessApprovalSettingsMessage struct {

    // The new AccessApprovalSettings.
    Settings *AccessApprovalSettings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"`
    // The update mask applies to the settings. Only the top level fields of
    // AccessApprovalSettings (notification_emails & enrolled_services) are
    // supported. For each field, if it is included, the currently stored value
    // will be entirely overwritten with the value of the field passed in this
    // request.
    //
    // For the `FieldMask` definition, see
    // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    // If this field is left unset, only the notification_emails field will be
    // updated.
    UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
    // contains filtered or unexported fields
}

Request to update access approval settings.

func (*UpdateAccessApprovalSettingsMessage) Descriptor Uses

func (*UpdateAccessApprovalSettingsMessage) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAccessApprovalSettingsMessage.ProtoReflect.Descriptor instead.

func (*UpdateAccessApprovalSettingsMessage) GetSettings Uses

func (x *UpdateAccessApprovalSettingsMessage) GetSettings() *AccessApprovalSettings

func (*UpdateAccessApprovalSettingsMessage) GetUpdateMask Uses

func (x *UpdateAccessApprovalSettingsMessage) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateAccessApprovalSettingsMessage) ProtoMessage Uses

func (*UpdateAccessApprovalSettingsMessage) ProtoMessage()

func (*UpdateAccessApprovalSettingsMessage) ProtoReflect Uses

func (x *UpdateAccessApprovalSettingsMessage) ProtoReflect() protoreflect.Message

func (*UpdateAccessApprovalSettingsMessage) Reset Uses

func (x *UpdateAccessApprovalSettingsMessage) Reset()

func (*UpdateAccessApprovalSettingsMessage) String Uses

func (x *UpdateAccessApprovalSettingsMessage) String() string

Package accessapproval imports 13 packages (graph). Updated 2020-12-05. Refresh now. Tools for package owners.