asset

package
v0.0.0-...-6cb3ea0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_google_cloud_asset_v1p4beta1_asset_service_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_asset_v1p4beta1_assets_proto protoreflect.FileDescriptor

Functions

func RegisterAssetServiceServer

func RegisterAssetServiceServer(s *grpc.Server, srv AssetServiceServer)

Types

type AnalyzeIamPolicyRequest

type AnalyzeIamPolicyRequest struct {

	// Required. The request query.
	AnalysisQuery *IamPolicyAnalysisQuery `protobuf:"bytes,1,opt,name=analysis_query,json=analysisQuery,proto3" json:"analysis_query,omitempty"`
	// Optional. The request options.
	Options *AnalyzeIamPolicyRequest_Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

A request message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1p4beta1.AssetService.AnalyzeIamPolicy].

func (*AnalyzeIamPolicyRequest) Descriptor deprecated

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

Deprecated: Use AnalyzeIamPolicyRequest.ProtoReflect.Descriptor instead.

func (*AnalyzeIamPolicyRequest) GetAnalysisQuery

func (x *AnalyzeIamPolicyRequest) GetAnalysisQuery() *IamPolicyAnalysisQuery

func (*AnalyzeIamPolicyRequest) GetOptions

func (*AnalyzeIamPolicyRequest) ProtoMessage

func (*AnalyzeIamPolicyRequest) ProtoMessage()

func (*AnalyzeIamPolicyRequest) ProtoReflect

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

func (*AnalyzeIamPolicyRequest) Reset

func (x *AnalyzeIamPolicyRequest) Reset()

func (*AnalyzeIamPolicyRequest) String

func (x *AnalyzeIamPolicyRequest) String() string

type AnalyzeIamPolicyRequest_Options

type AnalyzeIamPolicyRequest_Options struct {

	// Optional. If true, the identities section of the result will expand any
	// Google groups appearing in an IAM policy binding.
	//
	// If [identity_selector][] is specified, the identity in the result will
	// be determined by the selector, and this flag will have no effect.
	//
	// Default is false.
	ExpandGroups bool `protobuf:"varint,1,opt,name=expand_groups,json=expandGroups,proto3" json:"expand_groups,omitempty"`
	// Optional. If true, the access section of result will expand any roles
	// appearing in IAM policy bindings to include their permissions.
	//
	// If [access_selector][] is specified, the access section of the result
	// will be determined by the selector, and this flag will have no effect.
	//
	// Default is false.
	ExpandRoles bool `protobuf:"varint,2,opt,name=expand_roles,json=expandRoles,proto3" json:"expand_roles,omitempty"`
	// Optional. If true, the resource section of the result will expand any
	// resource attached to an IAM policy to include resources lower in the
	// resource hierarchy.
	//
	// For example, if the request analyzes for which resources user A has
	// permission P, and the results include an IAM policy with P on a GCP
	// folder, the results will also include resources in that folder with
	// permission P.
	//
	// If [resource_selector][] is specified, the resource section of the result
	// will be determined by the selector, and this flag will have no effect.
	// Default is false.
	ExpandResources bool `protobuf:"varint,3,opt,name=expand_resources,json=expandResources,proto3" json:"expand_resources,omitempty"`
	// Optional. If true, the result will output resource edges, starting
	// from the policy attached resource, to any expanded resources.
	// Default is false.
	OutputResourceEdges bool `protobuf:"varint,4,opt,name=output_resource_edges,json=outputResourceEdges,proto3" json:"output_resource_edges,omitempty"`
	// Optional. If true, the result will output group identity edges, starting
	// from the binding's group members, to any expanded identities.
	// Default is false.
	OutputGroupEdges bool `protobuf:"varint,5,opt,name=output_group_edges,json=outputGroupEdges,proto3" json:"output_group_edges,omitempty"`
	// Optional. If true, the response will include access analysis from identities to
	// resources via service account impersonation. This is a very expensive
	// operation, because many derived queries will be executed. We highly
	// recommend you use ExportIamPolicyAnalysis rpc instead.
	//
	// For example, if the request analyzes for which resources user A has
	// permission P, and there's an IAM policy states user A has
	// iam.serviceAccounts.getAccessToken permission to a service account SA,
	// and there's another IAM policy states service account SA has permission P
	// to a GCP folder F, then user A potentially has access to the GCP folder
	// F. And those advanced analysis results will be included in
	// [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1p4beta1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis].
	//
	// Another example, if the request analyzes for who has
	// permission P to a GCP folder F, and there's an IAM policy states user A
	// has iam.serviceAccounts.actAs permission to a service account SA, and
	// there's another IAM policy states service account SA has permission P to
	// the GCP folder F, then user A potentially has access to the GCP folder
	// F. And those advanced analysis results will be included in
	// [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1p4beta1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis].
	//
	// Default is false.
	AnalyzeServiceAccountImpersonation bool `` /* 168-byte string literal not displayed */
	// Optional. Amount of time executable has to complete.  See JSON representation of
	// [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
	//
	// If this field is set with a value less than the RPC deadline, and the
	// execution of your query hasn't finished in the specified
	// execution timeout,  you will get a response with partial result.
	// Otherwise, your query's execution will continue until the RPC deadline.
	// If it's not finished until then, you will get a  DEADLINE_EXCEEDED error.
	//
	// Default is empty.
	ExecutionTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=execution_timeout,json=executionTimeout,proto3" json:"execution_timeout,omitempty"`
	// contains filtered or unexported fields
}

Contains request options.

func (*AnalyzeIamPolicyRequest_Options) Descriptor deprecated

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

Deprecated: Use AnalyzeIamPolicyRequest_Options.ProtoReflect.Descriptor instead.

func (*AnalyzeIamPolicyRequest_Options) GetAnalyzeServiceAccountImpersonation

func (x *AnalyzeIamPolicyRequest_Options) GetAnalyzeServiceAccountImpersonation() bool

func (*AnalyzeIamPolicyRequest_Options) GetExecutionTimeout

func (x *AnalyzeIamPolicyRequest_Options) GetExecutionTimeout() *durationpb.Duration

func (*AnalyzeIamPolicyRequest_Options) GetExpandGroups

func (x *AnalyzeIamPolicyRequest_Options) GetExpandGroups() bool

func (*AnalyzeIamPolicyRequest_Options) GetExpandResources

func (x *AnalyzeIamPolicyRequest_Options) GetExpandResources() bool

func (*AnalyzeIamPolicyRequest_Options) GetExpandRoles

func (x *AnalyzeIamPolicyRequest_Options) GetExpandRoles() bool

func (*AnalyzeIamPolicyRequest_Options) GetOutputGroupEdges

func (x *AnalyzeIamPolicyRequest_Options) GetOutputGroupEdges() bool

func (*AnalyzeIamPolicyRequest_Options) GetOutputResourceEdges

func (x *AnalyzeIamPolicyRequest_Options) GetOutputResourceEdges() bool

func (*AnalyzeIamPolicyRequest_Options) ProtoMessage

func (*AnalyzeIamPolicyRequest_Options) ProtoMessage()

func (*AnalyzeIamPolicyRequest_Options) ProtoReflect

func (*AnalyzeIamPolicyRequest_Options) Reset

func (*AnalyzeIamPolicyRequest_Options) String

type AnalyzeIamPolicyResponse

type AnalyzeIamPolicyResponse struct {

	// The main analysis that matches the original request.
	MainAnalysis *AnalyzeIamPolicyResponse_IamPolicyAnalysis `protobuf:"bytes,1,opt,name=main_analysis,json=mainAnalysis,proto3" json:"main_analysis,omitempty"`
	// The service account impersonation analysis if
	// [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
	// enabled.
	ServiceAccountImpersonationAnalysis []*AnalyzeIamPolicyResponse_IamPolicyAnalysis `` /* 170-byte string literal not displayed */
	// Represents whether all entries in the [main_analysis][google.cloud.asset.v1p4beta1.AnalyzeIamPolicyResponse.main_analysis] and
	// [service_account_impersonation_analysis][google.cloud.asset.v1p4beta1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] have been fully explored to
	// answer the query in the request.
	FullyExplored bool `protobuf:"varint,3,opt,name=fully_explored,json=fullyExplored,proto3" json:"fully_explored,omitempty"`
	// A list of non-critical errors happened during the request handling to
	// explain why `fully_explored` is false, or empty if no error happened.
	NonCriticalErrors []*IamPolicyAnalysisResult_AnalysisState `protobuf:"bytes,4,rep,name=non_critical_errors,json=nonCriticalErrors,proto3" json:"non_critical_errors,omitempty"`
	// contains filtered or unexported fields
}

A response message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1p4beta1.AssetService.AnalyzeIamPolicy].

func (*AnalyzeIamPolicyResponse) Descriptor deprecated

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

Deprecated: Use AnalyzeIamPolicyResponse.ProtoReflect.Descriptor instead.

func (*AnalyzeIamPolicyResponse) GetFullyExplored

func (x *AnalyzeIamPolicyResponse) GetFullyExplored() bool

func (*AnalyzeIamPolicyResponse) GetMainAnalysis

func (*AnalyzeIamPolicyResponse) GetNonCriticalErrors

func (*AnalyzeIamPolicyResponse) GetServiceAccountImpersonationAnalysis

func (x *AnalyzeIamPolicyResponse) GetServiceAccountImpersonationAnalysis() []*AnalyzeIamPolicyResponse_IamPolicyAnalysis

func (*AnalyzeIamPolicyResponse) ProtoMessage

func (*AnalyzeIamPolicyResponse) ProtoMessage()

func (*AnalyzeIamPolicyResponse) ProtoReflect

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

func (*AnalyzeIamPolicyResponse) Reset

func (x *AnalyzeIamPolicyResponse) Reset()

func (*AnalyzeIamPolicyResponse) String

func (x *AnalyzeIamPolicyResponse) String() string

type AnalyzeIamPolicyResponse_IamPolicyAnalysis

type AnalyzeIamPolicyResponse_IamPolicyAnalysis struct {

	// The analysis query.
	AnalysisQuery *IamPolicyAnalysisQuery `protobuf:"bytes,1,opt,name=analysis_query,json=analysisQuery,proto3" json:"analysis_query,omitempty"`
	// A list of [IamPolicyAnalysisResult][google.cloud.asset.v1p4beta1.IamPolicyAnalysisResult] that matches the analysis query, or
	// empty if no result is found.
	AnalysisResults []*IamPolicyAnalysisResult `protobuf:"bytes,2,rep,name=analysis_results,json=analysisResults,proto3" json:"analysis_results,omitempty"`
	// Represents whether all entries in the [analysis_results][google.cloud.asset.v1p4beta1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] have been
	// fully explored to answer the query.
	FullyExplored bool `protobuf:"varint,3,opt,name=fully_explored,json=fullyExplored,proto3" json:"fully_explored,omitempty"`
	// contains filtered or unexported fields
}

An analysis message to group the query and results.

func (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) Descriptor deprecated

Deprecated: Use AnalyzeIamPolicyResponse_IamPolicyAnalysis.ProtoReflect.Descriptor instead.

func (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) GetAnalysisQuery

func (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) GetAnalysisResults

func (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) GetFullyExplored

func (x *AnalyzeIamPolicyResponse_IamPolicyAnalysis) GetFullyExplored() bool

func (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) ProtoMessage

func (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) ProtoReflect

func (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) Reset

func (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) String

type AssetServiceClient

type AssetServiceClient interface {
	// Analyzes IAM policies based on the specified request. Returns
	// a list of [IamPolicyAnalysisResult][google.cloud.asset.v1p4beta1.IamPolicyAnalysisResult] matching the request.
	AnalyzeIamPolicy(ctx context.Context, in *AnalyzeIamPolicyRequest, opts ...grpc.CallOption) (*AnalyzeIamPolicyResponse, error)
	// Exports IAM policy analysis based on the specified request. This API
	// implements the [google.longrunning.Operation][google.longrunning.Operation] API allowing you to keep
	// track of the export. The metadata contains the request to help callers to
	// map responses to requests.
	ExportIamPolicyAnalysis(ctx context.Context, in *ExportIamPolicyAnalysisRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
}

AssetServiceClient is the client API for AssetService service.

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

type AssetServiceServer

type AssetServiceServer interface {
	// Analyzes IAM policies based on the specified request. Returns
	// a list of [IamPolicyAnalysisResult][google.cloud.asset.v1p4beta1.IamPolicyAnalysisResult] matching the request.
	AnalyzeIamPolicy(context.Context, *AnalyzeIamPolicyRequest) (*AnalyzeIamPolicyResponse, error)
	// Exports IAM policy analysis based on the specified request. This API
	// implements the [google.longrunning.Operation][google.longrunning.Operation] API allowing you to keep
	// track of the export. The metadata contains the request to help callers to
	// map responses to requests.
	ExportIamPolicyAnalysis(context.Context, *ExportIamPolicyAnalysisRequest) (*longrunning.Operation, error)
}

AssetServiceServer is the server API for AssetService service.

type ExportIamPolicyAnalysisRequest

type ExportIamPolicyAnalysisRequest struct {

	// Required. The request query.
	AnalysisQuery *IamPolicyAnalysisQuery `protobuf:"bytes,1,opt,name=analysis_query,json=analysisQuery,proto3" json:"analysis_query,omitempty"`
	// Optional. The request options.
	Options *ExportIamPolicyAnalysisRequest_Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// Required. Output configuration indicating where the results will be output to.
	OutputConfig *IamPolicyAnalysisOutputConfig `protobuf:"bytes,3,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
	// contains filtered or unexported fields
}

A request message for [AssetService.ExportIamPolicyAnalysis][google.cloud.asset.v1p4beta1.AssetService.ExportIamPolicyAnalysis].

func (*ExportIamPolicyAnalysisRequest) Descriptor deprecated

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

Deprecated: Use ExportIamPolicyAnalysisRequest.ProtoReflect.Descriptor instead.

func (*ExportIamPolicyAnalysisRequest) GetAnalysisQuery

func (*ExportIamPolicyAnalysisRequest) GetOptions

func (*ExportIamPolicyAnalysisRequest) GetOutputConfig

func (*ExportIamPolicyAnalysisRequest) ProtoMessage

func (*ExportIamPolicyAnalysisRequest) ProtoMessage()

func (*ExportIamPolicyAnalysisRequest) ProtoReflect

func (*ExportIamPolicyAnalysisRequest) Reset

func (x *ExportIamPolicyAnalysisRequest) Reset()

func (*ExportIamPolicyAnalysisRequest) String

type ExportIamPolicyAnalysisRequest_Options

type ExportIamPolicyAnalysisRequest_Options struct {

	// Optional. If true, the identities section of the result will expand any
	// Google groups appearing in an IAM policy binding.
	//
	// If [identity_selector][] is specified, the identity in the result will
	// be determined by the selector, and this flag will have no effect.
	//
	// Default is false.
	ExpandGroups bool `protobuf:"varint,1,opt,name=expand_groups,json=expandGroups,proto3" json:"expand_groups,omitempty"`
	// Optional. If true, the access section of result will expand any roles
	// appearing in IAM policy bindings to include their permissions.
	//
	// If [access_selector][] is specified, the access section of the result
	// will be determined by the selector, and this flag will have no effect.
	//
	// Default is false.
	ExpandRoles bool `protobuf:"varint,2,opt,name=expand_roles,json=expandRoles,proto3" json:"expand_roles,omitempty"`
	// Optional. If true, the resource section of the result will expand any
	// resource attached to an IAM policy to include resources lower in the
	// resource hierarchy.
	//
	// For example, if the request analyzes for which resources user A has
	// permission P, and the results include an IAM policy with P on a GCP
	// folder, the results will also include resources in that folder with
	// permission P.
	//
	// If [resource_selector][] is specified, the resource section of the result
	// will be determined by the selector, and this flag will have no effect.
	// Default is false.
	ExpandResources bool `protobuf:"varint,3,opt,name=expand_resources,json=expandResources,proto3" json:"expand_resources,omitempty"`
	// Optional. If true, the result will output resource edges, starting
	// from the policy attached resource, to any expanded resources.
	// Default is false.
	OutputResourceEdges bool `protobuf:"varint,4,opt,name=output_resource_edges,json=outputResourceEdges,proto3" json:"output_resource_edges,omitempty"`
	// Optional. If true, the result will output group identity edges, starting
	// from the binding's group members, to any expanded identities.
	// Default is false.
	OutputGroupEdges bool `protobuf:"varint,5,opt,name=output_group_edges,json=outputGroupEdges,proto3" json:"output_group_edges,omitempty"`
	// Optional. If true, the response will include access analysis from identities to
	// resources via service account impersonation. This is a very expensive
	// operation, because many derived queries will be executed.
	//
	// For example, if the request analyzes for which resources user A has
	// permission P, and there's an IAM policy states user A has
	// iam.serviceAccounts.getAccessToken permission to a service account SA,
	// and there's another IAM policy states service account SA has permission P
	// to a GCP folder F, then user A potentially has access to the GCP folder
	// F. And those advanced analysis results will be included in
	// [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1p4beta1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis].
	//
	// Another example, if the request analyzes for who has
	// permission P to a GCP folder F, and there's an IAM policy states user A
	// has iam.serviceAccounts.actAs permission to a service account SA, and
	// there's another IAM policy states service account SA has permission P to
	// the GCP folder F, then user A potentially has access to the GCP folder
	// F. And those advanced analysis results will be included in
	// [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1p4beta1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis].
	//
	// Default is false.
	AnalyzeServiceAccountImpersonation bool `` /* 168-byte string literal not displayed */
	// contains filtered or unexported fields
}

Contains request options.

func (*ExportIamPolicyAnalysisRequest_Options) Descriptor deprecated

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

Deprecated: Use ExportIamPolicyAnalysisRequest_Options.ProtoReflect.Descriptor instead.

func (*ExportIamPolicyAnalysisRequest_Options) GetAnalyzeServiceAccountImpersonation

func (x *ExportIamPolicyAnalysisRequest_Options) GetAnalyzeServiceAccountImpersonation() bool

func (*ExportIamPolicyAnalysisRequest_Options) GetExpandGroups

func (x *ExportIamPolicyAnalysisRequest_Options) GetExpandGroups() bool

func (*ExportIamPolicyAnalysisRequest_Options) GetExpandResources

func (x *ExportIamPolicyAnalysisRequest_Options) GetExpandResources() bool

func (*ExportIamPolicyAnalysisRequest_Options) GetExpandRoles

func (x *ExportIamPolicyAnalysisRequest_Options) GetExpandRoles() bool

func (*ExportIamPolicyAnalysisRequest_Options) GetOutputGroupEdges

func (x *ExportIamPolicyAnalysisRequest_Options) GetOutputGroupEdges() bool

func (*ExportIamPolicyAnalysisRequest_Options) GetOutputResourceEdges

func (x *ExportIamPolicyAnalysisRequest_Options) GetOutputResourceEdges() bool

func (*ExportIamPolicyAnalysisRequest_Options) ProtoMessage

func (*ExportIamPolicyAnalysisRequest_Options) ProtoReflect

func (*ExportIamPolicyAnalysisRequest_Options) Reset

func (*ExportIamPolicyAnalysisRequest_Options) String

type ExportIamPolicyAnalysisResponse

type ExportIamPolicyAnalysisResponse struct {

	// Output configuration indicating where the results were output to.
	OutputConfig *IamPolicyAnalysisOutputConfig `protobuf:"bytes,1,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
	// contains filtered or unexported fields
}

The export IAM policy analysis response. This message is returned by the [google.longrunning.Operations.GetOperation][] method in the returned [google.longrunning.Operation.response][] field.

func (*ExportIamPolicyAnalysisResponse) Descriptor deprecated

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

Deprecated: Use ExportIamPolicyAnalysisResponse.ProtoReflect.Descriptor instead.

func (*ExportIamPolicyAnalysisResponse) GetOutputConfig

func (*ExportIamPolicyAnalysisResponse) ProtoMessage

func (*ExportIamPolicyAnalysisResponse) ProtoMessage()

func (*ExportIamPolicyAnalysisResponse) ProtoReflect

func (*ExportIamPolicyAnalysisResponse) Reset

func (*ExportIamPolicyAnalysisResponse) String

type IamPolicyAnalysisOutputConfig

type IamPolicyAnalysisOutputConfig struct {

	// IAM policy analysis export destination.
	//
	// Types that are assignable to Destination:
	//	*IamPolicyAnalysisOutputConfig_GcsDestination_
	Destination isIamPolicyAnalysisOutputConfig_Destination `protobuf_oneof:"destination"`
	// contains filtered or unexported fields
}

Output configuration for export IAM policy analysis destination.

func (*IamPolicyAnalysisOutputConfig) Descriptor deprecated

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

Deprecated: Use IamPolicyAnalysisOutputConfig.ProtoReflect.Descriptor instead.

func (*IamPolicyAnalysisOutputConfig) GetDestination

func (m *IamPolicyAnalysisOutputConfig) GetDestination() isIamPolicyAnalysisOutputConfig_Destination

func (*IamPolicyAnalysisOutputConfig) GetGcsDestination

func (*IamPolicyAnalysisOutputConfig) ProtoMessage

func (*IamPolicyAnalysisOutputConfig) ProtoMessage()

func (*IamPolicyAnalysisOutputConfig) ProtoReflect

func (*IamPolicyAnalysisOutputConfig) Reset

func (x *IamPolicyAnalysisOutputConfig) Reset()

func (*IamPolicyAnalysisOutputConfig) String

type IamPolicyAnalysisOutputConfig_GcsDestination

type IamPolicyAnalysisOutputConfig_GcsDestination struct {

	// Required. The uri of the Cloud Storage object. It's the same uri that is used by
	// gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
	// Editing Object
	// Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
	// for more information.
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// contains filtered or unexported fields
}

A Cloud Storage location.

func (*IamPolicyAnalysisOutputConfig_GcsDestination) Descriptor deprecated

Deprecated: Use IamPolicyAnalysisOutputConfig_GcsDestination.ProtoReflect.Descriptor instead.

func (*IamPolicyAnalysisOutputConfig_GcsDestination) GetUri

func (*IamPolicyAnalysisOutputConfig_GcsDestination) ProtoMessage

func (*IamPolicyAnalysisOutputConfig_GcsDestination) ProtoReflect

func (*IamPolicyAnalysisOutputConfig_GcsDestination) Reset

func (*IamPolicyAnalysisOutputConfig_GcsDestination) String

type IamPolicyAnalysisOutputConfig_GcsDestination_

type IamPolicyAnalysisOutputConfig_GcsDestination_ struct {
	// Destination on Cloud Storage.
	GcsDestination *IamPolicyAnalysisOutputConfig_GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
}

type IamPolicyAnalysisQuery

type IamPolicyAnalysisQuery struct {

	// Required. The relative name of the root asset. Only resources and IAM policies within
	// the parent will be analyzed. This can only be an organization number (such
	// as "organizations/123") or a folder number (such as "folders/123").
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. Specifies a resource for analysis. Leaving it empty means ANY.
	ResourceSelector *IamPolicyAnalysisQuery_ResourceSelector `protobuf:"bytes,2,opt,name=resource_selector,json=resourceSelector,proto3" json:"resource_selector,omitempty"`
	// Optional. Specifies an identity for analysis. Leaving it empty means ANY.
	IdentitySelector *IamPolicyAnalysisQuery_IdentitySelector `protobuf:"bytes,3,opt,name=identity_selector,json=identitySelector,proto3" json:"identity_selector,omitempty"`
	// Optional. Specifies roles or permissions for analysis. Leaving it empty
	// means ANY.
	AccessSelector *IamPolicyAnalysisQuery_AccessSelector `protobuf:"bytes,4,opt,name=access_selector,json=accessSelector,proto3" json:"access_selector,omitempty"`
	// contains filtered or unexported fields
}

IAM policy analysis query message.

func (*IamPolicyAnalysisQuery) Descriptor deprecated

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

Deprecated: Use IamPolicyAnalysisQuery.ProtoReflect.Descriptor instead.

func (*IamPolicyAnalysisQuery) GetAccessSelector

func (*IamPolicyAnalysisQuery) GetIdentitySelector

func (*IamPolicyAnalysisQuery) GetParent

func (x *IamPolicyAnalysisQuery) GetParent() string

func (*IamPolicyAnalysisQuery) GetResourceSelector

func (*IamPolicyAnalysisQuery) ProtoMessage

func (*IamPolicyAnalysisQuery) ProtoMessage()

func (*IamPolicyAnalysisQuery) ProtoReflect

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

func (*IamPolicyAnalysisQuery) Reset

func (x *IamPolicyAnalysisQuery) Reset()

func (*IamPolicyAnalysisQuery) String

func (x *IamPolicyAnalysisQuery) String() string

type IamPolicyAnalysisQuery_AccessSelector

type IamPolicyAnalysisQuery_AccessSelector struct {

	// Optional. The roles to appear in result.
	Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"`
	// Optional. The permissions to appear in result.
	Permissions []string `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

Specifies roles and/or permissions to analyze, to determine both the identities possessing them and the resources they control. If multiple values are specified, results will include identities and resources matching any of them.

func (*IamPolicyAnalysisQuery_AccessSelector) Descriptor deprecated

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

Deprecated: Use IamPolicyAnalysisQuery_AccessSelector.ProtoReflect.Descriptor instead.

func (*IamPolicyAnalysisQuery_AccessSelector) GetPermissions

func (x *IamPolicyAnalysisQuery_AccessSelector) GetPermissions() []string

func (*IamPolicyAnalysisQuery_AccessSelector) GetRoles

func (*IamPolicyAnalysisQuery_AccessSelector) ProtoMessage

func (*IamPolicyAnalysisQuery_AccessSelector) ProtoMessage()

func (*IamPolicyAnalysisQuery_AccessSelector) ProtoReflect

func (*IamPolicyAnalysisQuery_AccessSelector) Reset

func (*IamPolicyAnalysisQuery_AccessSelector) String

type IamPolicyAnalysisQuery_IdentitySelector

type IamPolicyAnalysisQuery_IdentitySelector struct {

	// Required. The identity appear in the form of members in
	// [IAM policy
	// binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
	Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
	// contains filtered or unexported fields
}

Specifies an identity for which to determine resource access, based on roles assigned either directly to them or to the groups they belong to, directly or indirectly.

func (*IamPolicyAnalysisQuery_IdentitySelector) Descriptor deprecated

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

Deprecated: Use IamPolicyAnalysisQuery_IdentitySelector.ProtoReflect.Descriptor instead.

func (*IamPolicyAnalysisQuery_IdentitySelector) GetIdentity

func (*IamPolicyAnalysisQuery_IdentitySelector) ProtoMessage

func (*IamPolicyAnalysisQuery_IdentitySelector) ProtoReflect

func (*IamPolicyAnalysisQuery_IdentitySelector) Reset

func (*IamPolicyAnalysisQuery_IdentitySelector) String

type IamPolicyAnalysisQuery_ResourceSelector

type IamPolicyAnalysisQuery_ResourceSelector struct {

	// Required. The [full resource
	// name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
	// .
	FullResourceName string `protobuf:"bytes,1,opt,name=full_resource_name,json=fullResourceName,proto3" json:"full_resource_name,omitempty"`
	// contains filtered or unexported fields
}

Specifies the resource to analyze for access policies, which may be set directly on the resource, or on ancestors such as organizations, folders or projects. At least one of [ResourceSelector][google.cloud.asset.v1p4beta1.IamPolicyAnalysisQuery.ResourceSelector], [IdentitySelector][google.cloud.asset.v1p4beta1.IamPolicyAnalysisQuery.IdentitySelector] or [AccessSelector][google.cloud.asset.v1p4beta1.IamPolicyAnalysisQuery.AccessSelector] must be specified in a request.

func (*IamPolicyAnalysisQuery_ResourceSelector) Descriptor deprecated

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

Deprecated: Use IamPolicyAnalysisQuery_ResourceSelector.ProtoReflect.Descriptor instead.

func (*IamPolicyAnalysisQuery_ResourceSelector) GetFullResourceName

func (x *IamPolicyAnalysisQuery_ResourceSelector) GetFullResourceName() string

func (*IamPolicyAnalysisQuery_ResourceSelector) ProtoMessage

func (*IamPolicyAnalysisQuery_ResourceSelector) ProtoReflect

func (*IamPolicyAnalysisQuery_ResourceSelector) Reset

func (*IamPolicyAnalysisQuery_ResourceSelector) String

type IamPolicyAnalysisResult

type IamPolicyAnalysisResult struct {

	// The full name of the resource to which the [iam_binding][google.cloud.asset.v1p4beta1.IamPolicyAnalysisResult.iam_binding] policy attaches.
	AttachedResourceFullName string `` /* 137-byte string literal not displayed */
	// The Cloud IAM policy binding under analysis.
	IamBinding *v1.Binding `protobuf:"bytes,2,opt,name=iam_binding,json=iamBinding,proto3" json:"iam_binding,omitempty"`
	// The access control lists derived from the [iam_binding][google.cloud.asset.v1p4beta1.IamPolicyAnalysisResult.iam_binding] that match or
	// potentially match resource and access selectors specified in the request.
	AccessControlLists []*IamPolicyAnalysisResult_AccessControlList `protobuf:"bytes,3,rep,name=access_control_lists,json=accessControlLists,proto3" json:"access_control_lists,omitempty"`
	// The identity list derived from members of the [iam_binding][google.cloud.asset.v1p4beta1.IamPolicyAnalysisResult.iam_binding] that match or
	// potentially match identity selector specified in the request.
	IdentityList *IamPolicyAnalysisResult_IdentityList `protobuf:"bytes,4,opt,name=identity_list,json=identityList,proto3" json:"identity_list,omitempty"`
	// Represents whether all nodes in the transitive closure of the
	// [iam_binding][google.cloud.asset.v1p4beta1.IamPolicyAnalysisResult.iam_binding] node have been explored.
	FullyExplored bool `protobuf:"varint,5,opt,name=fully_explored,json=fullyExplored,proto3" json:"fully_explored,omitempty"`
	// contains filtered or unexported fields
}

IAM Policy analysis result, consisting of one IAM policy binding and derived access control lists.

func (*IamPolicyAnalysisResult) Descriptor deprecated

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

Deprecated: Use IamPolicyAnalysisResult.ProtoReflect.Descriptor instead.

func (*IamPolicyAnalysisResult) GetAccessControlLists

func (*IamPolicyAnalysisResult) GetAttachedResourceFullName

func (x *IamPolicyAnalysisResult) GetAttachedResourceFullName() string

func (*IamPolicyAnalysisResult) GetFullyExplored

func (x *IamPolicyAnalysisResult) GetFullyExplored() bool

func (*IamPolicyAnalysisResult) GetIamBinding

func (x *IamPolicyAnalysisResult) GetIamBinding() *v1.Binding

func (*IamPolicyAnalysisResult) GetIdentityList

func (*IamPolicyAnalysisResult) ProtoMessage

func (*IamPolicyAnalysisResult) ProtoMessage()

func (*IamPolicyAnalysisResult) ProtoReflect

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

func (*IamPolicyAnalysisResult) Reset

func (x *IamPolicyAnalysisResult) Reset()

func (*IamPolicyAnalysisResult) String

func (x *IamPolicyAnalysisResult) String() string

type IamPolicyAnalysisResult_Access

type IamPolicyAnalysisResult_Access struct {

	// Types that are assignable to OneofAccess:
	//	*IamPolicyAnalysisResult_Access_Role
	//	*IamPolicyAnalysisResult_Access_Permission
	OneofAccess isIamPolicyAnalysisResult_Access_OneofAccess `protobuf_oneof:"oneof_access"`
	// The analysis state of this access node.
	AnalysisState *IamPolicyAnalysisResult_AnalysisState `protobuf:"bytes,3,opt,name=analysis_state,json=analysisState,proto3" json:"analysis_state,omitempty"`
	// contains filtered or unexported fields
}

A role or permission that appears in an access control list.

func (*IamPolicyAnalysisResult_Access) Descriptor deprecated

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

Deprecated: Use IamPolicyAnalysisResult_Access.ProtoReflect.Descriptor instead.

func (*IamPolicyAnalysisResult_Access) GetAnalysisState

func (*IamPolicyAnalysisResult_Access) GetOneofAccess

func (m *IamPolicyAnalysisResult_Access) GetOneofAccess() isIamPolicyAnalysisResult_Access_OneofAccess

func (*IamPolicyAnalysisResult_Access) GetPermission

func (x *IamPolicyAnalysisResult_Access) GetPermission() string

func (*IamPolicyAnalysisResult_Access) GetRole

func (*IamPolicyAnalysisResult_Access) ProtoMessage

func (*IamPolicyAnalysisResult_Access) ProtoMessage()

func (*IamPolicyAnalysisResult_Access) ProtoReflect

func (*IamPolicyAnalysisResult_Access) Reset

func (x *IamPolicyAnalysisResult_Access) Reset()

func (*IamPolicyAnalysisResult_Access) String

type IamPolicyAnalysisResult_AccessControlList

type IamPolicyAnalysisResult_AccessControlList struct {

	// The resources that match one of the following conditions:
	// - The resource_selector, if it is specified in request;
	// - Otherwise, resources reachable from the policy attached resource.
	Resources []*IamPolicyAnalysisResult_Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
	// The accesses that match one of the following conditions:
	// - The access_selector, if it is specified in request;
	// - Otherwise, access specifiers reachable from the policy binding's role.
	Accesses []*IamPolicyAnalysisResult_Access `protobuf:"bytes,2,rep,name=accesses,proto3" json:"accesses,omitempty"`
	// Resource edges of the graph starting from the policy attached
	// resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1p4beta1.IamPolicyAnalysisResult.Edge.source_node] contains
	// the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1p4beta1.IamPolicyAnalysisResult.Edge.target_node]
	// contains the full resource name of a child resource. This field is
	// present only if the output_resource_edges option is enabled in request.
	ResourceEdges []*IamPolicyAnalysisResult_Edge `protobuf:"bytes,3,rep,name=resource_edges,json=resourceEdges,proto3" json:"resource_edges,omitempty"`
	// contains filtered or unexported fields
}

An access control list, derived from the above IAM policy binding, which contains a set of resources and accesses. May include one item from each set to compose an access control entry.

NOTICE that there could be multiple access control lists for one IAM policy binding. The access control lists are created based on resource and access combinations.

For example, assume we have the following cases in one IAM policy binding: - Permission P1 and P2 apply to resource R1 and R2; - Permission P3 applies to resource R2 and R3;

This will result in the following access control lists: - AccessControlList 1: [R1, R2], [P1, P2] - AccessControlList 2: [R2, R3], [P3]

func (*IamPolicyAnalysisResult_AccessControlList) Descriptor deprecated

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

Deprecated: Use IamPolicyAnalysisResult_AccessControlList.ProtoReflect.Descriptor instead.

func (*IamPolicyAnalysisResult_AccessControlList) GetAccesses

func (*IamPolicyAnalysisResult_AccessControlList) GetResourceEdges

func (*IamPolicyAnalysisResult_AccessControlList) GetResources

func (*IamPolicyAnalysisResult_AccessControlList) ProtoMessage

func (*IamPolicyAnalysisResult_AccessControlList) ProtoReflect

func (*IamPolicyAnalysisResult_AccessControlList) Reset

func (*IamPolicyAnalysisResult_AccessControlList) String

type IamPolicyAnalysisResult_Access_Permission

type IamPolicyAnalysisResult_Access_Permission struct {
	// The permission.
	Permission string `protobuf:"bytes,2,opt,name=permission,proto3,oneof"`
}

type IamPolicyAnalysisResult_Access_Role

type IamPolicyAnalysisResult_Access_Role struct {
	// The role.
	Role string `protobuf:"bytes,1,opt,name=role,proto3,oneof"`
}

type IamPolicyAnalysisResult_AnalysisState

type IamPolicyAnalysisResult_AnalysisState struct {

	// The Google standard error code that best describes the state.
	// For example:
	// - OK means the node has been successfully explored;
	// - PERMISSION_DENIED means an access denied error is encountered;
	// - DEADLINE_EXCEEDED means the node hasn't been explored in time;
	Code code.Code `protobuf:"varint,1,opt,name=code,proto3,enum=google.rpc.Code" json:"code,omitempty"`
	// The human-readable description of the cause of failure.
	Cause string `protobuf:"bytes,2,opt,name=cause,proto3" json:"cause,omitempty"`
	// contains filtered or unexported fields
}

Represents analysis state of each node in the result graph or non-critical errors in the response.

func (*IamPolicyAnalysisResult_AnalysisState) Descriptor deprecated

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

Deprecated: Use IamPolicyAnalysisResult_AnalysisState.ProtoReflect.Descriptor instead.

func (*IamPolicyAnalysisResult_AnalysisState) GetCause

func (*IamPolicyAnalysisResult_AnalysisState) GetCode

func (*IamPolicyAnalysisResult_AnalysisState) ProtoMessage

func (*IamPolicyAnalysisResult_AnalysisState) ProtoMessage()

func (*IamPolicyAnalysisResult_AnalysisState) ProtoReflect

func (*IamPolicyAnalysisResult_AnalysisState) Reset

func (*IamPolicyAnalysisResult_AnalysisState) String

type IamPolicyAnalysisResult_Edge

type IamPolicyAnalysisResult_Edge struct {

	// The source node of the edge.
	SourceNode string `protobuf:"bytes,1,opt,name=source_node,json=sourceNode,proto3" json:"source_node,omitempty"`
	// The target node of the edge.
	TargetNode string `protobuf:"bytes,2,opt,name=target_node,json=targetNode,proto3" json:"target_node,omitempty"`
	// contains filtered or unexported fields
}

A directional edge.

func (*IamPolicyAnalysisResult_Edge) Descriptor deprecated

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

Deprecated: Use IamPolicyAnalysisResult_Edge.ProtoReflect.Descriptor instead.

func (*IamPolicyAnalysisResult_Edge) GetSourceNode

func (x *IamPolicyAnalysisResult_Edge) GetSourceNode() string

func (*IamPolicyAnalysisResult_Edge) GetTargetNode

func (x *IamPolicyAnalysisResult_Edge) GetTargetNode() string

func (*IamPolicyAnalysisResult_Edge) ProtoMessage

func (*IamPolicyAnalysisResult_Edge) ProtoMessage()

func (*IamPolicyAnalysisResult_Edge) ProtoReflect

func (*IamPolicyAnalysisResult_Edge) Reset

func (x *IamPolicyAnalysisResult_Edge) Reset()

func (*IamPolicyAnalysisResult_Edge) String

type IamPolicyAnalysisResult_Identity

type IamPolicyAnalysisResult_Identity struct {

	// The identity name in any form of members appear in
	// [IAM policy
	// binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
	// as:
	// - user:foo@google.com
	// - group:group1@google.com
	// - serviceAccount:s1@prj1.iam.gserviceaccount.com
	// - projectOwner:some_project_id
	// - domain:google.com
	// - allUsers
	// - etc.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The analysis state of this identity node.
	AnalysisState *IamPolicyAnalysisResult_AnalysisState `protobuf:"bytes,2,opt,name=analysis_state,json=analysisState,proto3" json:"analysis_state,omitempty"`
	// contains filtered or unexported fields
}

An identity that appears in an access control list.

func (*IamPolicyAnalysisResult_Identity) Descriptor deprecated

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

Deprecated: Use IamPolicyAnalysisResult_Identity.ProtoReflect.Descriptor instead.

func (*IamPolicyAnalysisResult_Identity) GetAnalysisState

func (*IamPolicyAnalysisResult_Identity) GetName

func (*IamPolicyAnalysisResult_Identity) ProtoMessage

func (*IamPolicyAnalysisResult_Identity) ProtoMessage()

func (*IamPolicyAnalysisResult_Identity) ProtoReflect

func (*IamPolicyAnalysisResult_Identity) Reset

func (*IamPolicyAnalysisResult_Identity) String

type IamPolicyAnalysisResult_IdentityList

type IamPolicyAnalysisResult_IdentityList struct {

	// Only the identities that match one of the following conditions will be
	// presented:
	// - The identity_selector, if it is specified in request;
	// - Otherwise, identities reachable from the policy binding's members.
	Identities []*IamPolicyAnalysisResult_Identity `protobuf:"bytes,1,rep,name=identities,proto3" json:"identities,omitempty"`
	// Group identity edges of the graph starting from the binding's
	// group members to any node of the [identities][google.cloud.asset.v1p4beta1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1p4beta1.IamPolicyAnalysisResult.Edge.source_node]
	// contains a group, such as "group:parent@google.com". The
	// [Edge.target_node][google.cloud.asset.v1p4beta1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
	// such as "group:child@google.com" or "user:foo@google.com".
	// This field is present only if the output_group_edges option is enabled in
	// request.
	GroupEdges []*IamPolicyAnalysisResult_Edge `protobuf:"bytes,2,rep,name=group_edges,json=groupEdges,proto3" json:"group_edges,omitempty"`
	// contains filtered or unexported fields
}

func (*IamPolicyAnalysisResult_IdentityList) Descriptor deprecated

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

Deprecated: Use IamPolicyAnalysisResult_IdentityList.ProtoReflect.Descriptor instead.

func (*IamPolicyAnalysisResult_IdentityList) GetGroupEdges

func (*IamPolicyAnalysisResult_IdentityList) GetIdentities

func (*IamPolicyAnalysisResult_IdentityList) ProtoMessage

func (*IamPolicyAnalysisResult_IdentityList) ProtoMessage()

func (*IamPolicyAnalysisResult_IdentityList) ProtoReflect

func (*IamPolicyAnalysisResult_IdentityList) Reset

func (*IamPolicyAnalysisResult_IdentityList) String

type IamPolicyAnalysisResult_Resource

type IamPolicyAnalysisResult_Resource struct {

	// The [full resource name](https://aip.dev/122#full-resource-names).
	FullResourceName string `protobuf:"bytes,1,opt,name=full_resource_name,json=fullResourceName,proto3" json:"full_resource_name,omitempty"`
	// The analysis state of this resource node.
	AnalysisState *IamPolicyAnalysisResult_AnalysisState `protobuf:"bytes,2,opt,name=analysis_state,json=analysisState,proto3" json:"analysis_state,omitempty"`
	// contains filtered or unexported fields
}

A GCP resource that appears in an access control list.

func (*IamPolicyAnalysisResult_Resource) Descriptor deprecated

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

Deprecated: Use IamPolicyAnalysisResult_Resource.ProtoReflect.Descriptor instead.

func (*IamPolicyAnalysisResult_Resource) GetAnalysisState

func (*IamPolicyAnalysisResult_Resource) GetFullResourceName

func (x *IamPolicyAnalysisResult_Resource) GetFullResourceName() string

func (*IamPolicyAnalysisResult_Resource) ProtoMessage

func (*IamPolicyAnalysisResult_Resource) ProtoMessage()

func (*IamPolicyAnalysisResult_Resource) ProtoReflect

func (*IamPolicyAnalysisResult_Resource) Reset

func (*IamPolicyAnalysisResult_Resource) String

type UnimplementedAssetServiceServer

type UnimplementedAssetServiceServer struct {
}

UnimplementedAssetServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAssetServiceServer) AnalyzeIamPolicy

func (*UnimplementedAssetServiceServer) ExportIamPolicyAnalysis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL