Constants
AssetService_ExportAssets_FullMethodName, AssetService_ListAssets_FullMethodName, AssetService_BatchGetAssetsHistory_FullMethodName, AssetService_CreateFeed_FullMethodName, AssetService_GetFeed_FullMethodName, AssetService_ListFeeds_FullMethodName, AssetService_UpdateFeed_FullMethodName, AssetService_DeleteFeed_FullMethodName, AssetService_SearchAllResources_FullMethodName, AssetService_SearchAllIamPolicies_FullMethodName, AssetService_AnalyzeIamPolicy_FullMethodName, AssetService_AnalyzeIamPolicyLongrunning_FullMethodName, AssetService_AnalyzeMove_FullMethodName, AssetService_QueryAssets_FullMethodName, AssetService_CreateSavedQuery_FullMethodName, AssetService_GetSavedQuery_FullMethodName, AssetService_ListSavedQueries_FullMethodName, AssetService_UpdateSavedQuery_FullMethodName, AssetService_DeleteSavedQuery_FullMethodName, AssetService_BatchGetEffectiveIamPolicies_FullMethodName, AssetService_AnalyzeOrgPolicies_FullMethodName, AssetService_AnalyzeOrgPolicyGovernedContainers_FullMethodName, AssetService_AnalyzeOrgPolicyGovernedAssets_FullMethodName
const (
AssetService_ExportAssets_FullMethodName = "/google.cloud.asset.v1.AssetService/ExportAssets"
AssetService_ListAssets_FullMethodName = "/google.cloud.asset.v1.AssetService/ListAssets"
AssetService_BatchGetAssetsHistory_FullMethodName = "/google.cloud.asset.v1.AssetService/BatchGetAssetsHistory"
AssetService_CreateFeed_FullMethodName = "/google.cloud.asset.v1.AssetService/CreateFeed"
AssetService_GetFeed_FullMethodName = "/google.cloud.asset.v1.AssetService/GetFeed"
AssetService_ListFeeds_FullMethodName = "/google.cloud.asset.v1.AssetService/ListFeeds"
AssetService_UpdateFeed_FullMethodName = "/google.cloud.asset.v1.AssetService/UpdateFeed"
AssetService_DeleteFeed_FullMethodName = "/google.cloud.asset.v1.AssetService/DeleteFeed"
AssetService_SearchAllResources_FullMethodName = "/google.cloud.asset.v1.AssetService/SearchAllResources"
AssetService_SearchAllIamPolicies_FullMethodName = "/google.cloud.asset.v1.AssetService/SearchAllIamPolicies"
AssetService_AnalyzeIamPolicy_FullMethodName = "/google.cloud.asset.v1.AssetService/AnalyzeIamPolicy"
AssetService_AnalyzeIamPolicyLongrunning_FullMethodName = "/google.cloud.asset.v1.AssetService/AnalyzeIamPolicyLongrunning"
AssetService_AnalyzeMove_FullMethodName = "/google.cloud.asset.v1.AssetService/AnalyzeMove"
AssetService_QueryAssets_FullMethodName = "/google.cloud.asset.v1.AssetService/QueryAssets"
AssetService_CreateSavedQuery_FullMethodName = "/google.cloud.asset.v1.AssetService/CreateSavedQuery"
AssetService_GetSavedQuery_FullMethodName = "/google.cloud.asset.v1.AssetService/GetSavedQuery"
AssetService_ListSavedQueries_FullMethodName = "/google.cloud.asset.v1.AssetService/ListSavedQueries"
AssetService_UpdateSavedQuery_FullMethodName = "/google.cloud.asset.v1.AssetService/UpdateSavedQuery"
AssetService_DeleteSavedQuery_FullMethodName = "/google.cloud.asset.v1.AssetService/DeleteSavedQuery"
AssetService_BatchGetEffectiveIamPolicies_FullMethodName = "/google.cloud.asset.v1.AssetService/BatchGetEffectiveIamPolicies"
AssetService_AnalyzeOrgPolicies_FullMethodName = "/google.cloud.asset.v1.AssetService/AnalyzeOrgPolicies"
AssetService_AnalyzeOrgPolicyGovernedContainers_FullMethodName = "/google.cloud.asset.v1.AssetService/AnalyzeOrgPolicyGovernedContainers"
AssetService_AnalyzeOrgPolicyGovernedAssets_FullMethodName = "/google.cloud.asset.v1.AssetService/AnalyzeOrgPolicyGovernedAssets"
)Variables
ContentType_name, ContentType_value
var (
ContentType_name = map[int32]string{
0: "CONTENT_TYPE_UNSPECIFIED",
1: "RESOURCE",
2: "IAM_POLICY",
4: "ORG_POLICY",
5: "ACCESS_POLICY",
6: "OS_INVENTORY",
7: "RELATIONSHIP",
}
ContentType_value = map[string]int32{
"CONTENT_TYPE_UNSPECIFIED": 0,
"RESOURCE": 1,
"IAM_POLICY": 2,
"ORG_POLICY": 4,
"ACCESS_POLICY": 5,
"OS_INVENTORY": 6,
"RELATIONSHIP": 7,
}
)Enum value maps for ContentType.
PartitionSpec_PartitionKey_name, PartitionSpec_PartitionKey_value
var (
PartitionSpec_PartitionKey_name = map[int32]string{
0: "PARTITION_KEY_UNSPECIFIED",
1: "READ_TIME",
2: "REQUEST_TIME",
}
PartitionSpec_PartitionKey_value = map[string]int32{
"PARTITION_KEY_UNSPECIFIED": 0,
"READ_TIME": 1,
"REQUEST_TIME": 2,
}
)Enum value maps for PartitionSpec_PartitionKey.
IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey_name, IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey_value
var (
IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey_name = map[int32]string{
0: "PARTITION_KEY_UNSPECIFIED",
1: "REQUEST_TIME",
}
IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey_value = map[string]int32{
"PARTITION_KEY_UNSPECIFIED": 0,
"REQUEST_TIME": 1,
}
)Enum value maps for IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey.
AnalyzeMoveRequest_AnalysisView_name, AnalyzeMoveRequest_AnalysisView_value
var (
AnalyzeMoveRequest_AnalysisView_name = map[int32]string{
0: "ANALYSIS_VIEW_UNSPECIFIED",
1: "FULL",
2: "BASIC",
}
AnalyzeMoveRequest_AnalysisView_value = map[string]int32{
"ANALYSIS_VIEW_UNSPECIFIED": 0,
"FULL": 1,
"BASIC": 2,
}
)Enum value maps for AnalyzeMoveRequest_AnalysisView.
AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault_name, AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault_value
var (
AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault_name = map[int32]string{
0: "CONSTRAINT_DEFAULT_UNSPECIFIED",
1: "ALLOW",
2: "DENY",
}
AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault_value = map[string]int32{
"CONSTRAINT_DEFAULT_UNSPECIFIED": 0,
"ALLOW": 1,
"DENY": 2,
}
)Enum value maps for AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault.
AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType_name, AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType_value
var (
AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType_name = map[int32]string{
0: "METHOD_TYPE_UNSPECIFIED",
1: "CREATE",
2: "UPDATE",
3: "DELETE",
4: "REMOVE_GRANT",
5: "GOVERN_TAGS",
}
AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType_value = map[string]int32{
"METHOD_TYPE_UNSPECIFIED": 0,
"CREATE": 1,
"UPDATE": 2,
"DELETE": 3,
"REMOVE_GRANT": 4,
"GOVERN_TAGS": 5,
}
)Enum value maps for AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType.
AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType_name, AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType_value
var (
AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType_name = map[int32]string{
0: "ACTION_TYPE_UNSPECIFIED",
1: "ALLOW",
2: "DENY",
}
AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType_value = map[string]int32{
"ACTION_TYPE_UNSPECIFIED": 0,
"ALLOW": 1,
"DENY": 2,
}
)Enum value maps for AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType.
TemporalAsset_PriorAssetState_name, TemporalAsset_PriorAssetState_value
var (
TemporalAsset_PriorAssetState_name = map[int32]string{
0: "PRIOR_ASSET_STATE_UNSPECIFIED",
1: "PRESENT",
2: "INVALID",
3: "DOES_NOT_EXIST",
4: "DELETED",
}
TemporalAsset_PriorAssetState_value = map[string]int32{
"PRIOR_ASSET_STATE_UNSPECIFIED": 0,
"PRESENT": 1,
"INVALID": 2,
"DOES_NOT_EXIST": 3,
"DELETED": 4,
}
)Enum value maps for TemporalAsset_PriorAssetState.
ConditionEvaluation_EvaluationValue_name, ConditionEvaluation_EvaluationValue_value
var (
ConditionEvaluation_EvaluationValue_name = map[int32]string{
0: "EVALUATION_VALUE_UNSPECIFIED",
1: "TRUE",
2: "FALSE",
3: "CONDITIONAL",
}
ConditionEvaluation_EvaluationValue_value = map[string]int32{
"EVALUATION_VALUE_UNSPECIFIED": 0,
"TRUE": 1,
"FALSE": 2,
"CONDITIONAL": 3,
}
)Enum value maps for ConditionEvaluation_EvaluationValue.
AssetService_ServiceDesc
var AssetService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.asset.v1.AssetService",
HandlerType: (*AssetServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ExportAssets",
Handler: _AssetService_ExportAssets_Handler,
},
{
MethodName: "ListAssets",
Handler: _AssetService_ListAssets_Handler,
},
{
MethodName: "BatchGetAssetsHistory",
Handler: _AssetService_BatchGetAssetsHistory_Handler,
},
{
MethodName: "CreateFeed",
Handler: _AssetService_CreateFeed_Handler,
},
{
MethodName: "GetFeed",
Handler: _AssetService_GetFeed_Handler,
},
{
MethodName: "ListFeeds",
Handler: _AssetService_ListFeeds_Handler,
},
{
MethodName: "UpdateFeed",
Handler: _AssetService_UpdateFeed_Handler,
},
{
MethodName: "DeleteFeed",
Handler: _AssetService_DeleteFeed_Handler,
},
{
MethodName: "SearchAllResources",
Handler: _AssetService_SearchAllResources_Handler,
},
{
MethodName: "SearchAllIamPolicies",
Handler: _AssetService_SearchAllIamPolicies_Handler,
},
{
MethodName: "AnalyzeIamPolicy",
Handler: _AssetService_AnalyzeIamPolicy_Handler,
},
{
MethodName: "AnalyzeIamPolicyLongrunning",
Handler: _AssetService_AnalyzeIamPolicyLongrunning_Handler,
},
{
MethodName: "AnalyzeMove",
Handler: _AssetService_AnalyzeMove_Handler,
},
{
MethodName: "QueryAssets",
Handler: _AssetService_QueryAssets_Handler,
},
{
MethodName: "CreateSavedQuery",
Handler: _AssetService_CreateSavedQuery_Handler,
},
{
MethodName: "GetSavedQuery",
Handler: _AssetService_GetSavedQuery_Handler,
},
{
MethodName: "ListSavedQueries",
Handler: _AssetService_ListSavedQueries_Handler,
},
{
MethodName: "UpdateSavedQuery",
Handler: _AssetService_UpdateSavedQuery_Handler,
},
{
MethodName: "DeleteSavedQuery",
Handler: _AssetService_DeleteSavedQuery_Handler,
},
{
MethodName: "BatchGetEffectiveIamPolicies",
Handler: _AssetService_BatchGetEffectiveIamPolicies_Handler,
},
{
MethodName: "AnalyzeOrgPolicies",
Handler: _AssetService_AnalyzeOrgPolicies_Handler,
},
{
MethodName: "AnalyzeOrgPolicyGovernedContainers",
Handler: _AssetService_AnalyzeOrgPolicyGovernedContainers_Handler,
},
{
MethodName: "AnalyzeOrgPolicyGovernedAssets",
Handler: _AssetService_AnalyzeOrgPolicyGovernedAssets_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/asset/v1/asset_service.proto",
}AssetService_ServiceDesc is the grpc.ServiceDesc for AssetService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
File_google_cloud_asset_v1_asset_enrichment_resourceowners_proto
var File_google_cloud_asset_v1_asset_enrichment_resourceowners_proto protoreflect.FileDescriptorFile_google_cloud_asset_v1_asset_service_proto
var File_google_cloud_asset_v1_asset_service_proto protoreflect.FileDescriptorFile_google_cloud_asset_v1_assets_proto
var File_google_cloud_asset_v1_assets_proto protoreflect.FileDescriptorFunctions
func RegisterAssetServiceServer
func RegisterAssetServiceServer(s grpc.ServiceRegistrar, srv AssetServiceServer)AnalyzeIamPolicyLongrunningMetadata
type AnalyzeIamPolicyLongrunningMetadata 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"`
// contains filtered or unexported fields
}Represents the metadata of the longrunning operation for the AnalyzeIamPolicyLongrunning RPC.
func (*AnalyzeIamPolicyLongrunningMetadata) Descriptor
func (*AnalyzeIamPolicyLongrunningMetadata) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeIamPolicyLongrunningMetadata.ProtoReflect.Descriptor instead.
func (*AnalyzeIamPolicyLongrunningMetadata) GetCreateTime
func (x *AnalyzeIamPolicyLongrunningMetadata) GetCreateTime() *timestamppb.Timestampfunc (*AnalyzeIamPolicyLongrunningMetadata) ProtoMessage
func (*AnalyzeIamPolicyLongrunningMetadata) ProtoMessage()func (*AnalyzeIamPolicyLongrunningMetadata) ProtoReflect
func (x *AnalyzeIamPolicyLongrunningMetadata) ProtoReflect() protoreflect.Messagefunc (*AnalyzeIamPolicyLongrunningMetadata) Reset
func (x *AnalyzeIamPolicyLongrunningMetadata) Reset()func (*AnalyzeIamPolicyLongrunningMetadata) String
func (x *AnalyzeIamPolicyLongrunningMetadata) String() stringAnalyzeIamPolicyLongrunningRequest
type AnalyzeIamPolicyLongrunningRequest struct {
// Required. The request query.
AnalysisQuery *IamPolicyAnalysisQuery `protobuf:"bytes,1,opt,name=analysis_query,json=analysisQuery,proto3" json:"analysis_query,omitempty"`
// Optional. The name of a saved query, which must be in the format of:
//
// * projects/project_number/savedQueries/saved_query_id
// * folders/folder_number/savedQueries/saved_query_id
// * organizations/organization_number/savedQueries/saved_query_id
//
// If both `analysis_query` and `saved_analysis_query` are provided, they
// will be merged together with the `saved_analysis_query` as base and
// the `analysis_query` as overrides. For more details of the merge behavior,
// refer to the
// [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details)
// doc.
//
// Note that you cannot override primitive fields with default value, such as
// 0 or empty string, etc., because we use proto3, which doesn't support field
// presence yet.
SavedAnalysisQuery string `protobuf:"bytes,3,opt,name=saved_analysis_query,json=savedAnalysisQuery,proto3" json:"saved_analysis_query,omitempty"`
// Required. Output configuration indicating where the results will be output
// to.
OutputConfig *IamPolicyAnalysisOutputConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
// contains filtered or unexported fields
}A request message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
func (*AnalyzeIamPolicyLongrunningRequest) Descriptor
func (*AnalyzeIamPolicyLongrunningRequest) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeIamPolicyLongrunningRequest.ProtoReflect.Descriptor instead.
func (*AnalyzeIamPolicyLongrunningRequest) GetAnalysisQuery
func (x *AnalyzeIamPolicyLongrunningRequest) GetAnalysisQuery() *IamPolicyAnalysisQueryfunc (*AnalyzeIamPolicyLongrunningRequest) GetOutputConfig
func (x *AnalyzeIamPolicyLongrunningRequest) GetOutputConfig() *IamPolicyAnalysisOutputConfigfunc (*AnalyzeIamPolicyLongrunningRequest) GetSavedAnalysisQuery
func (x *AnalyzeIamPolicyLongrunningRequest) GetSavedAnalysisQuery() stringfunc (*AnalyzeIamPolicyLongrunningRequest) ProtoMessage
func (*AnalyzeIamPolicyLongrunningRequest) ProtoMessage()func (*AnalyzeIamPolicyLongrunningRequest) ProtoReflect
func (x *AnalyzeIamPolicyLongrunningRequest) ProtoReflect() protoreflect.Messagefunc (*AnalyzeIamPolicyLongrunningRequest) Reset
func (x *AnalyzeIamPolicyLongrunningRequest) Reset()func (*AnalyzeIamPolicyLongrunningRequest) String
func (x *AnalyzeIamPolicyLongrunningRequest) String() stringAnalyzeIamPolicyLongrunningResponse
type AnalyzeIamPolicyLongrunningResponse struct {
// contains filtered or unexported fields
}A response message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
func (*AnalyzeIamPolicyLongrunningResponse) Descriptor
func (*AnalyzeIamPolicyLongrunningResponse) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeIamPolicyLongrunningResponse.ProtoReflect.Descriptor instead.
func (*AnalyzeIamPolicyLongrunningResponse) ProtoMessage
func (*AnalyzeIamPolicyLongrunningResponse) ProtoMessage()func (*AnalyzeIamPolicyLongrunningResponse) ProtoReflect
func (x *AnalyzeIamPolicyLongrunningResponse) ProtoReflect() protoreflect.Messagefunc (*AnalyzeIamPolicyLongrunningResponse) Reset
func (x *AnalyzeIamPolicyLongrunningResponse) Reset()func (*AnalyzeIamPolicyLongrunningResponse) String
func (x *AnalyzeIamPolicyLongrunningResponse) String() stringAnalyzeIamPolicyRequest
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 name of a saved query, which must be in the format of:
//
// * projects/project_number/savedQueries/saved_query_id
// * folders/folder_number/savedQueries/saved_query_id
// * organizations/organization_number/savedQueries/saved_query_id
//
// If both `analysis_query` and `saved_analysis_query` are provided, they
// will be merged together with the `saved_analysis_query` as base and
// the `analysis_query` as overrides. For more details of the merge behavior,
// refer to the
// [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details)
// page.
//
// Note that you cannot override primitive fields with default value, such as
// 0 or empty string, etc., because we use proto3, which doesn't support field
// presence yet.
SavedAnalysisQuery string `protobuf:"bytes,3,opt,name=saved_analysis_query,json=savedAnalysisQuery,proto3" json:"saved_analysis_query,omitempty"`
// 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,2,opt,name=execution_timeout,json=executionTimeout,proto3" json:"execution_timeout,omitempty"`
// contains filtered or unexported fields
}A request message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
func (*AnalyzeIamPolicyRequest) Descriptor
func (*AnalyzeIamPolicyRequest) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeIamPolicyRequest.ProtoReflect.Descriptor instead.
func (*AnalyzeIamPolicyRequest) GetAnalysisQuery
func (x *AnalyzeIamPolicyRequest) GetAnalysisQuery() *IamPolicyAnalysisQueryfunc (*AnalyzeIamPolicyRequest) GetExecutionTimeout
func (x *AnalyzeIamPolicyRequest) GetExecutionTimeout() *durationpb.Durationfunc (*AnalyzeIamPolicyRequest) GetSavedAnalysisQuery
func (x *AnalyzeIamPolicyRequest) GetSavedAnalysisQuery() stringfunc (*AnalyzeIamPolicyRequest) ProtoMessage
func (*AnalyzeIamPolicyRequest) ProtoMessage()func (*AnalyzeIamPolicyRequest) ProtoReflect
func (x *AnalyzeIamPolicyRequest) ProtoReflect() protoreflect.Messagefunc (*AnalyzeIamPolicyRequest) Reset
func (x *AnalyzeIamPolicyRequest) Reset()func (*AnalyzeIamPolicyRequest) String
func (x *AnalyzeIamPolicyRequest) String() stringAnalyzeIamPolicyResponse
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
// [IamPolicyAnalysisQuery.Options.analyze_service_account_impersonation][google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.analyze_service_account_impersonation]
// is enabled.
ServiceAccountImpersonationAnalysis []*AnalyzeIamPolicyResponse_IamPolicyAnalysis `protobuf:"bytes,2,rep,name=service_account_impersonation_analysis,json=serviceAccountImpersonationAnalysis,proto3" json:"service_account_impersonation_analysis,omitempty"`
// Represents whether all entries in the
// [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis]
// and
// [service_account_impersonation_analysis][google.cloud.asset.v1.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"`
// contains filtered or unexported fields
}A response message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
func (*AnalyzeIamPolicyResponse) Descriptor
func (*AnalyzeIamPolicyResponse) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeIamPolicyResponse.ProtoReflect.Descriptor instead.
func (*AnalyzeIamPolicyResponse) GetFullyExplored
func (x *AnalyzeIamPolicyResponse) GetFullyExplored() boolfunc (*AnalyzeIamPolicyResponse) GetMainAnalysis
func (x *AnalyzeIamPolicyResponse) GetMainAnalysis() *AnalyzeIamPolicyResponse_IamPolicyAnalysisfunc (*AnalyzeIamPolicyResponse) GetServiceAccountImpersonationAnalysis
func (x *AnalyzeIamPolicyResponse) GetServiceAccountImpersonationAnalysis() []*AnalyzeIamPolicyResponse_IamPolicyAnalysisfunc (*AnalyzeIamPolicyResponse) ProtoMessage
func (*AnalyzeIamPolicyResponse) ProtoMessage()func (*AnalyzeIamPolicyResponse) ProtoReflect
func (x *AnalyzeIamPolicyResponse) ProtoReflect() protoreflect.Messagefunc (*AnalyzeIamPolicyResponse) Reset
func (x *AnalyzeIamPolicyResponse) Reset()func (*AnalyzeIamPolicyResponse) String
func (x *AnalyzeIamPolicyResponse) String() stringAnalyzeIamPolicyResponse_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.v1.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.v1.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"`
// A list of non-critical errors happened during the query handling.
NonCriticalErrors []*IamPolicyAnalysisState `protobuf:"bytes,5,rep,name=non_critical_errors,json=nonCriticalErrors,proto3" json:"non_critical_errors,omitempty"`
// contains filtered or unexported fields
}An analysis message to group the query and results.
func (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) Descriptor
func (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeIamPolicyResponse_IamPolicyAnalysis.ProtoReflect.Descriptor instead.
func (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) GetAnalysisQuery
func (x *AnalyzeIamPolicyResponse_IamPolicyAnalysis) GetAnalysisQuery() *IamPolicyAnalysisQueryfunc (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) GetAnalysisResults
func (x *AnalyzeIamPolicyResponse_IamPolicyAnalysis) GetAnalysisResults() []*IamPolicyAnalysisResultfunc (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) GetFullyExplored
func (x *AnalyzeIamPolicyResponse_IamPolicyAnalysis) GetFullyExplored() boolfunc (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) GetNonCriticalErrors
func (x *AnalyzeIamPolicyResponse_IamPolicyAnalysis) GetNonCriticalErrors() []*IamPolicyAnalysisStatefunc (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) ProtoMessage
func (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) ProtoMessage()func (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) ProtoReflect
func (x *AnalyzeIamPolicyResponse_IamPolicyAnalysis) ProtoReflect() protoreflect.Messagefunc (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) Reset
func (x *AnalyzeIamPolicyResponse_IamPolicyAnalysis) Reset()func (*AnalyzeIamPolicyResponse_IamPolicyAnalysis) String
func (x *AnalyzeIamPolicyResponse_IamPolicyAnalysis) String() stringAnalyzeMoveRequest
type AnalyzeMoveRequest struct {
// Required. Name of the resource to perform the analysis against.
// Only Google Cloud projects are supported as of today. Hence, this can only
// be a project ID (such as "projects/my-project-id") or a project number
// (such as "projects/12345").
Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
// Required. Name of the Google Cloud folder or organization to reparent the
// target resource. The analysis will be performed against hypothetically
// moving the resource to this specified destination parent. This can only be
// a folder number (such as "folders/123") or an organization number (such as
// "organizations/123").
DestinationParent string `protobuf:"bytes,2,opt,name=destination_parent,json=destinationParent,proto3" json:"destination_parent,omitempty"`
// Analysis view indicating what information should be included in the
// analysis response. If unspecified, the default view is FULL.
View AnalyzeMoveRequest_AnalysisView `protobuf:"varint,3,opt,name=view,proto3,enum=google.cloud.asset.v1.AnalyzeMoveRequest_AnalysisView" json:"view,omitempty"`
// contains filtered or unexported fields
}The request message for performing resource move analysis.
func (*AnalyzeMoveRequest) Descriptor
func (*AnalyzeMoveRequest) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeMoveRequest.ProtoReflect.Descriptor instead.
func (*AnalyzeMoveRequest) GetDestinationParent
func (x *AnalyzeMoveRequest) GetDestinationParent() stringfunc (*AnalyzeMoveRequest) GetResource
func (x *AnalyzeMoveRequest) GetResource() stringfunc (*AnalyzeMoveRequest) GetView
func (x *AnalyzeMoveRequest) GetView() AnalyzeMoveRequest_AnalysisViewfunc (*AnalyzeMoveRequest) ProtoMessage
func (*AnalyzeMoveRequest) ProtoMessage()func (*AnalyzeMoveRequest) ProtoReflect
func (x *AnalyzeMoveRequest) ProtoReflect() protoreflect.Messagefunc (*AnalyzeMoveRequest) Reset
func (x *AnalyzeMoveRequest) Reset()func (*AnalyzeMoveRequest) String
func (x *AnalyzeMoveRequest) String() stringAnalyzeMoveRequest_AnalysisView
type AnalyzeMoveRequest_AnalysisView int32View enum for supporting partial analysis responses.
AnalyzeMoveRequest_ANALYSIS_VIEW_UNSPECIFIED, AnalyzeMoveRequest_FULL, AnalyzeMoveRequest_BASIC
const (
// The default/unset value.
// The API will default to the FULL view.
AnalyzeMoveRequest_ANALYSIS_VIEW_UNSPECIFIED AnalyzeMoveRequest_AnalysisView = 0
// Full analysis including all level of impacts of the specified resource
// move.
AnalyzeMoveRequest_FULL AnalyzeMoveRequest_AnalysisView = 1
// Basic analysis only including blockers which will prevent the specified
// resource move at runtime.
AnalyzeMoveRequest_BASIC AnalyzeMoveRequest_AnalysisView = 2
)func (AnalyzeMoveRequest_AnalysisView) Descriptor
func (AnalyzeMoveRequest_AnalysisView) Descriptor() protoreflect.EnumDescriptorfunc (AnalyzeMoveRequest_AnalysisView) Enum
func (x AnalyzeMoveRequest_AnalysisView) Enum() *AnalyzeMoveRequest_AnalysisViewfunc (AnalyzeMoveRequest_AnalysisView) EnumDescriptor
func (AnalyzeMoveRequest_AnalysisView) EnumDescriptor() ([]byte, []int)Deprecated: Use AnalyzeMoveRequest_AnalysisView.Descriptor instead.
func (AnalyzeMoveRequest_AnalysisView) Number
func (x AnalyzeMoveRequest_AnalysisView) Number() protoreflect.EnumNumberfunc (AnalyzeMoveRequest_AnalysisView) String
func (x AnalyzeMoveRequest_AnalysisView) String() stringfunc (AnalyzeMoveRequest_AnalysisView) Type
func (AnalyzeMoveRequest_AnalysisView) Type() protoreflect.EnumTypeAnalyzeMoveResponse
type AnalyzeMoveResponse struct {
// The list of analyses returned from performing the intended resource move
// analysis. The analysis is grouped by different Google Cloud services.
MoveAnalysis []*MoveAnalysis `protobuf:"bytes,1,rep,name=move_analysis,json=moveAnalysis,proto3" json:"move_analysis,omitempty"`
// contains filtered or unexported fields
}The response message for resource move analysis.
func (*AnalyzeMoveResponse) Descriptor
func (*AnalyzeMoveResponse) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeMoveResponse.ProtoReflect.Descriptor instead.
func (*AnalyzeMoveResponse) GetMoveAnalysis
func (x *AnalyzeMoveResponse) GetMoveAnalysis() []*MoveAnalysisfunc (*AnalyzeMoveResponse) ProtoMessage
func (*AnalyzeMoveResponse) ProtoMessage()func (*AnalyzeMoveResponse) ProtoReflect
func (x *AnalyzeMoveResponse) ProtoReflect() protoreflect.Messagefunc (*AnalyzeMoveResponse) Reset
func (x *AnalyzeMoveResponse) Reset()func (*AnalyzeMoveResponse) String
func (x *AnalyzeMoveResponse) String() stringAnalyzeOrgPoliciesRequest
type AnalyzeOrgPoliciesRequest struct {
// Required. The organization to scope the request. Only organization
// policies within the scope will be analyzed.
//
// * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
// Required. The name of the constraint to analyze organization policies for.
// The response only contains analyzed organization policies for the provided
// constraint.
Constraint string `protobuf:"bytes,2,opt,name=constraint,proto3" json:"constraint,omitempty"`
// The expression to filter
// [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results].
// Filtering is currently available for bare literal values and the following
// fields:
// * consolidated_policy.attached_resource
// * consolidated_policy.rules.enforce
//
// When filtering by a specific field, the only supported operator is `=`.
// For example, filtering by
// consolidated_policy.attached_resource="//cloudresourcemanager.googleapis.com/folders/001"
// will return all the Organization Policy results attached to "folders/001".
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// The maximum number of items to return per page. If unspecified,
// [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results]
// will contain 20 items with a maximum of 200.
PageSize *int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"`
// The pagination token to retrieve the next page.
PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}A request message for [AssetService.AnalyzeOrgPolicies][google.cloud.asset.v1.AssetService.AnalyzeOrgPolicies].
func (*AnalyzeOrgPoliciesRequest) Descriptor
func (*AnalyzeOrgPoliciesRequest) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeOrgPoliciesRequest.ProtoReflect.Descriptor instead.
func (*AnalyzeOrgPoliciesRequest) GetConstraint
func (x *AnalyzeOrgPoliciesRequest) GetConstraint() stringfunc (*AnalyzeOrgPoliciesRequest) GetFilter
func (x *AnalyzeOrgPoliciesRequest) GetFilter() stringfunc (*AnalyzeOrgPoliciesRequest) GetPageSize
func (x *AnalyzeOrgPoliciesRequest) GetPageSize() int32func (*AnalyzeOrgPoliciesRequest) GetPageToken
func (x *AnalyzeOrgPoliciesRequest) GetPageToken() stringfunc (*AnalyzeOrgPoliciesRequest) GetScope
func (x *AnalyzeOrgPoliciesRequest) GetScope() stringfunc (*AnalyzeOrgPoliciesRequest) ProtoMessage
func (*AnalyzeOrgPoliciesRequest) ProtoMessage()func (*AnalyzeOrgPoliciesRequest) ProtoReflect
func (x *AnalyzeOrgPoliciesRequest) ProtoReflect() protoreflect.Messagefunc (*AnalyzeOrgPoliciesRequest) Reset
func (x *AnalyzeOrgPoliciesRequest) Reset()func (*AnalyzeOrgPoliciesRequest) String
func (x *AnalyzeOrgPoliciesRequest) String() stringAnalyzeOrgPoliciesResponse
type AnalyzeOrgPoliciesResponse struct {
// The organization policies under the
// [AnalyzeOrgPoliciesRequest.scope][google.cloud.asset.v1.AnalyzeOrgPoliciesRequest.scope]
// with the
// [AnalyzeOrgPoliciesRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPoliciesRequest.constraint].
OrgPolicyResults []*AnalyzeOrgPoliciesResponse_OrgPolicyResult `protobuf:"bytes,1,rep,name=org_policy_results,json=orgPolicyResults,proto3" json:"org_policy_results,omitempty"`
// The definition of the constraint in the request.
Constraint *AnalyzerOrgPolicyConstraint `protobuf:"bytes,2,opt,name=constraint,proto3" json:"constraint,omitempty"`
// The page token to fetch the next page for
// [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results].
NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response message for [AssetService.AnalyzeOrgPolicies][google.cloud.asset.v1.AssetService.AnalyzeOrgPolicies].
func (*AnalyzeOrgPoliciesResponse) Descriptor
func (*AnalyzeOrgPoliciesResponse) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeOrgPoliciesResponse.ProtoReflect.Descriptor instead.
func (*AnalyzeOrgPoliciesResponse) GetConstraint
func (x *AnalyzeOrgPoliciesResponse) GetConstraint() *AnalyzerOrgPolicyConstraintfunc (*AnalyzeOrgPoliciesResponse) GetNextPageToken
func (x *AnalyzeOrgPoliciesResponse) GetNextPageToken() stringfunc (*AnalyzeOrgPoliciesResponse) GetOrgPolicyResults
func (x *AnalyzeOrgPoliciesResponse) GetOrgPolicyResults() []*AnalyzeOrgPoliciesResponse_OrgPolicyResultfunc (*AnalyzeOrgPoliciesResponse) ProtoMessage
func (*AnalyzeOrgPoliciesResponse) ProtoMessage()func (*AnalyzeOrgPoliciesResponse) ProtoReflect
func (x *AnalyzeOrgPoliciesResponse) ProtoReflect() protoreflect.Messagefunc (*AnalyzeOrgPoliciesResponse) Reset
func (x *AnalyzeOrgPoliciesResponse) Reset()func (*AnalyzeOrgPoliciesResponse) String
func (x *AnalyzeOrgPoliciesResponse) String() stringAnalyzeOrgPoliciesResponse_OrgPolicyResult
type AnalyzeOrgPoliciesResponse_OrgPolicyResult struct {
// The consolidated organization policy for the analyzed resource. The
// consolidated organization policy is computed by merging and evaluating
// [policy_bundle][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult.policy_bundle].
// The evaluation will respect the organization policy [hierarchy
// rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
ConsolidatedPolicy *AnalyzerOrgPolicy `protobuf:"bytes,1,opt,name=consolidated_policy,json=consolidatedPolicy,proto3" json:"consolidated_policy,omitempty"`
// The ordered list of all organization policies from the
// [consolidated_policy.attached_resource][google.cloud.asset.v1.AnalyzerOrgPolicy.attached_resource].
// to the scope specified in the request.
//
// If the constraint is defined with default policy, it will also appear in
// the list.
PolicyBundle []*AnalyzerOrgPolicy `protobuf:"bytes,2,rep,name=policy_bundle,json=policyBundle,proto3" json:"policy_bundle,omitempty"`
// The project that this consolidated policy belongs to, in the format of
// projects/{PROJECT_NUMBER}. This field is available when the consolidated
// policy belongs to a project.
Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`
// The folder(s) that this consolidated policy belongs to, in the format of
// folders/{FOLDER_NUMBER}. This field is available when the consolidated
// policy belongs (directly or cascadingly) to one or more folders.
Folders []string `protobuf:"bytes,4,rep,name=folders,proto3" json:"folders,omitempty"`
// The organization that this consolidated policy belongs to, in the format
// of organizations/{ORGANIZATION_NUMBER}. This field is available when the
// consolidated policy belongs (directly or cascadingly) to an organization.
Organization string `protobuf:"bytes,5,opt,name=organization,proto3" json:"organization,omitempty"`
// contains filtered or unexported fields
}The organization policy result to the query.
func (*AnalyzeOrgPoliciesResponse_OrgPolicyResult) Descriptor
func (*AnalyzeOrgPoliciesResponse_OrgPolicyResult) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeOrgPoliciesResponse_OrgPolicyResult.ProtoReflect.Descriptor instead.
func (*AnalyzeOrgPoliciesResponse_OrgPolicyResult) GetConsolidatedPolicy
func (x *AnalyzeOrgPoliciesResponse_OrgPolicyResult) GetConsolidatedPolicy() *AnalyzerOrgPolicyfunc (*AnalyzeOrgPoliciesResponse_OrgPolicyResult) GetFolders
func (x *AnalyzeOrgPoliciesResponse_OrgPolicyResult) GetFolders() []stringfunc (*AnalyzeOrgPoliciesResponse_OrgPolicyResult) GetOrganization
func (x *AnalyzeOrgPoliciesResponse_OrgPolicyResult) GetOrganization() stringfunc (*AnalyzeOrgPoliciesResponse_OrgPolicyResult) GetPolicyBundle
func (x *AnalyzeOrgPoliciesResponse_OrgPolicyResult) GetPolicyBundle() []*AnalyzerOrgPolicyfunc (*AnalyzeOrgPoliciesResponse_OrgPolicyResult) GetProject
func (x *AnalyzeOrgPoliciesResponse_OrgPolicyResult) GetProject() stringfunc (*AnalyzeOrgPoliciesResponse_OrgPolicyResult) ProtoMessage
func (*AnalyzeOrgPoliciesResponse_OrgPolicyResult) ProtoMessage()func (*AnalyzeOrgPoliciesResponse_OrgPolicyResult) ProtoReflect
func (x *AnalyzeOrgPoliciesResponse_OrgPolicyResult) ProtoReflect() protoreflect.Messagefunc (*AnalyzeOrgPoliciesResponse_OrgPolicyResult) Reset
func (x *AnalyzeOrgPoliciesResponse_OrgPolicyResult) Reset()func (*AnalyzeOrgPoliciesResponse_OrgPolicyResult) String
func (x *AnalyzeOrgPoliciesResponse_OrgPolicyResult) String() stringAnalyzeOrgPolicyGovernedAssetsRequest
type AnalyzeOrgPolicyGovernedAssetsRequest struct {
// Required. The organization to scope the request. Only organization
// policies within the scope will be analyzed. The output assets will
// also be limited to the ones governed by those in-scope organization
// policies.
//
// * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
// Required. The name of the constraint to analyze governed assets for. The
// analysis only contains analyzed organization policies for the provided
// constraint.
Constraint string `protobuf:"bytes,2,opt,name=constraint,proto3" json:"constraint,omitempty"`
// The expression to filter
// [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets].
//
// For governed resources, filtering is currently available for bare literal
// values and the following fields:
// * governed_resource.project
// * governed_resource.folders
// * consolidated_policy.rules.enforce
// When filtering by `governed_resource.project` or
// `consolidated_policy.rules.enforce`, the only supported operator is `=`.
// When filtering by `governed_resource.folders`, the supported operators
// are `=` and `:`.
// For example, filtering by `governed_resource.project="projects/12345678"`
// will return all the governed resources under "projects/12345678",
// including the project itself if applicable.
//
// For governed IAM policies, filtering is currently available for bare
// literal values and the following fields:
// * governed_iam_policy.project
// * governed_iam_policy.folders
// * consolidated_policy.rules.enforce
// When filtering by `governed_iam_policy.project` or
// `consolidated_policy.rules.enforce`, the only supported operator is `=`.
// When filtering by `governed_iam_policy.folders`, the supported operators
// are `=` and `:`.
// For example, filtering by `governed_iam_policy.folders:"folders/12345678"`
// will return all the governed IAM policies under "folders/001".
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// The maximum number of items to return per page. If unspecified,
// [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets]
// will contain 100 items with a maximum of 200.
PageSize *int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"`
// The pagination token to retrieve the next page.
PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}A request message for [AssetService.AnalyzeOrgPolicyGovernedAssets][google.cloud.asset.v1.AssetService.AnalyzeOrgPolicyGovernedAssets].
func (*AnalyzeOrgPolicyGovernedAssetsRequest) Descriptor
func (*AnalyzeOrgPolicyGovernedAssetsRequest) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeOrgPolicyGovernedAssetsRequest.ProtoReflect.Descriptor instead.
func (*AnalyzeOrgPolicyGovernedAssetsRequest) GetConstraint
func (x *AnalyzeOrgPolicyGovernedAssetsRequest) GetConstraint() stringfunc (*AnalyzeOrgPolicyGovernedAssetsRequest) GetFilter
func (x *AnalyzeOrgPolicyGovernedAssetsRequest) GetFilter() stringfunc (*AnalyzeOrgPolicyGovernedAssetsRequest) GetPageSize
func (x *AnalyzeOrgPolicyGovernedAssetsRequest) GetPageSize() int32func (*AnalyzeOrgPolicyGovernedAssetsRequest) GetPageToken
func (x *AnalyzeOrgPolicyGovernedAssetsRequest) GetPageToken() stringfunc (*AnalyzeOrgPolicyGovernedAssetsRequest) GetScope
func (x *AnalyzeOrgPolicyGovernedAssetsRequest) GetScope() stringfunc (*AnalyzeOrgPolicyGovernedAssetsRequest) ProtoMessage
func (*AnalyzeOrgPolicyGovernedAssetsRequest) ProtoMessage()func (*AnalyzeOrgPolicyGovernedAssetsRequest) ProtoReflect
func (x *AnalyzeOrgPolicyGovernedAssetsRequest) ProtoReflect() protoreflect.Messagefunc (*AnalyzeOrgPolicyGovernedAssetsRequest) Reset
func (x *AnalyzeOrgPolicyGovernedAssetsRequest) Reset()func (*AnalyzeOrgPolicyGovernedAssetsRequest) String
func (x *AnalyzeOrgPolicyGovernedAssetsRequest) String() stringAnalyzeOrgPolicyGovernedAssetsResponse
type AnalyzeOrgPolicyGovernedAssetsResponse struct {
// The list of the analyzed governed assets.
GovernedAssets []*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset `protobuf:"bytes,1,rep,name=governed_assets,json=governedAssets,proto3" json:"governed_assets,omitempty"`
// The definition of the constraint in the request.
Constraint *AnalyzerOrgPolicyConstraint `protobuf:"bytes,2,opt,name=constraint,proto3" json:"constraint,omitempty"`
// The page token to fetch the next page for
// [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets].
NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response message for [AssetService.AnalyzeOrgPolicyGovernedAssets][google.cloud.asset.v1.AssetService.AnalyzeOrgPolicyGovernedAssets].
func (*AnalyzeOrgPolicyGovernedAssetsResponse) Descriptor
func (*AnalyzeOrgPolicyGovernedAssetsResponse) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeOrgPolicyGovernedAssetsResponse.ProtoReflect.Descriptor instead.
func (*AnalyzeOrgPolicyGovernedAssetsResponse) GetConstraint
func (x *AnalyzeOrgPolicyGovernedAssetsResponse) GetConstraint() *AnalyzerOrgPolicyConstraintfunc (*AnalyzeOrgPolicyGovernedAssetsResponse) GetGovernedAssets
func (x *AnalyzeOrgPolicyGovernedAssetsResponse) GetGovernedAssets() []*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAssetfunc (*AnalyzeOrgPolicyGovernedAssetsResponse) GetNextPageToken
func (x *AnalyzeOrgPolicyGovernedAssetsResponse) GetNextPageToken() stringfunc (*AnalyzeOrgPolicyGovernedAssetsResponse) ProtoMessage
func (*AnalyzeOrgPolicyGovernedAssetsResponse) ProtoMessage()func (*AnalyzeOrgPolicyGovernedAssetsResponse) ProtoReflect
func (x *AnalyzeOrgPolicyGovernedAssetsResponse) ProtoReflect() protoreflect.Messagefunc (*AnalyzeOrgPolicyGovernedAssetsResponse) Reset
func (x *AnalyzeOrgPolicyGovernedAssetsResponse) Reset()func (*AnalyzeOrgPolicyGovernedAssetsResponse) String
func (x *AnalyzeOrgPolicyGovernedAssetsResponse) String() stringAnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset
type AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset struct {
// Types that are valid to be assigned to GovernedAsset:
//
// *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_GovernedResource
// *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_GovernedIamPolicy
GovernedAsset isAnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_GovernedAsset `protobuf_oneof:"governed_asset"`
// The consolidated policy for the analyzed asset. The consolidated
// policy is computed by merging and evaluating
// [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle].
// The evaluation will respect the organization policy [hierarchy
// rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
ConsolidatedPolicy *AnalyzerOrgPolicy `protobuf:"bytes,3,opt,name=consolidated_policy,json=consolidatedPolicy,proto3" json:"consolidated_policy,omitempty"`
// The ordered list of all organization policies from the
// [consolidated_policy.attached_resource][google.cloud.asset.v1.AnalyzerOrgPolicy.attached_resource]
// to the scope specified in the request.
//
// If the constraint is defined with default policy, it will also appear in
// the list.
PolicyBundle []*AnalyzerOrgPolicy `protobuf:"bytes,4,rep,name=policy_bundle,json=policyBundle,proto3" json:"policy_bundle,omitempty"`
// contains filtered or unexported fields
}Represents a Google Cloud asset(resource or IAM policy) governed by the organization policies of the [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
func (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) Descriptor
func (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset.ProtoReflect.Descriptor instead.
func (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) GetConsolidatedPolicy
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) GetConsolidatedPolicy() *AnalyzerOrgPolicyfunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) GetGovernedAsset
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) GetGovernedAsset() isAnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_GovernedAssetfunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) GetGovernedIamPolicy
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) GetGovernedIamPolicy() *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicyfunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) GetGovernedResource
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) GetGovernedResource() *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResourcefunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) GetPolicyBundle
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) GetPolicyBundle() []*AnalyzerOrgPolicyfunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) ProtoMessage
func (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) ProtoMessage()func (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) ProtoReflect
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) ProtoReflect() protoreflect.Messagefunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) Reset
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) Reset()func (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) String
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset) String() stringAnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_GovernedIamPolicy
type AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_GovernedIamPolicy struct {
// An IAM policy governed by the organization
// policies of the
// [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
GovernedIamPolicy *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy `protobuf:"bytes,2,opt,name=governed_iam_policy,json=governedIamPolicy,proto3,oneof"`
}AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_GovernedResource
type AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_GovernedResource struct {
// A Google Cloud resource governed by the organization
// policies of the
// [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
GovernedResource *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource `protobuf:"bytes,1,opt,name=governed_resource,json=governedResource,proto3,oneof"`
}AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy
type AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy struct {
// The full resource name of the resource on which this IAM policy is set.
// Example:
// `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
// See [Cloud Asset Inventory Resource Name
// Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
// for more information.
AttachedResource string `protobuf:"bytes,1,opt,name=attached_resource,json=attachedResource,proto3" json:"attached_resource,omitempty"`
// The IAM policy directly set on the given resource.
Policy *iampb.Policy `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
// The project that this IAM policy belongs to, in the format of
// projects/{PROJECT_NUMBER}. This field is available when the IAM policy
// belongs to a project.
Project string `protobuf:"bytes,5,opt,name=project,proto3" json:"project,omitempty"`
// The folder(s) that this IAM policy belongs to, in the format of
// folders/{FOLDER_NUMBER}. This field is available when the IAM policy
// belongs (directly or cascadingly) to one or more folders.
Folders []string `protobuf:"bytes,6,rep,name=folders,proto3" json:"folders,omitempty"`
// The organization that this IAM policy belongs to, in the format of
// organizations/{ORGANIZATION_NUMBER}. This field is available when the
// IAM policy belongs (directly or cascadingly) to an organization.
Organization string `protobuf:"bytes,7,opt,name=organization,proto3" json:"organization,omitempty"`
// The asset type of the
// [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource].
// Example:
// `cloudresourcemanager.googleapis.com/Project`
// See [Cloud Asset Inventory Supported Asset
// Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
// for all supported asset types.
AssetType string `protobuf:"bytes,8,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"`
// contains filtered or unexported fields
}The IAM policies governed by the organization policies of the [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
func (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) Descriptor
func (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy.ProtoReflect.Descriptor instead.
func (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) GetAssetType
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) GetAssetType() stringfunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) GetAttachedResource
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) GetAttachedResource() stringfunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) GetFolders
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) GetFolders() []stringfunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) GetOrganization
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) GetOrganization() stringfunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) GetPolicy
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) GetPolicy() *iampb.Policyfunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) GetProject
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) GetProject() stringfunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) ProtoMessage
func (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) ProtoMessage()func (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) ProtoReflect
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) ProtoReflect() protoreflect.Messagefunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) Reset
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) Reset()func (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) String
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) String() stringAnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource
type AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource struct {
// The [full resource name]
// (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
// the Google Cloud resource.
FullResourceName string `protobuf:"bytes,1,opt,name=full_resource_name,json=fullResourceName,proto3" json:"full_resource_name,omitempty"`
// The [full resource name]
// (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
// the parent of
// [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name].
Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
// The project that this resource belongs to, in the format of
// projects/{PROJECT_NUMBER}. This field is available when the resource
// belongs to a project.
Project string `protobuf:"bytes,5,opt,name=project,proto3" json:"project,omitempty"`
// The folder(s) that this resource belongs to, in the format of
// folders/{FOLDER_NUMBER}. This field is available when the resource
// belongs (directly or cascadingly) to one or more folders.
Folders []string `protobuf:"bytes,6,rep,name=folders,proto3" json:"folders,omitempty"`
// The organization that this resource belongs to, in the format of
// organizations/{ORGANIZATION_NUMBER}. This field is available when the
// resource belongs (directly or cascadingly) to an organization.
Organization string `protobuf:"bytes,7,opt,name=organization,proto3" json:"organization,omitempty"`
// The asset type of the
// [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name]
// Example:
// `cloudresourcemanager.googleapis.com/Project`
// See [Cloud Asset Inventory Supported Asset
// Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
// for all supported asset types.
AssetType string `protobuf:"bytes,8,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"`
// The effective tags on this resource.
EffectiveTags []*EffectiveTagDetails `protobuf:"bytes,9,rep,name=effective_tags,json=effectiveTags,proto3" json:"effective_tags,omitempty"`
// contains filtered or unexported fields
}The Google Cloud resources governed by the organization policies of the [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
func (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) Descriptor
func (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource.ProtoReflect.Descriptor instead.
func (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) GetAssetType
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) GetAssetType() stringfunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) GetEffectiveTags
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) GetEffectiveTags() []*EffectiveTagDetailsfunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) GetFolders
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) GetFolders() []stringfunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) GetFullResourceName
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) GetFullResourceName() stringfunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) GetOrganization
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) GetOrganization() stringfunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) GetParent
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) GetParent() stringfunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) GetProject
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) GetProject() stringfunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) ProtoMessage
func (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) ProtoMessage()func (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) ProtoReflect
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) ProtoReflect() protoreflect.Messagefunc (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) Reset
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) Reset()func (*AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) String
func (x *AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) String() stringAnalyzeOrgPolicyGovernedContainersRequest
type AnalyzeOrgPolicyGovernedContainersRequest struct {
// Required. The organization to scope the request. Only organization
// policies within the scope will be analyzed. The output containers will
// also be limited to the ones governed by those in-scope organization
// policies.
//
// * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
// Required. The name of the constraint to analyze governed containers for.
// The analysis only contains organization policies for the provided
// constraint.
Constraint string `protobuf:"bytes,2,opt,name=constraint,proto3" json:"constraint,omitempty"`
// The expression to filter
// [AnalyzeOrgPolicyGovernedContainersResponse.governed_containers][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.governed_containers].
// Filtering is currently available for bare literal values and the following
// fields:
// * parent
// * consolidated_policy.rules.enforce
//
// When filtering by a specific field, the only supported operator is `=`.
// For example, filtering by
// parent="//cloudresourcemanager.googleapis.com/folders/001"
// will return all the containers under "folders/001".
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// The maximum number of items to return per page. If unspecified,
// [AnalyzeOrgPolicyGovernedContainersResponse.governed_containers][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.governed_containers]
// will contain 100 items with a maximum of 200.
PageSize *int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"`
// The pagination token to retrieve the next page.
PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}A request message for [AssetService.AnalyzeOrgPolicyGovernedContainers][google.cloud.asset.v1.AssetService.AnalyzeOrgPolicyGovernedContainers].
func (*AnalyzeOrgPolicyGovernedContainersRequest) Descriptor
func (*AnalyzeOrgPolicyGovernedContainersRequest) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeOrgPolicyGovernedContainersRequest.ProtoReflect.Descriptor instead.
func (*AnalyzeOrgPolicyGovernedContainersRequest) GetConstraint
func (x *AnalyzeOrgPolicyGovernedContainersRequest) GetConstraint() stringfunc (*AnalyzeOrgPolicyGovernedContainersRequest) GetFilter
func (x *AnalyzeOrgPolicyGovernedContainersRequest) GetFilter() stringfunc (*AnalyzeOrgPolicyGovernedContainersRequest) GetPageSize
func (x *AnalyzeOrgPolicyGovernedContainersRequest) GetPageSize() int32func (*AnalyzeOrgPolicyGovernedContainersRequest) GetPageToken
func (x *AnalyzeOrgPolicyGovernedContainersRequest) GetPageToken() stringfunc (*AnalyzeOrgPolicyGovernedContainersRequest) GetScope
func (x *AnalyzeOrgPolicyGovernedContainersRequest) GetScope() stringfunc (*AnalyzeOrgPolicyGovernedContainersRequest) ProtoMessage
func (*AnalyzeOrgPolicyGovernedContainersRequest) ProtoMessage()func (*AnalyzeOrgPolicyGovernedContainersRequest) ProtoReflect
func (x *AnalyzeOrgPolicyGovernedContainersRequest) ProtoReflect() protoreflect.Messagefunc (*AnalyzeOrgPolicyGovernedContainersRequest) Reset
func (x *AnalyzeOrgPolicyGovernedContainersRequest) Reset()func (*AnalyzeOrgPolicyGovernedContainersRequest) String
func (x *AnalyzeOrgPolicyGovernedContainersRequest) String() stringAnalyzeOrgPolicyGovernedContainersResponse
type AnalyzeOrgPolicyGovernedContainersResponse struct {
// The list of the analyzed governed containers.
GovernedContainers []*AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer `protobuf:"bytes,1,rep,name=governed_containers,json=governedContainers,proto3" json:"governed_containers,omitempty"`
// The definition of the constraint in the request.
Constraint *AnalyzerOrgPolicyConstraint `protobuf:"bytes,2,opt,name=constraint,proto3" json:"constraint,omitempty"`
// The page token to fetch the next page for
// [AnalyzeOrgPolicyGovernedContainersResponse.governed_containers][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.governed_containers].
NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response message for [AssetService.AnalyzeOrgPolicyGovernedContainers][google.cloud.asset.v1.AssetService.AnalyzeOrgPolicyGovernedContainers].
func (*AnalyzeOrgPolicyGovernedContainersResponse) Descriptor
func (*AnalyzeOrgPolicyGovernedContainersResponse) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeOrgPolicyGovernedContainersResponse.ProtoReflect.Descriptor instead.
func (*AnalyzeOrgPolicyGovernedContainersResponse) GetConstraint
func (x *AnalyzeOrgPolicyGovernedContainersResponse) GetConstraint() *AnalyzerOrgPolicyConstraintfunc (*AnalyzeOrgPolicyGovernedContainersResponse) GetGovernedContainers
func (x *AnalyzeOrgPolicyGovernedContainersResponse) GetGovernedContainers() []*AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainerfunc (*AnalyzeOrgPolicyGovernedContainersResponse) GetNextPageToken
func (x *AnalyzeOrgPolicyGovernedContainersResponse) GetNextPageToken() stringfunc (*AnalyzeOrgPolicyGovernedContainersResponse) ProtoMessage
func (*AnalyzeOrgPolicyGovernedContainersResponse) ProtoMessage()func (*AnalyzeOrgPolicyGovernedContainersResponse) ProtoReflect
func (x *AnalyzeOrgPolicyGovernedContainersResponse) ProtoReflect() protoreflect.Messagefunc (*AnalyzeOrgPolicyGovernedContainersResponse) Reset
func (x *AnalyzeOrgPolicyGovernedContainersResponse) Reset()func (*AnalyzeOrgPolicyGovernedContainersResponse) String
func (x *AnalyzeOrgPolicyGovernedContainersResponse) String() stringAnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer
type AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer struct {
// The [full resource name]
// (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
// an organization/folder/project resource.
FullResourceName string `protobuf:"bytes,1,opt,name=full_resource_name,json=fullResourceName,proto3" json:"full_resource_name,omitempty"`
// The [full resource name]
// (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
// the parent of
// [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.full_resource_name].
Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
// The consolidated organization policy for the analyzed resource. The
// consolidated organization policy is computed by merging and evaluating
// [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy_bundle].
// The evaluation will respect the organization policy [hierarchy
// rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
ConsolidatedPolicy *AnalyzerOrgPolicy `protobuf:"bytes,3,opt,name=consolidated_policy,json=consolidatedPolicy,proto3" json:"consolidated_policy,omitempty"`
// The ordered list of all organization policies from the
// [consolidated_policy.attached_resource][google.cloud.asset.v1.AnalyzerOrgPolicy.attached_resource].
// to the scope specified in the request.
//
// If the constraint is defined with default policy, it will also appear in
// the list.
PolicyBundle []*AnalyzerOrgPolicy `protobuf:"bytes,4,rep,name=policy_bundle,json=policyBundle,proto3" json:"policy_bundle,omitempty"`
// The project that this resource belongs to, in the format of
// projects/{PROJECT_NUMBER}. This field is available when the resource
// belongs to a project.
Project string `protobuf:"bytes,5,opt,name=project,proto3" json:"project,omitempty"`
// The folder(s) that this resource belongs to, in the format of
// folders/{FOLDER_NUMBER}. This field is available when the resource
// belongs (directly or cascadingly) to one or more folders.
Folders []string `protobuf:"bytes,6,rep,name=folders,proto3" json:"folders,omitempty"`
// The organization that this resource belongs to, in the format of
// organizations/{ORGANIZATION_NUMBER}. This field is available when the
// resource belongs (directly or cascadingly) to an organization.
Organization string `protobuf:"bytes,7,opt,name=organization,proto3" json:"organization,omitempty"`
// The effective tags on this resource.
EffectiveTags []*EffectiveTagDetails `protobuf:"bytes,8,rep,name=effective_tags,json=effectiveTags,proto3" json:"effective_tags,omitempty"`
// contains filtered or unexported fields
}The organization/folder/project resource governed by organization policies of [AnalyzeOrgPolicyGovernedContainersRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest.constraint].
func (*AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) Descriptor
func (*AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) Descriptor() ([]byte, []int)Deprecated: Use AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer.ProtoReflect.Descriptor instead.
func (*AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) GetConsolidatedPolicy
func (x *AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) GetConsolidatedPolicy() *AnalyzerOrgPolicyfunc (*AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) GetEffectiveTags
func (x *AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) GetEffectiveTags() []*EffectiveTagDetailsfunc (*AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) GetFolders
func (x *AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) GetFolders() []stringfunc (*AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) GetFullResourceName
func (x *AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) GetFullResourceName() stringfunc (*AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) GetOrganization
func (x *AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) GetOrganization() stringfunc (*AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) GetParent
func (x *AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) GetParent() stringfunc (*AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) GetPolicyBundle
func (x *AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) GetPolicyBundle() []*AnalyzerOrgPolicyfunc (*AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) GetProject
func (x *AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) GetProject() stringfunc (*AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) ProtoMessage
func (*AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) ProtoMessage()func (*AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) ProtoReflect
func (x *AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) ProtoReflect() protoreflect.Messagefunc (*AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) Reset
func (x *AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) Reset()func (*AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) String
func (x *AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer) String() stringAnalyzerOrgPolicy
type AnalyzerOrgPolicy struct {
// The [full resource name]
// (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
// an organization/folder/project resource where this organization policy is
// set.
//
// Notice that some type of constraints are defined with default policy. This
// field will be empty for them.
AttachedResource string `protobuf:"bytes,1,opt,name=attached_resource,json=attachedResource,proto3" json:"attached_resource,omitempty"`
// The [full resource name]
// (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
// an organization/folder/project resource where this organization policy
// applies to.
//
// For any user defined org policies, this field has the same value as
// the [attached_resource] field. Only for default policy, this field has
// the different value.
AppliedResource string `protobuf:"bytes,5,opt,name=applied_resource,json=appliedResource,proto3" json:"applied_resource,omitempty"`
// List of rules for this organization policy.
Rules []*AnalyzerOrgPolicy_Rule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"`
// If `inherit_from_parent` is true, Rules set higher up in the
// hierarchy (up to the closest root) are inherited and present in the
// effective policy. If it is false, then no rules are inherited, and this
// policy becomes the effective root for evaluation.
InheritFromParent bool `protobuf:"varint,3,opt,name=inherit_from_parent,json=inheritFromParent,proto3" json:"inherit_from_parent,omitempty"`
// Ignores policies set above this resource and restores the default behavior
// of the constraint at this resource.
// This field can be set in policies for either list or boolean
// constraints. If set, `rules` must be empty and `inherit_from_parent`
// must be set to false.
Reset_ bool `protobuf:"varint,4,opt,name=reset,proto3" json:"reset,omitempty"`
// contains filtered or unexported fields
}This organization policy message is a modified version of the one defined in the Organization Policy system. This message contains several fields defined in the original organization policy with some new fields for analysis purpose.
func (*AnalyzerOrgPolicy) Descriptor
func (*AnalyzerOrgPolicy) Descriptor() ([]byte, []int)Deprecated: Use AnalyzerOrgPolicy.ProtoReflect.Descriptor instead.
func (*AnalyzerOrgPolicy) GetAppliedResource
func (x *AnalyzerOrgPolicy) GetAppliedResource() stringfunc (*AnalyzerOrgPolicy) GetAttachedResource
func (x *AnalyzerOrgPolicy) GetAttachedResource() stringfunc (*AnalyzerOrgPolicy) GetInheritFromParent
func (x *AnalyzerOrgPolicy) GetInheritFromParent() boolfunc (*AnalyzerOrgPolicy) GetReset_
func (x *AnalyzerOrgPolicy) GetReset_() boolfunc (*AnalyzerOrgPolicy) GetRules
func (x *AnalyzerOrgPolicy) GetRules() []*AnalyzerOrgPolicy_Rulefunc (*AnalyzerOrgPolicy) ProtoMessage
func (*AnalyzerOrgPolicy) ProtoMessage()func (*AnalyzerOrgPolicy) ProtoReflect
func (x *AnalyzerOrgPolicy) ProtoReflect() protoreflect.Messagefunc (*AnalyzerOrgPolicy) Reset
func (x *AnalyzerOrgPolicy) Reset()func (*AnalyzerOrgPolicy) String
func (x *AnalyzerOrgPolicy) String() stringAnalyzerOrgPolicyConstraint
type AnalyzerOrgPolicyConstraint struct {
// Types that are valid to be assigned to ConstraintDefinition:
//
// *AnalyzerOrgPolicyConstraint_GoogleDefinedConstraint
// *AnalyzerOrgPolicyConstraint_CustomConstraint_
ConstraintDefinition isAnalyzerOrgPolicyConstraint_ConstraintDefinition `protobuf_oneof:"constraint_definition"`
// contains filtered or unexported fields
}The organization policy constraint definition.
func (*AnalyzerOrgPolicyConstraint) Descriptor
func (*AnalyzerOrgPolicyConstraint) Descriptor() ([]byte, []int)Deprecated: Use AnalyzerOrgPolicyConstraint.ProtoReflect.Descriptor instead.
func (*AnalyzerOrgPolicyConstraint) GetConstraintDefinition
func (x *AnalyzerOrgPolicyConstraint) GetConstraintDefinition() isAnalyzerOrgPolicyConstraint_ConstraintDefinitionfunc (*AnalyzerOrgPolicyConstraint) GetCustomConstraint
func (x *AnalyzerOrgPolicyConstraint) GetCustomConstraint() *AnalyzerOrgPolicyConstraint_CustomConstraintfunc (*AnalyzerOrgPolicyConstraint) GetGoogleDefinedConstraint
func (x *AnalyzerOrgPolicyConstraint) GetGoogleDefinedConstraint() *AnalyzerOrgPolicyConstraint_Constraintfunc (*AnalyzerOrgPolicyConstraint) ProtoMessage
func (*AnalyzerOrgPolicyConstraint) ProtoMessage()func (*AnalyzerOrgPolicyConstraint) ProtoReflect
func (x *AnalyzerOrgPolicyConstraint) ProtoReflect() protoreflect.Messagefunc (*AnalyzerOrgPolicyConstraint) Reset
func (x *AnalyzerOrgPolicyConstraint) Reset()func (*AnalyzerOrgPolicyConstraint) String
func (x *AnalyzerOrgPolicyConstraint) String() stringAnalyzerOrgPolicyConstraint_Constraint
type AnalyzerOrgPolicyConstraint_Constraint struct {
// The unique name of the constraint. Format of the name should be
// * `constraints/{constraint_name}`
//
// For example, `constraints/compute.disableSerialPortAccess`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The human readable name of the constraint.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Detailed description of what this `Constraint` controls as well as how
// and where it is enforced.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// The evaluation behavior of this constraint in the absence of 'Policy'.
ConstraintDefault AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault `protobuf:"varint,4,opt,name=constraint_default,json=constraintDefault,proto3,enum=google.cloud.asset.v1.AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault" json:"constraint_default,omitempty"`
// The type of restrictions for this `Constraint`.
//
// Immutable after creation.
//
// Types that are valid to be assigned to ConstraintType:
//
// *AnalyzerOrgPolicyConstraint_Constraint_ListConstraint_
// *AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint_
ConstraintType isAnalyzerOrgPolicyConstraint_Constraint_ConstraintType `protobuf_oneof:"constraint_type"`
// contains filtered or unexported fields
}The definition of a constraint.
func (*AnalyzerOrgPolicyConstraint_Constraint) Descriptor
func (*AnalyzerOrgPolicyConstraint_Constraint) Descriptor() ([]byte, []int)Deprecated: Use AnalyzerOrgPolicyConstraint_Constraint.ProtoReflect.Descriptor instead.
func (*AnalyzerOrgPolicyConstraint_Constraint) GetBooleanConstraint
func (x *AnalyzerOrgPolicyConstraint_Constraint) GetBooleanConstraint() *AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraintfunc (*AnalyzerOrgPolicyConstraint_Constraint) GetConstraintDefault
func (x *AnalyzerOrgPolicyConstraint_Constraint) GetConstraintDefault() AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefaultfunc (*AnalyzerOrgPolicyConstraint_Constraint) GetConstraintType
func (x *AnalyzerOrgPolicyConstraint_Constraint) GetConstraintType() isAnalyzerOrgPolicyConstraint_Constraint_ConstraintTypefunc (*AnalyzerOrgPolicyConstraint_Constraint) GetDescription
func (x *AnalyzerOrgPolicyConstraint_Constraint) GetDescription() stringfunc (*AnalyzerOrgPolicyConstraint_Constraint) GetDisplayName
func (x *AnalyzerOrgPolicyConstraint_Constraint) GetDisplayName() stringfunc (*AnalyzerOrgPolicyConstraint_Constraint) GetListConstraint
func (x *AnalyzerOrgPolicyConstraint_Constraint) GetListConstraint() *AnalyzerOrgPolicyConstraint_Constraint_ListConstraintfunc (*AnalyzerOrgPolicyConstraint_Constraint) GetName
func (x *AnalyzerOrgPolicyConstraint_Constraint) GetName() stringfunc (*AnalyzerOrgPolicyConstraint_Constraint) ProtoMessage
func (*AnalyzerOrgPolicyConstraint_Constraint) ProtoMessage()func (*AnalyzerOrgPolicyConstraint_Constraint) ProtoReflect
func (x *AnalyzerOrgPolicyConstraint_Constraint) ProtoReflect() protoreflect.Messagefunc (*AnalyzerOrgPolicyConstraint_Constraint) Reset
func (x *AnalyzerOrgPolicyConstraint_Constraint) Reset()func (*AnalyzerOrgPolicyConstraint_Constraint) String
func (x *AnalyzerOrgPolicyConstraint_Constraint) String() stringAnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint
type AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint struct {
// contains filtered or unexported fields
}A Constraint that is either enforced or not.
For example a constraint constraints/compute.disableSerialPortAccess.
If it is enforced on a VM instance, serial port connections will not be
opened to that instance.
func (*AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint) Descriptor
func (*AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint) Descriptor() ([]byte, []int)Deprecated: Use AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint.ProtoReflect.Descriptor instead.
func (*AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint) ProtoMessage
func (*AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint) ProtoMessage()func (*AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint) ProtoReflect
func (x *AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint) ProtoReflect() protoreflect.Messagefunc (*AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint) Reset
func (x *AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint) Reset()func (*AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint) String
func (x *AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint) String() stringAnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint_
type AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint_ struct {
// Defines this constraint as being a BooleanConstraint.
BooleanConstraint *AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint `protobuf:"bytes,6,opt,name=boolean_constraint,json=booleanConstraint,proto3,oneof"`
}AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault
type AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault int32Specifies the default behavior in the absence of any Policy for the
Constraint. This must not be CONSTRAINT_DEFAULT_UNSPECIFIED.
AnalyzerOrgPolicyConstraint_Constraint_CONSTRAINT_DEFAULT_UNSPECIFIED, AnalyzerOrgPolicyConstraint_Constraint_ALLOW, AnalyzerOrgPolicyConstraint_Constraint_DENY
const (
// This is only used for distinguishing unset values and should never be
// used.
AnalyzerOrgPolicyConstraint_Constraint_CONSTRAINT_DEFAULT_UNSPECIFIED AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault = 0
// Indicate that all values are allowed for list constraints.
// Indicate that enforcement is off for boolean constraints.
AnalyzerOrgPolicyConstraint_Constraint_ALLOW AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault = 1
// Indicate that all values are denied for list constraints.
// Indicate that enforcement is on for boolean constraints.
AnalyzerOrgPolicyConstraint_Constraint_DENY AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault = 2
)func (AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault) Descriptor
func (AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault) Descriptor() protoreflect.EnumDescriptorfunc (AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault) Enum
func (x AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault) Enum() *AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefaultfunc (AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault) EnumDescriptor
func (AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault) EnumDescriptor() ([]byte, []int)Deprecated: Use AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault.Descriptor instead.
func (AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault) Number
func (x AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault) Number() protoreflect.EnumNumberfunc (AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault) String
func (x AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault) String() stringfunc (AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault) Type
AnalyzerOrgPolicyConstraint_Constraint_ListConstraint
type AnalyzerOrgPolicyConstraint_Constraint_ListConstraint struct {
// Indicates whether values grouped into categories can be used in
// `Policy.allowed_values` and `Policy.denied_values`. For example,
// `"in:Python"` would match any value in the 'Python' group.
SupportsIn bool `protobuf:"varint,1,opt,name=supports_in,json=supportsIn,proto3" json:"supports_in,omitempty"`
// Indicates whether subtrees of Cloud Resource Manager resource hierarchy
// can be used in `Policy.allowed_values` and `Policy.denied_values`. For
// example, `"under:folders/123"` would match any resource under the
// 'folders/123' folder.
SupportsUnder bool `protobuf:"varint,2,opt,name=supports_under,json=supportsUnder,proto3" json:"supports_under,omitempty"`
// contains filtered or unexported fields
}A Constraint that allows or disallows a list of string values, which
are configured by an organization's policy administrator with a Policy.
func (*AnalyzerOrgPolicyConstraint_Constraint_ListConstraint) Descriptor
func (*AnalyzerOrgPolicyConstraint_Constraint_ListConstraint) Descriptor() ([]byte, []int)Deprecated: Use AnalyzerOrgPolicyConstraint_Constraint_ListConstraint.ProtoReflect.Descriptor instead.
func (*AnalyzerOrgPolicyConstraint_Constraint_ListConstraint) GetSupportsIn
func (x *AnalyzerOrgPolicyConstraint_Constraint_ListConstraint) GetSupportsIn() boolfunc (*AnalyzerOrgPolicyConstraint_Constraint_ListConstraint) GetSupportsUnder
func (x *AnalyzerOrgPolicyConstraint_Constraint_ListConstraint) GetSupportsUnder() boolfunc (*AnalyzerOrgPolicyConstraint_Constraint_ListConstraint) ProtoMessage
func (*AnalyzerOrgPolicyConstraint_Constraint_ListConstraint) ProtoMessage()func (*AnalyzerOrgPolicyConstraint_Constraint_ListConstraint) ProtoReflect
func (x *AnalyzerOrgPolicyConstraint_Constraint_ListConstraint) ProtoReflect() protoreflect.Messagefunc (*AnalyzerOrgPolicyConstraint_Constraint_ListConstraint) Reset
func (x *AnalyzerOrgPolicyConstraint_Constraint_ListConstraint) Reset()func (*AnalyzerOrgPolicyConstraint_Constraint_ListConstraint) String
func (x *AnalyzerOrgPolicyConstraint_Constraint_ListConstraint) String() stringAnalyzerOrgPolicyConstraint_Constraint_ListConstraint_
type AnalyzerOrgPolicyConstraint_Constraint_ListConstraint_ struct {
// Defines this constraint as being a ListConstraint.
ListConstraint *AnalyzerOrgPolicyConstraint_Constraint_ListConstraint `protobuf:"bytes,5,opt,name=list_constraint,json=listConstraint,proto3,oneof"`
}AnalyzerOrgPolicyConstraint_CustomConstraint
type AnalyzerOrgPolicyConstraint_CustomConstraint struct {
// Name of the constraint. This is unique within the organization. Format of
// the name should be
// * `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
//
// Example :
// "organizations/123/customConstraints/custom.createOnlyE2TypeVms"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The Resource Instance type on which this policy applies to. Format will
// be of the form : "The definition of a custom constraint.
func (*AnalyzerOrgPolicyConstraint_CustomConstraint) Descriptor
func (*AnalyzerOrgPolicyConstraint_CustomConstraint) Descriptor() ([]byte, []int)Deprecated: Use AnalyzerOrgPolicyConstraint_CustomConstraint.ProtoReflect.Descriptor instead.
func (*AnalyzerOrgPolicyConstraint_CustomConstraint) GetActionType
func (x *AnalyzerOrgPolicyConstraint_CustomConstraint) GetActionType() AnalyzerOrgPolicyConstraint_CustomConstraint_ActionTypefunc (*AnalyzerOrgPolicyConstraint_CustomConstraint) GetCondition
func (x *AnalyzerOrgPolicyConstraint_CustomConstraint) GetCondition() stringfunc (*AnalyzerOrgPolicyConstraint_CustomConstraint) GetDescription
func (x *AnalyzerOrgPolicyConstraint_CustomConstraint) GetDescription() stringfunc (*AnalyzerOrgPolicyConstraint_CustomConstraint) GetDisplayName
func (x *AnalyzerOrgPolicyConstraint_CustomConstraint) GetDisplayName() stringfunc (*AnalyzerOrgPolicyConstraint_CustomConstraint) GetMethodTypes
func (x *AnalyzerOrgPolicyConstraint_CustomConstraint) GetMethodTypes() []AnalyzerOrgPolicyConstraint_CustomConstraint_MethodTypefunc (*AnalyzerOrgPolicyConstraint_CustomConstraint) GetName
func (x *AnalyzerOrgPolicyConstraint_CustomConstraint) GetName() stringfunc (*AnalyzerOrgPolicyConstraint_CustomConstraint) GetResourceTypes
func (x *AnalyzerOrgPolicyConstraint_CustomConstraint) GetResourceTypes() []stringfunc (*AnalyzerOrgPolicyConstraint_CustomConstraint) ProtoMessage
func (*AnalyzerOrgPolicyConstraint_CustomConstraint) ProtoMessage()func (*AnalyzerOrgPolicyConstraint_CustomConstraint) ProtoReflect
func (x *AnalyzerOrgPolicyConstraint_CustomConstraint) ProtoReflect() protoreflect.Messagefunc (*AnalyzerOrgPolicyConstraint_CustomConstraint) Reset
func (x *AnalyzerOrgPolicyConstraint_CustomConstraint) Reset()func (*AnalyzerOrgPolicyConstraint_CustomConstraint) String
func (x *AnalyzerOrgPolicyConstraint_CustomConstraint) String() stringAnalyzerOrgPolicyConstraint_CustomConstraint_
type AnalyzerOrgPolicyConstraint_CustomConstraint_ struct {
// The definition of the custom constraint.
CustomConstraint *AnalyzerOrgPolicyConstraint_CustomConstraint `protobuf:"bytes,2,opt,name=custom_constraint,json=customConstraint,proto3,oneof"`
}AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType
type AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType int32Allow or deny type.
AnalyzerOrgPolicyConstraint_CustomConstraint_ACTION_TYPE_UNSPECIFIED, AnalyzerOrgPolicyConstraint_CustomConstraint_ALLOW, AnalyzerOrgPolicyConstraint_CustomConstraint_DENY
const (
// Unspecified. Will results in user error.
AnalyzerOrgPolicyConstraint_CustomConstraint_ACTION_TYPE_UNSPECIFIED AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType = 0
// Allowed action type.
AnalyzerOrgPolicyConstraint_CustomConstraint_ALLOW AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType = 1
// Deny action type.
AnalyzerOrgPolicyConstraint_CustomConstraint_DENY AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType = 2
)func (AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType) Descriptor
func (AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType) Descriptor() protoreflect.EnumDescriptorfunc (AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType) Enum
func (x AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType) Enum() *AnalyzerOrgPolicyConstraint_CustomConstraint_ActionTypefunc (AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType) EnumDescriptor
func (AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType) EnumDescriptor() ([]byte, []int)Deprecated: Use AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType.Descriptor instead.
func (AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType) Number
func (x AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType) Number() protoreflect.EnumNumberfunc (AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType) String
func (x AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType) String() stringfunc (AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType) Type
AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType
type AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType int32The operation in which this constraint will be applied. For example: If the constraint applies only when create VMs, the method_types will be "CREATE" only. If the constraint applied when create or delete VMs, the method_types will be "CREATE" and "DELETE".
AnalyzerOrgPolicyConstraint_CustomConstraint_METHOD_TYPE_UNSPECIFIED, AnalyzerOrgPolicyConstraint_CustomConstraint_CREATE, AnalyzerOrgPolicyConstraint_CustomConstraint_UPDATE, AnalyzerOrgPolicyConstraint_CustomConstraint_DELETE, AnalyzerOrgPolicyConstraint_CustomConstraint_REMOVE_GRANT, AnalyzerOrgPolicyConstraint_CustomConstraint_GOVERN_TAGS
const (
// Unspecified. Will results in user error.
AnalyzerOrgPolicyConstraint_CustomConstraint_METHOD_TYPE_UNSPECIFIED AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType = 0
// Constraint applied when creating the resource.
AnalyzerOrgPolicyConstraint_CustomConstraint_CREATE AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType = 1
// Constraint applied when updating the resource.
AnalyzerOrgPolicyConstraint_CustomConstraint_UPDATE AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType = 2
// Constraint applied when deleting the resource.
AnalyzerOrgPolicyConstraint_CustomConstraint_DELETE AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType = 3
// Constraint applied when removing an IAM grant.
AnalyzerOrgPolicyConstraint_CustomConstraint_REMOVE_GRANT AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType = 4
// Constraint applied when enforcing forced tagging.
AnalyzerOrgPolicyConstraint_CustomConstraint_GOVERN_TAGS AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType = 5
)func (AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType) Descriptor
func (AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType) Descriptor() protoreflect.EnumDescriptorfunc (AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType) Enum
func (x AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType) Enum() *AnalyzerOrgPolicyConstraint_CustomConstraint_MethodTypefunc (AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType) EnumDescriptor
func (AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType) EnumDescriptor() ([]byte, []int)Deprecated: Use AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType.Descriptor instead.
func (AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType) Number
func (x AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType) Number() protoreflect.EnumNumberfunc (AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType) String
func (x AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType) String() stringfunc (AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType) Type
AnalyzerOrgPolicyConstraint_GoogleDefinedConstraint
type AnalyzerOrgPolicyConstraint_GoogleDefinedConstraint struct {
// The definition of the canned constraint defined by Google.
GoogleDefinedConstraint *AnalyzerOrgPolicyConstraint_Constraint `protobuf:"bytes,1,opt,name=google_defined_constraint,json=googleDefinedConstraint,proto3,oneof"`
}AnalyzerOrgPolicy_Rule
type AnalyzerOrgPolicy_Rule struct {
// Types that are valid to be assigned to Kind:
//
// *AnalyzerOrgPolicy_Rule_Values
// *AnalyzerOrgPolicy_Rule_AllowAll
// *AnalyzerOrgPolicy_Rule_DenyAll
// *AnalyzerOrgPolicy_Rule_Enforce
Kind isAnalyzerOrgPolicy_Rule_Kind `protobuf_oneof:"kind"`
// The evaluating condition for this rule.
Condition *expr.Expr `protobuf:"bytes,7,opt,name=condition,proto3" json:"condition,omitempty"`
// The condition evaluation result for this rule.
// Only populated if it meets all the following criteria:
//
// * There is a
// [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
// defined for this rule.
// - This rule is within
// [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy],
// or
// [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy]
// when the
// [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset]
// has
// [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource].
ConditionEvaluation *ConditionEvaluation `protobuf:"bytes,8,opt,name=condition_evaluation,json=conditionEvaluation,proto3" json:"condition_evaluation,omitempty"`
// contains filtered or unexported fields
}This rule message is a customized version of the one defined in the Organization Policy system. In addition to the fields defined in the original organization policy, it contains additional field(s) under specific circumstances to support analysis results.
func (*AnalyzerOrgPolicy_Rule) Descriptor
func (*AnalyzerOrgPolicy_Rule) Descriptor() ([]byte, []int)Deprecated: Use AnalyzerOrgPolicy_Rule.ProtoReflect.Descriptor instead.
func (*AnalyzerOrgPolicy_Rule) GetAllowAll
func (x *AnalyzerOrgPolicy_Rule) GetAllowAll() boolfunc (*AnalyzerOrgPolicy_Rule) GetCondition
func (x *AnalyzerOrgPolicy_Rule) GetCondition() *expr.Exprfunc (*AnalyzerOrgPolicy_Rule) GetConditionEvaluation
func (x *AnalyzerOrgPolicy_Rule) GetConditionEvaluation() *ConditionEvaluationfunc (*AnalyzerOrgPolicy_Rule) GetDenyAll
func (x *AnalyzerOrgPolicy_Rule) GetDenyAll() boolfunc (*AnalyzerOrgPolicy_Rule) GetEnforce
func (x *AnalyzerOrgPolicy_Rule) GetEnforce() boolfunc (*AnalyzerOrgPolicy_Rule) GetKind
func (x *AnalyzerOrgPolicy_Rule) GetKind() isAnalyzerOrgPolicy_Rule_Kindfunc (*AnalyzerOrgPolicy_Rule) GetValues
func (x *AnalyzerOrgPolicy_Rule) GetValues() *AnalyzerOrgPolicy_Rule_StringValuesfunc (*AnalyzerOrgPolicy_Rule) ProtoMessage
func (*AnalyzerOrgPolicy_Rule) ProtoMessage()func (*AnalyzerOrgPolicy_Rule) ProtoReflect
func (x *AnalyzerOrgPolicy_Rule) ProtoReflect() protoreflect.Messagefunc (*AnalyzerOrgPolicy_Rule) Reset
func (x *AnalyzerOrgPolicy_Rule) Reset()func (*AnalyzerOrgPolicy_Rule) String
func (x *AnalyzerOrgPolicy_Rule) String() stringAnalyzerOrgPolicy_Rule_AllowAll
type AnalyzerOrgPolicy_Rule_AllowAll struct {
// Setting this to true means that all values are allowed. This field can
// be set only in Policies for list constraints.
AllowAll bool `protobuf:"varint,4,opt,name=allow_all,json=allowAll,proto3,oneof"`
}AnalyzerOrgPolicy_Rule_DenyAll
type AnalyzerOrgPolicy_Rule_DenyAll struct {
// Setting this to true means that all values are denied. This field can
// be set only in Policies for list constraints.
DenyAll bool `protobuf:"varint,5,opt,name=deny_all,json=denyAll,proto3,oneof"`
}AnalyzerOrgPolicy_Rule_Enforce
type AnalyzerOrgPolicy_Rule_Enforce struct {
// If `true`, then the `Policy` is enforced. If `false`, then any
// configuration is acceptable.
// This field can be set only in Policies for boolean constraints.
Enforce bool `protobuf:"varint,6,opt,name=enforce,proto3,oneof"`
}AnalyzerOrgPolicy_Rule_StringValues
type AnalyzerOrgPolicy_Rule_StringValues struct {
// List of values allowed at this resource.
AllowedValues []string `protobuf:"bytes,1,rep,name=allowed_values,json=allowedValues,proto3" json:"allowed_values,omitempty"`
// List of values denied at this resource.
DeniedValues []string `protobuf:"bytes,2,rep,name=denied_values,json=deniedValues,proto3" json:"denied_values,omitempty"`
// contains filtered or unexported fields
}The string values for the list constraints.
func (*AnalyzerOrgPolicy_Rule_StringValues) Descriptor
func (*AnalyzerOrgPolicy_Rule_StringValues) Descriptor() ([]byte, []int)Deprecated: Use AnalyzerOrgPolicy_Rule_StringValues.ProtoReflect.Descriptor instead.
func (*AnalyzerOrgPolicy_Rule_StringValues) GetAllowedValues
func (x *AnalyzerOrgPolicy_Rule_StringValues) GetAllowedValues() []stringfunc (*AnalyzerOrgPolicy_Rule_StringValues) GetDeniedValues
func (x *AnalyzerOrgPolicy_Rule_StringValues) GetDeniedValues() []stringfunc (*AnalyzerOrgPolicy_Rule_StringValues) ProtoMessage
func (*AnalyzerOrgPolicy_Rule_StringValues) ProtoMessage()func (*AnalyzerOrgPolicy_Rule_StringValues) ProtoReflect
func (x *AnalyzerOrgPolicy_Rule_StringValues) ProtoReflect() protoreflect.Messagefunc (*AnalyzerOrgPolicy_Rule_StringValues) Reset
func (x *AnalyzerOrgPolicy_Rule_StringValues) Reset()func (*AnalyzerOrgPolicy_Rule_StringValues) String
func (x *AnalyzerOrgPolicy_Rule_StringValues) String() stringAnalyzerOrgPolicy_Rule_Values
type AnalyzerOrgPolicy_Rule_Values struct {
// List of values to be used for this policy rule. This field can be set
// only in policies for list constraints.
Values *AnalyzerOrgPolicy_Rule_StringValues `protobuf:"bytes,3,opt,name=values,proto3,oneof"`
}Asset
type Asset struct {
// The last update timestamp of an asset. update_time is updated when
// create/update/delete operation is performed.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// The full name of the asset. Example:
// `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
//
// See [Resource
// names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
// for more information.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The type of the asset. Example: `compute.googleapis.com/Disk`
//
// See [Supported asset
// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
// for more information.
AssetType string `protobuf:"bytes,2,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"`
// A representation of the resource.
Resource *Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
// A representation of the IAM policy set on a Google Cloud resource.
// There can be a maximum of one IAM policy set on any given resource.
// In addition, IAM policies inherit their granted access scope from any
// policies set on parent resources in the resource hierarchy. Therefore, the
// effectively policy is the union of both the policy set on this resource
// and each policy set on all of the resource's ancestry resource levels in
// the hierarchy. See
// [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
// for more information.
IamPolicy *iampb.Policy `protobuf:"bytes,4,opt,name=iam_policy,json=iamPolicy,proto3" json:"iam_policy,omitempty"`
// A representation of an [organization
// policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
// There can be more than one organization policy with different constraints
// set on a given resource.
OrgPolicy []*orgpolicypb.Policy `protobuf:"bytes,6,rep,name=org_policy,json=orgPolicy,proto3" json:"org_policy,omitempty"`
// A representation of an [access
// policy](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
//
// Types that are valid to be assigned to AccessContextPolicy:
//
// *Asset_AccessPolicy
// *Asset_AccessLevel
// *Asset_ServicePerimeter
AccessContextPolicy isAsset_AccessContextPolicy `protobuf_oneof:"access_context_policy"`
// A representation of runtime OS Inventory information. See [this
// topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
// for more information.
OsInventory *osconfigpb.Inventory `protobuf:"bytes,12,opt,name=os_inventory,json=osInventory,proto3" json:"os_inventory,omitempty"`
// DEPRECATED. This field only presents for the purpose of
// backward-compatibility. The server will never generate responses with this
// field.
// The related assets of the asset of one relationship type. One asset
// only represents one type of relationship.
//
// Deprecated: Marked as deprecated in google/cloud/asset/v1/assets.proto.
RelatedAssets *RelatedAssets `protobuf:"bytes,13,opt,name=related_assets,json=relatedAssets,proto3" json:"related_assets,omitempty"`
// One related asset of the current asset.
RelatedAsset *RelatedAsset `protobuf:"bytes,15,opt,name=related_asset,json=relatedAsset,proto3" json:"related_asset,omitempty"`
// The ancestry path of an asset in Google Cloud [resource
// hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
// represented as a list of relative resource names. An ancestry path starts
// with the closest ancestor in the hierarchy and ends at root. If the asset
// is a project, folder, or organization, the ancestry path starts from the
// asset itself.
//
// Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
Ancestors []string `protobuf:"bytes,10,rep,name=ancestors,proto3" json:"ancestors,omitempty"`
// contains filtered or unexported fields
}An asset in Google Cloud. An asset can be any resource in the Google Cloud resource hierarchy, a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. IAM policy), or a relationship (e.g. an INSTANCE_TO_INSTANCEGROUP relationship). See Supported asset types for more information.
func (*Asset) Descriptor
Deprecated: Use Asset.ProtoReflect.Descriptor instead.
func (*Asset) GetAccessContextPolicy
func (x *Asset) GetAccessContextPolicy() isAsset_AccessContextPolicyfunc (*Asset) GetAccessLevel
func (x *Asset) GetAccessLevel() *accesscontextmanagerpb.AccessLevelfunc (*Asset) GetAccessPolicy
func (x *Asset) GetAccessPolicy() *accesscontextmanagerpb.AccessPolicyfunc (*Asset) GetAncestors
func (*Asset) GetAssetType
func (*Asset) GetIamPolicy
func (*Asset) GetName
func (*Asset) GetOrgPolicy
func (x *Asset) GetOrgPolicy() []*orgpolicypb.Policyfunc (*Asset) GetOsInventory
func (x *Asset) GetOsInventory() *osconfigpb.Inventoryfunc (*Asset) GetRelatedAsset
func (x *Asset) GetRelatedAsset() *RelatedAssetfunc (*Asset) GetRelatedAssets
func (x *Asset) GetRelatedAssets() *RelatedAssetsDeprecated: Marked as deprecated in google/cloud/asset/v1/assets.proto.
func (*Asset) GetResource
func (*Asset) GetServicePerimeter
func (x *Asset) GetServicePerimeter() *accesscontextmanagerpb.ServicePerimeterfunc (*Asset) GetUpdateTime
func (x *Asset) GetUpdateTime() *timestamppb.Timestampfunc (*Asset) ProtoMessage
func (*Asset) ProtoMessage()func (*Asset) ProtoReflect
func (x *Asset) ProtoReflect() protoreflect.Messagefunc (*Asset) Reset
func (x *Asset) Reset()func (*Asset) String
AssetEnrichment
type AssetEnrichment struct {
// Types that are valid to be assigned to EnrichmentData:
//
// *AssetEnrichment_ResourceOwners
EnrichmentData isAssetEnrichment_EnrichmentData `protobuf_oneof:"EnrichmentData"`
// contains filtered or unexported fields
}The enhanced metadata information for a resource.
func (*AssetEnrichment) Descriptor
func (*AssetEnrichment) Descriptor() ([]byte, []int)Deprecated: Use AssetEnrichment.ProtoReflect.Descriptor instead.
func (*AssetEnrichment) GetEnrichmentData
func (x *AssetEnrichment) GetEnrichmentData() isAssetEnrichment_EnrichmentDatafunc (*AssetEnrichment) GetResourceOwners
func (x *AssetEnrichment) GetResourceOwners() *ResourceOwnersfunc (*AssetEnrichment) ProtoMessage
func (*AssetEnrichment) ProtoMessage()func (*AssetEnrichment) ProtoReflect
func (x *AssetEnrichment) ProtoReflect() protoreflect.Messagefunc (*AssetEnrichment) Reset
func (x *AssetEnrichment) Reset()func (*AssetEnrichment) String
func (x *AssetEnrichment) String() stringAssetEnrichment_ResourceOwners
type AssetEnrichment_ResourceOwners struct {
// The resource owners for a resource.
//
// Note that this field only contains the members that have "roles/owner"
// role in the resource's IAM Policy.
ResourceOwners *ResourceOwners `protobuf:"bytes,7,opt,name=resource_owners,json=resourceOwners,proto3,oneof"`
}AssetServiceClient
type AssetServiceClient interface {
// Exports assets with time and resource types to a given Cloud Storage
// location/BigQuery table. For Cloud Storage location destinations, the
// output format is newline-delimited JSON. Each line represents a
// [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON
// format; for BigQuery table destinations, the output table stores the fields
// in asset Protobuf as columns. This API implements the
// [google.longrunning.Operation][google.longrunning.Operation] API, which
// allows you to keep track of the export. We recommend intervals of at least
// 2 seconds with exponential retry to poll the export operation result. For
// regular-size resource parent, the export operation usually finishes within
// 5 minutes.
ExportAssets(ctx context.Context, in *ExportAssetsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists assets with time and resource types and returns paged results in
// response.
ListAssets(ctx context.Context, in *ListAssetsRequest, opts ...grpc.CallOption) (*ListAssetsResponse, error)
// Batch gets the update history of assets that overlap a time window.
// For IAM_POLICY content, this API outputs history when the asset and its
// attached IAM POLICY both exist. This can create gaps in the output history.
// Otherwise, this API outputs history with asset in both non-delete or
// deleted status.
// If a specified asset does not exist, this API returns an INVALID_ARGUMENT
// error.
BatchGetAssetsHistory(ctx context.Context, in *BatchGetAssetsHistoryRequest, opts ...grpc.CallOption) (*BatchGetAssetsHistoryResponse, error)
// Creates a feed in a parent project/folder/organization to listen to its
// asset updates.
CreateFeed(ctx context.Context, in *CreateFeedRequest, opts ...grpc.CallOption) (*Feed, error)
// Gets details about an asset feed.
GetFeed(ctx context.Context, in *GetFeedRequest, opts ...grpc.CallOption) (*Feed, error)
// Lists all asset feeds in a parent project/folder/organization.
ListFeeds(ctx context.Context, in *ListFeedsRequest, opts ...grpc.CallOption) (*ListFeedsResponse, error)
// Updates an asset feed configuration.
UpdateFeed(ctx context.Context, in *UpdateFeedRequest, opts ...grpc.CallOption) (*Feed, error)
// Deletes an asset feed.
DeleteFeed(ctx context.Context, in *DeleteFeedRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Searches all Google Cloud resources within the specified scope, such as a
// project, folder, or organization. The caller must be granted the
// `cloudasset.assets.searchAllResources` permission on the desired scope,
// otherwise the request will be rejected.
SearchAllResources(ctx context.Context, in *SearchAllResourcesRequest, opts ...grpc.CallOption) (*SearchAllResourcesResponse, error)
// Searches all IAM policies within the specified scope, such as a project,
// folder, or organization. The caller must be granted the
// `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
// otherwise the request will be rejected.
SearchAllIamPolicies(ctx context.Context, in *SearchAllIamPoliciesRequest, opts ...grpc.CallOption) (*SearchAllIamPoliciesResponse, error)
// Analyzes IAM policies to answer which identities have what accesses on
// which resources.
AnalyzeIamPolicy(ctx context.Context, in *AnalyzeIamPolicyRequest, opts ...grpc.CallOption) (*AnalyzeIamPolicyResponse, error)
// Analyzes IAM policies asynchronously to answer which identities have what
// accesses on which resources, and writes the analysis results to a Google
// Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
// output format is the JSON format that represents a
// [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse].
// This method implements the
// [google.longrunning.Operation][google.longrunning.Operation], which allows
// you to track the operation status. We recommend intervals of at least 2
// seconds with exponential backoff retry to poll the operation result. The
// metadata contains the metadata for the long-running operation.
AnalyzeIamPolicyLongrunning(ctx context.Context, in *AnalyzeIamPolicyLongrunningRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Analyze moving a resource to a specified destination without kicking off
// the actual move. The analysis is best effort depending on the user's
// permissions of viewing different hierarchical policies and configurations.
// The policies and configuration are subject to change before the actual
// resource migration takes place.
AnalyzeMove(ctx context.Context, in *AnalyzeMoveRequest, opts ...grpc.CallOption) (*AnalyzeMoveResponse, error)
// Issue a job that queries assets using a SQL statement compatible with
// [BigQuery SQL](https://cloud.google.com/bigquery/docs/introduction-sql).
//
// If the query execution finishes within timeout and there's no pagination,
// the full query results will be returned in the `QueryAssetsResponse`.
//
// Otherwise, full query results can be obtained by issuing extra requests
// with the `job_reference` from the a previous `QueryAssets` call.
//
// Note, the query result has approximately 10 GB limitation enforced by
// [BigQuery](https://cloud.google.com/bigquery/docs/best-practices-performance-output).
// Queries return larger results will result in errors.
QueryAssets(ctx context.Context, in *QueryAssetsRequest, opts ...grpc.CallOption) (*QueryAssetsResponse, error)
// Creates a saved query in a parent project/folder/organization.
CreateSavedQuery(ctx context.Context, in *CreateSavedQueryRequest, opts ...grpc.CallOption) (*SavedQuery, error)
// Gets details about a saved query.
GetSavedQuery(ctx context.Context, in *GetSavedQueryRequest, opts ...grpc.CallOption) (*SavedQuery, error)
// Lists all saved queries in a parent project/folder/organization.
ListSavedQueries(ctx context.Context, in *ListSavedQueriesRequest, opts ...grpc.CallOption) (*ListSavedQueriesResponse, error)
// Updates a saved query.
UpdateSavedQuery(ctx context.Context, in *UpdateSavedQueryRequest, opts ...grpc.CallOption) (*SavedQuery, error)
// Deletes a saved query.
DeleteSavedQuery(ctx context.Context, in *DeleteSavedQueryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Gets effective IAM policies for a batch of resources.
BatchGetEffectiveIamPolicies(ctx context.Context, in *BatchGetEffectiveIamPoliciesRequest, opts ...grpc.CallOption) (*BatchGetEffectiveIamPoliciesResponse, error)
// Analyzes organization policies under a scope.
AnalyzeOrgPolicies(ctx context.Context, in *AnalyzeOrgPoliciesRequest, opts ...grpc.CallOption) (*AnalyzeOrgPoliciesResponse, error)
// Analyzes organization policies governed containers (projects, folders or
// organization) under a scope.
AnalyzeOrgPolicyGovernedContainers(ctx context.Context, in *AnalyzeOrgPolicyGovernedContainersRequest, opts ...grpc.CallOption) (*AnalyzeOrgPolicyGovernedContainersResponse, error)
// Analyzes organization policies governed assets (Google Cloud resources or
// policies) under a scope. This RPC supports custom constraints and the
// following canned constraints:
//
// * constraints/ainotebooks.accessMode
// * constraints/ainotebooks.disableFileDownloads
// * constraints/ainotebooks.disableRootAccess
// * constraints/ainotebooks.disableTerminal
// * constraints/ainotebooks.environmentOptions
// * constraints/ainotebooks.requireAutoUpgradeSchedule
// * constraints/ainotebooks.restrictVpcNetworks
// * constraints/compute.disableGuestAttributesAccess
// * constraints/compute.disableInstanceDataAccessApis
// * constraints/compute.disableNestedVirtualization
// * constraints/compute.disableSerialPortAccess
// * constraints/compute.disableSerialPortLogging
// * constraints/compute.disableVpcExternalIpv6
// * constraints/compute.requireOsLogin
// * constraints/compute.requireShieldedVm
// * constraints/compute.restrictLoadBalancerCreationForTypes
// * constraints/compute.restrictProtocolForwardingCreationForTypes
// * constraints/compute.restrictXpnProjectLienRemoval
// * constraints/compute.setNewProjectDefaultToZonalDNSOnly
// * constraints/compute.skipDefaultNetworkCreation
// * constraints/compute.trustedImageProjects
// * constraints/compute.vmCanIpForward
// * constraints/compute.vmExternalIpAccess
// * constraints/gcp.detailedAuditLoggingMode
// * constraints/gcp.resourceLocations
// * constraints/iam.allowedPolicyMemberDomains
// * constraints/iam.automaticIamGrantsForDefaultServiceAccounts
// * constraints/iam.disableServiceAccountCreation
// * constraints/iam.disableServiceAccountKeyCreation
// * constraints/iam.disableServiceAccountKeyUpload
// * constraints/iam.restrictCrossProjectServiceAccountLienRemoval
// * constraints/iam.serviceAccountKeyExpiryHours
// * constraints/resourcemanager.accessBoundaries
// * constraints/resourcemanager.allowedExportDestinations
// * constraints/sql.restrictAuthorizedNetworks
// * constraints/sql.restrictNoncompliantDiagnosticDataAccess
// * constraints/sql.restrictNoncompliantResourceCreation
// * constraints/sql.restrictPublicIp
// * constraints/storage.publicAccessPrevention
// * constraints/storage.restrictAuthTypes
// * constraints/storage.uniformBucketLevelAccess
//
// This RPC only returns either resources of types [supported by search
// APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
// or IAM policies.
AnalyzeOrgPolicyGovernedAssets(ctx context.Context, in *AnalyzeOrgPolicyGovernedAssetsRequest, opts ...grpc.CallOption) (*AnalyzeOrgPolicyGovernedAssetsResponse, error)
}AssetServiceClient is the client API for AssetService 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 NewAssetServiceClient
func NewAssetServiceClient(cc grpc.ClientConnInterface) AssetServiceClientAssetServiceServer
type AssetServiceServer interface {
// Exports assets with time and resource types to a given Cloud Storage
// location/BigQuery table. For Cloud Storage location destinations, the
// output format is newline-delimited JSON. Each line represents a
// [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON
// format; for BigQuery table destinations, the output table stores the fields
// in asset Protobuf as columns. This API implements the
// [google.longrunning.Operation][google.longrunning.Operation] API, which
// allows you to keep track of the export. We recommend intervals of at least
// 2 seconds with exponential retry to poll the export operation result. For
// regular-size resource parent, the export operation usually finishes within
// 5 minutes.
ExportAssets(context.Context, *ExportAssetsRequest) (*longrunningpb.Operation, error)
// Lists assets with time and resource types and returns paged results in
// response.
ListAssets(context.Context, *ListAssetsRequest) (*ListAssetsResponse, error)
// Batch gets the update history of assets that overlap a time window.
// For IAM_POLICY content, this API outputs history when the asset and its
// attached IAM POLICY both exist. This can create gaps in the output history.
// Otherwise, this API outputs history with asset in both non-delete or
// deleted status.
// If a specified asset does not exist, this API returns an INVALID_ARGUMENT
// error.
BatchGetAssetsHistory(context.Context, *BatchGetAssetsHistoryRequest) (*BatchGetAssetsHistoryResponse, error)
// Creates a feed in a parent project/folder/organization to listen to its
// asset updates.
CreateFeed(context.Context, *CreateFeedRequest) (*Feed, error)
// Gets details about an asset feed.
GetFeed(context.Context, *GetFeedRequest) (*Feed, error)
// Lists all asset feeds in a parent project/folder/organization.
ListFeeds(context.Context, *ListFeedsRequest) (*ListFeedsResponse, error)
// Updates an asset feed configuration.
UpdateFeed(context.Context, *UpdateFeedRequest) (*Feed, error)
// Deletes an asset feed.
DeleteFeed(context.Context, *DeleteFeedRequest) (*emptypb.Empty, error)
// Searches all Google Cloud resources within the specified scope, such as a
// project, folder, or organization. The caller must be granted the
// `cloudasset.assets.searchAllResources` permission on the desired scope,
// otherwise the request will be rejected.
SearchAllResources(context.Context, *SearchAllResourcesRequest) (*SearchAllResourcesResponse, error)
// Searches all IAM policies within the specified scope, such as a project,
// folder, or organization. The caller must be granted the
// `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
// otherwise the request will be rejected.
SearchAllIamPolicies(context.Context, *SearchAllIamPoliciesRequest) (*SearchAllIamPoliciesResponse, error)
// Analyzes IAM policies to answer which identities have what accesses on
// which resources.
AnalyzeIamPolicy(context.Context, *AnalyzeIamPolicyRequest) (*AnalyzeIamPolicyResponse, error)
// Analyzes IAM policies asynchronously to answer which identities have what
// accesses on which resources, and writes the analysis results to a Google
// Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
// output format is the JSON format that represents a
// [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse].
// This method implements the
// [google.longrunning.Operation][google.longrunning.Operation], which allows
// you to track the operation status. We recommend intervals of at least 2
// seconds with exponential backoff retry to poll the operation result. The
// metadata contains the metadata for the long-running operation.
AnalyzeIamPolicyLongrunning(context.Context, *AnalyzeIamPolicyLongrunningRequest) (*longrunningpb.Operation, error)
// Analyze moving a resource to a specified destination without kicking off
// the actual move. The analysis is best effort depending on the user's
// permissions of viewing different hierarchical policies and configurations.
// The policies and configuration are subject to change before the actual
// resource migration takes place.
AnalyzeMove(context.Context, *AnalyzeMoveRequest) (*AnalyzeMoveResponse, error)
// Issue a job that queries assets using a SQL statement compatible with
// [BigQuery SQL](https://cloud.google.com/bigquery/docs/introduction-sql).
//
// If the query execution finishes within timeout and there's no pagination,
// the full query results will be returned in the `QueryAssetsResponse`.
//
// Otherwise, full query results can be obtained by issuing extra requests
// with the `job_reference` from the a previous `QueryAssets` call.
//
// Note, the query result has approximately 10 GB limitation enforced by
// [BigQuery](https://cloud.google.com/bigquery/docs/best-practices-performance-output).
// Queries return larger results will result in errors.
QueryAssets(context.Context, *QueryAssetsRequest) (*QueryAssetsResponse, error)
// Creates a saved query in a parent project/folder/organization.
CreateSavedQuery(context.Context, *CreateSavedQueryRequest) (*SavedQuery, error)
// Gets details about a saved query.
GetSavedQuery(context.Context, *GetSavedQueryRequest) (*SavedQuery, error)
// Lists all saved queries in a parent project/folder/organization.
ListSavedQueries(context.Context, *ListSavedQueriesRequest) (*ListSavedQueriesResponse, error)
// Updates a saved query.
UpdateSavedQuery(context.Context, *UpdateSavedQueryRequest) (*SavedQuery, error)
// Deletes a saved query.
DeleteSavedQuery(context.Context, *DeleteSavedQueryRequest) (*emptypb.Empty, error)
// Gets effective IAM policies for a batch of resources.
BatchGetEffectiveIamPolicies(context.Context, *BatchGetEffectiveIamPoliciesRequest) (*BatchGetEffectiveIamPoliciesResponse, error)
// Analyzes organization policies under a scope.
AnalyzeOrgPolicies(context.Context, *AnalyzeOrgPoliciesRequest) (*AnalyzeOrgPoliciesResponse, error)
// Analyzes organization policies governed containers (projects, folders or
// organization) under a scope.
AnalyzeOrgPolicyGovernedContainers(context.Context, *AnalyzeOrgPolicyGovernedContainersRequest) (*AnalyzeOrgPolicyGovernedContainersResponse, error)
// Analyzes organization policies governed assets (Google Cloud resources or
// policies) under a scope. This RPC supports custom constraints and the
// following canned constraints:
//
// * constraints/ainotebooks.accessMode
// * constraints/ainotebooks.disableFileDownloads
// * constraints/ainotebooks.disableRootAccess
// * constraints/ainotebooks.disableTerminal
// * constraints/ainotebooks.environmentOptions
// * constraints/ainotebooks.requireAutoUpgradeSchedule
// * constraints/ainotebooks.restrictVpcNetworks
// * constraints/compute.disableGuestAttributesAccess
// * constraints/compute.disableInstanceDataAccessApis
// * constraints/compute.disableNestedVirtualization
// * constraints/compute.disableSerialPortAccess
// * constraints/compute.disableSerialPortLogging
// * constraints/compute.disableVpcExternalIpv6
// * constraints/compute.requireOsLogin
// * constraints/compute.requireShieldedVm
// * constraints/compute.restrictLoadBalancerCreationForTypes
// * constraints/compute.restrictProtocolForwardingCreationForTypes
// * constraints/compute.restrictXpnProjectLienRemoval
// * constraints/compute.setNewProjectDefaultToZonalDNSOnly
// * constraints/compute.skipDefaultNetworkCreation
// * constraints/compute.trustedImageProjects
// * constraints/compute.vmCanIpForward
// * constraints/compute.vmExternalIpAccess
// * constraints/gcp.detailedAuditLoggingMode
// * constraints/gcp.resourceLocations
// * constraints/iam.allowedPolicyMemberDomains
// * constraints/iam.automaticIamGrantsForDefaultServiceAccounts
// * constraints/iam.disableServiceAccountCreation
// * constraints/iam.disableServiceAccountKeyCreation
// * constraints/iam.disableServiceAccountKeyUpload
// * constraints/iam.restrictCrossProjectServiceAccountLienRemoval
// * constraints/iam.serviceAccountKeyExpiryHours
// * constraints/resourcemanager.accessBoundaries
// * constraints/resourcemanager.allowedExportDestinations
// * constraints/sql.restrictAuthorizedNetworks
// * constraints/sql.restrictNoncompliantDiagnosticDataAccess
// * constraints/sql.restrictNoncompliantResourceCreation
// * constraints/sql.restrictPublicIp
// * constraints/storage.publicAccessPrevention
// * constraints/storage.restrictAuthTypes
// * constraints/storage.uniformBucketLevelAccess
//
// This RPC only returns either resources of types [supported by search
// APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
// or IAM policies.
AnalyzeOrgPolicyGovernedAssets(context.Context, *AnalyzeOrgPolicyGovernedAssetsRequest) (*AnalyzeOrgPolicyGovernedAssetsResponse, error)
}AssetServiceServer is the server API for AssetService service. All implementations should embed UnimplementedAssetServiceServer for forward compatibility
Asset_AccessLevel
type Asset_AccessLevel struct {
// Also refer to the [access level user
// guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
AccessLevel *accesscontextmanagerpb.AccessLevel `protobuf:"bytes,8,opt,name=access_level,json=accessLevel,proto3,oneof"`
}Asset_AccessPolicy
type Asset_AccessPolicy struct {
// Also refer to the [access policy user
// guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
AccessPolicy *accesscontextmanagerpb.AccessPolicy `protobuf:"bytes,7,opt,name=access_policy,json=accessPolicy,proto3,oneof"`
}Asset_ServicePerimeter
type Asset_ServicePerimeter struct {
// Also refer to the [service perimeter user
// guide](https://cloud.google.com/vpc-service-controls/docs/overview).
ServicePerimeter *accesscontextmanagerpb.ServicePerimeter `protobuf:"bytes,9,opt,name=service_perimeter,json=servicePerimeter,proto3,oneof"`
}AttachedResource
type AttachedResource struct {
// The type of this attached resource.
//
// Example: `osconfig.googleapis.com/Inventory`
//
// You can find the supported attached asset types of each resource in this
// table:
// `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
AssetType string `protobuf:"bytes,1,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"`
// Versioned resource representations of this attached resource. This is
// repeated because there could be multiple versions of the attached resource
// representations during version migration.
VersionedResources []*VersionedResource `protobuf:"bytes,3,rep,name=versioned_resources,json=versionedResources,proto3" json:"versioned_resources,omitempty"`
// contains filtered or unexported fields
}Attached resource representation, which is defined by the corresponding service provider. It represents an attached resource's payload.
func (*AttachedResource) Descriptor
func (*AttachedResource) Descriptor() ([]byte, []int)Deprecated: Use AttachedResource.ProtoReflect.Descriptor instead.
func (*AttachedResource) GetAssetType
func (x *AttachedResource) GetAssetType() stringfunc (*AttachedResource) GetVersionedResources
func (x *AttachedResource) GetVersionedResources() []*VersionedResourcefunc (*AttachedResource) ProtoMessage
func (*AttachedResource) ProtoMessage()func (*AttachedResource) ProtoReflect
func (x *AttachedResource) ProtoReflect() protoreflect.Messagefunc (*AttachedResource) Reset
func (x *AttachedResource) Reset()func (*AttachedResource) String
func (x *AttachedResource) String() stringBatchGetAssetsHistoryRequest
type BatchGetAssetsHistoryRequest struct {
// Required. The relative name of the root asset. It can only be an
// organization number (such as "organizations/123"), a project ID (such as
// "projects/my-project-id")", or a project number (such as "projects/12345").
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// A list of the full names of the assets.
// See: https://cloud.google.com/asset-inventory/docs/resource-name-format
// Example:
//
// `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
//
// The request becomes a no-op if the asset name list is empty, and the max
// size of the asset name list is 100 in one request.
AssetNames []string `protobuf:"bytes,2,rep,name=asset_names,json=assetNames,proto3" json:"asset_names,omitempty"`
// Optional. The content type.
ContentType ContentType `protobuf:"varint,3,opt,name=content_type,json=contentType,proto3,enum=google.cloud.asset.v1.ContentType" json:"content_type,omitempty"`
// Optional. The time window for the asset history. Both start_time and
// end_time are optional and if set, it must be after the current time minus
// 35 days. If end_time is not set, it is default to current timestamp.
// If start_time is not set, the snapshot of the assets at end_time will be
// returned. The returned results contain all temporal assets whose time
// window overlap with read_time_window.
ReadTimeWindow *TimeWindow `protobuf:"bytes,4,opt,name=read_time_window,json=readTimeWindow,proto3" json:"read_time_window,omitempty"`
// Optional. A list of relationship types to output, for example:
// `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
// content_type=RELATIONSHIP.
// * If specified:
// it outputs specified relationships' history on the [asset_names]. It
// returns an error if any of the [relationship_types] doesn't belong to the
// supported relationship types of the [asset_names] or if any of the
// [asset_names]'s types doesn't belong to the source types of the
// [relationship_types].
// * Otherwise:
// it outputs the supported relationships' history on the [asset_names] or
// returns an error if any of the [asset_names]'s types has no relationship
// support.
// See [Introduction to Cloud Asset
// Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
// supported asset types and relationship types.
RelationshipTypes []string `protobuf:"bytes,5,rep,name=relationship_types,json=relationshipTypes,proto3" json:"relationship_types,omitempty"`
// contains filtered or unexported fields
}Batch get assets history request.
func (*BatchGetAssetsHistoryRequest) Descriptor
func (*BatchGetAssetsHistoryRequest) Descriptor() ([]byte, []int)Deprecated: Use BatchGetAssetsHistoryRequest.ProtoReflect.Descriptor instead.
func (*BatchGetAssetsHistoryRequest) GetAssetNames
func (x *BatchGetAssetsHistoryRequest) GetAssetNames() []stringfunc (*BatchGetAssetsHistoryRequest) GetContentType
func (x *BatchGetAssetsHistoryRequest) GetContentType() ContentTypefunc (*BatchGetAssetsHistoryRequest) GetParent
func (x *BatchGetAssetsHistoryRequest) GetParent() stringfunc (*BatchGetAssetsHistoryRequest) GetReadTimeWindow
func (x *BatchGetAssetsHistoryRequest) GetReadTimeWindow() *TimeWindowfunc (*BatchGetAssetsHistoryRequest) GetRelationshipTypes
func (x *BatchGetAssetsHistoryRequest) GetRelationshipTypes() []stringfunc (*BatchGetAssetsHistoryRequest) ProtoMessage
func (*BatchGetAssetsHistoryRequest) ProtoMessage()func (*BatchGetAssetsHistoryRequest) ProtoReflect
func (x *BatchGetAssetsHistoryRequest) ProtoReflect() protoreflect.Messagefunc (*BatchGetAssetsHistoryRequest) Reset
func (x *BatchGetAssetsHistoryRequest) Reset()func (*BatchGetAssetsHistoryRequest) String
func (x *BatchGetAssetsHistoryRequest) String() stringBatchGetAssetsHistoryResponse
type BatchGetAssetsHistoryResponse struct {
// A list of assets with valid time windows.
Assets []*TemporalAsset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"`
// contains filtered or unexported fields
}Batch get assets history response.
func (*BatchGetAssetsHistoryResponse) Descriptor
func (*BatchGetAssetsHistoryResponse) Descriptor() ([]byte, []int)Deprecated: Use BatchGetAssetsHistoryResponse.ProtoReflect.Descriptor instead.
func (*BatchGetAssetsHistoryResponse) GetAssets
func (x *BatchGetAssetsHistoryResponse) GetAssets() []*TemporalAssetfunc (*BatchGetAssetsHistoryResponse) ProtoMessage
func (*BatchGetAssetsHistoryResponse) ProtoMessage()func (*BatchGetAssetsHistoryResponse) ProtoReflect
func (x *BatchGetAssetsHistoryResponse) ProtoReflect() protoreflect.Messagefunc (*BatchGetAssetsHistoryResponse) Reset
func (x *BatchGetAssetsHistoryResponse) Reset()func (*BatchGetAssetsHistoryResponse) String
func (x *BatchGetAssetsHistoryResponse) String() stringBatchGetEffectiveIamPoliciesRequest
type BatchGetEffectiveIamPoliciesRequest struct {
// Required. Only IAM policies on or below the scope will be returned.
//
// This can only be an organization number (such as "organizations/123"), a
// folder number (such as "folders/123"), a project ID (such as
// "projects/my-project-id"), or a project number (such as "projects/12345").
//
// To know how to get organization ID, visit [here
// ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
//
// To know how to get folder or project ID, visit [here
// ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
// Required. The names refer to the [full_resource_names]
// (https://cloud.google.com/asset-inventory/docs/resource-name-format)
// of the asset types [supported by search
// APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
// A maximum of 20 resources' effective policies can be retrieved in a batch.
Names []string `protobuf:"bytes,3,rep,name=names,proto3" json:"names,omitempty"`
// contains filtered or unexported fields
}A request message for [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
func (*BatchGetEffectiveIamPoliciesRequest) Descriptor
func (*BatchGetEffectiveIamPoliciesRequest) Descriptor() ([]byte, []int)Deprecated: Use BatchGetEffectiveIamPoliciesRequest.ProtoReflect.Descriptor instead.
func (*BatchGetEffectiveIamPoliciesRequest) GetNames
func (x *BatchGetEffectiveIamPoliciesRequest) GetNames() []stringfunc (*BatchGetEffectiveIamPoliciesRequest) GetScope
func (x *BatchGetEffectiveIamPoliciesRequest) GetScope() stringfunc (*BatchGetEffectiveIamPoliciesRequest) ProtoMessage
func (*BatchGetEffectiveIamPoliciesRequest) ProtoMessage()func (*BatchGetEffectiveIamPoliciesRequest) ProtoReflect
func (x *BatchGetEffectiveIamPoliciesRequest) ProtoReflect() protoreflect.Messagefunc (*BatchGetEffectiveIamPoliciesRequest) Reset
func (x *BatchGetEffectiveIamPoliciesRequest) Reset()func (*BatchGetEffectiveIamPoliciesRequest) String
func (x *BatchGetEffectiveIamPoliciesRequest) String() stringBatchGetEffectiveIamPoliciesResponse
type BatchGetEffectiveIamPoliciesResponse struct {
// The effective policies for a batch of resources. Note that the results
// order is the same as the order of
// [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
// When a resource does not have any effective IAM policies, its corresponding
// policy_result will contain empty
// [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
PolicyResults []*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy `protobuf:"bytes,2,rep,name=policy_results,json=policyResults,proto3" json:"policy_results,omitempty"`
// contains filtered or unexported fields
}A response message for [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
func (*BatchGetEffectiveIamPoliciesResponse) Descriptor
func (*BatchGetEffectiveIamPoliciesResponse) Descriptor() ([]byte, []int)Deprecated: Use BatchGetEffectiveIamPoliciesResponse.ProtoReflect.Descriptor instead.
func (*BatchGetEffectiveIamPoliciesResponse) GetPolicyResults
func (x *BatchGetEffectiveIamPoliciesResponse) GetPolicyResults() []*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicyfunc (*BatchGetEffectiveIamPoliciesResponse) ProtoMessage
func (*BatchGetEffectiveIamPoliciesResponse) ProtoMessage()func (*BatchGetEffectiveIamPoliciesResponse) ProtoReflect
func (x *BatchGetEffectiveIamPoliciesResponse) ProtoReflect() protoreflect.Messagefunc (*BatchGetEffectiveIamPoliciesResponse) Reset
func (x *BatchGetEffectiveIamPoliciesResponse) Reset()func (*BatchGetEffectiveIamPoliciesResponse) String
func (x *BatchGetEffectiveIamPoliciesResponse) String() stringBatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy
type BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy struct {
// The [full_resource_name]
// (https://cloud.google.com/asset-inventory/docs/resource-name-format)
// for which the
// [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
// are computed. This is one of the
// [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
// the caller provides in the request.
FullResourceName string `protobuf:"bytes,1,opt,name=full_resource_name,json=fullResourceName,proto3" json:"full_resource_name,omitempty"`
// The effective policies for the
// [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
//
// These policies include the policy set on the
// [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
// and those set on its parents and ancestors up to the
// [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
// Note that these policies are not filtered according to the resource type
// of the
// [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
//
// These policies are hierarchically ordered by
// [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
// starting from
// [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
// itself to its parents and ancestors, such that policies[i]'s
// [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
// is the child of policies[i+1]'s
// [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
// if policies[i+1] exists.
Policies []*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo `protobuf:"bytes,2,rep,name=policies,proto3" json:"policies,omitempty"`
// contains filtered or unexported fields
}The effective IAM policies on one resource.
func (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy) Descriptor
func (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy) Descriptor() ([]byte, []int)Deprecated: Use BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy.ProtoReflect.Descriptor instead.
func (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy) GetFullResourceName
func (x *BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy) GetFullResourceName() stringfunc (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy) GetPolicies
func (x *BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy) GetPolicies() []*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfofunc (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy) ProtoMessage
func (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy) ProtoMessage()func (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy) ProtoReflect
func (x *BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy) ProtoReflect() protoreflect.Messagefunc (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy) Reset
func (x *BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy) Reset()func (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy) String
func (x *BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy) String() stringBatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo
type BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo struct {
// The full resource name the
// [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
// is directly attached to.
AttachedResource string `protobuf:"bytes,1,opt,name=attached_resource,json=attachedResource,proto3" json:"attached_resource,omitempty"`
// The IAM policy that's directly attached to the
// [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
Policy *iampb.Policy `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
// contains filtered or unexported fields
}The IAM policy and its attached resource.
func (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo) Descriptor
func (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo) Descriptor() ([]byte, []int)Deprecated: Use BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo.ProtoReflect.Descriptor instead.
func (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo) GetAttachedResource
func (x *BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo) GetAttachedResource() stringfunc (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo) GetPolicy
func (x *BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo) GetPolicy() *iampb.Policyfunc (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo) ProtoMessage
func (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo) ProtoMessage()func (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo) ProtoReflect
func (x *BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo) ProtoReflect() protoreflect.Messagefunc (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo) Reset
func (x *BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo) Reset()func (*BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo) String
func (x *BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo) String() stringBigQueryDestination
type BigQueryDestination struct {
// Required. The BigQuery dataset in format
// "projects/projectId/datasets/datasetId", to which the snapshot result
// should be exported. If this dataset does not exist, the export call returns
// an INVALID_ARGUMENT error. Setting the `contentType` for `exportAssets`
// determines the
// [schema](/asset-inventory/docs/exporting-to-bigquery#bigquery-schema)
// of the BigQuery table. Setting `separateTablesPerAssetType` to `TRUE` also
// influences the schema.
Dataset string `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"`
// Required. The BigQuery table to which the snapshot result should be
// written. If this table does not exist, a new table with the given name
// will be created.
Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`
// If the destination table already exists and this flag is `TRUE`, the
// table will be overwritten by the contents of assets snapshot. If the flag
// is `FALSE` or unset and the destination table already exists, the export
// call returns an INVALID_ARGUMEMT error.
Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"`
// [partition_spec] determines whether to export to partitioned table(s) and
// how to partition the data.
//
// If [partition_spec] is unset or [partition_spec.partition_key] is unset or
// `PARTITION_KEY_UNSPECIFIED`, the snapshot results will be exported to
// non-partitioned table(s). [force] will decide whether to overwrite existing
// table(s).
//
// If [partition_spec] is specified. First, the snapshot results will be
// written to partitioned table(s) with two additional timestamp columns,
// readTime and requestTime, one of which will be the partition key. Secondly,
// in the case when any destination table already exists, it will first try to
// update existing table's schema as necessary by appending additional
// columns. Then, if [force] is `TRUE`, the corresponding partition will be
// overwritten by the snapshot results (data in different partitions will
// remain intact); if [force] is unset or `FALSE`, it will append the data. An
// error will be returned if the schema update or data appension fails.
PartitionSpec *PartitionSpec `protobuf:"bytes,4,opt,name=partition_spec,json=partitionSpec,proto3" json:"partition_spec,omitempty"`
// If this flag is `TRUE`, the snapshot results will be written to one or
// multiple tables, each of which contains results of one asset type. The
// [force] and [partition_spec] fields will apply to each of them.
//
// Field [table] will be concatenated with "_" and the asset type names (see
// https://cloud.google.com/asset-inventory/docs/supported-asset-types for
// supported asset types) to construct per-asset-type table names, in which
// all non-alphanumeric characters like "." and "/" will be substituted by
// "_". Example: if field [table] is "mytable" and snapshot results
// contain "storage.googleapis.com/Bucket" assets, the corresponding table
// name will be "mytable_storage_googleapis_com_Bucket". If any of these
// tables does not exist, a new table with the concatenated name will be
// created.
//
// When [content_type] in the ExportAssetsRequest is `RESOURCE`, the schema of
// each table will include RECORD-type columns mapped to the nested fields in
// the Asset.resource.data field of that asset type (up to the 15 nested level
// BigQuery supports
// (https://cloud.google.com/bigquery/docs/nested-repeated#limitations)). The
// fields in >15 nested levels will be stored in JSON format string as a child
// column of its parent RECORD column.
//
// If error occurs when exporting to any table, the whole export call will
// return an error but the export results that already succeed will persist.
// Example: if exporting to table_type_A succeeds when exporting to
// table_type_B fails during one export call, the results in table_type_A will
// persist and there will not be partial results persisting in a table.
SeparateTablesPerAssetType bool `protobuf:"varint,5,opt,name=separate_tables_per_asset_type,json=separateTablesPerAssetType,proto3" json:"separate_tables_per_asset_type,omitempty"`
// contains filtered or unexported fields
}A BigQuery destination for exporting assets to.
func (*BigQueryDestination) Descriptor
func (*BigQueryDestination) Descriptor() ([]byte, []int)Deprecated: Use BigQueryDestination.ProtoReflect.Descriptor instead.
func (*BigQueryDestination) GetDataset
func (x *BigQueryDestination) GetDataset() stringfunc (*BigQueryDestination) GetForce
func (x *BigQueryDestination) GetForce() boolfunc (*BigQueryDestination) GetPartitionSpec
func (x *BigQueryDestination) GetPartitionSpec() *PartitionSpecfunc (*BigQueryDestination) GetSeparateTablesPerAssetType
func (x *BigQueryDestination) GetSeparateTablesPerAssetType() boolfunc (*BigQueryDestination) GetTable
func (x *BigQueryDestination) GetTable() stringfunc (*BigQueryDestination) ProtoMessage
func (*BigQueryDestination) ProtoMessage()func (*BigQueryDestination) ProtoReflect
func (x *BigQueryDestination) ProtoReflect() protoreflect.Messagefunc (*BigQueryDestination) Reset
func (x *BigQueryDestination) Reset()func (*BigQueryDestination) String
func (x *BigQueryDestination) String() stringConditionEvaluation
type ConditionEvaluation struct {
// The evaluation result.
EvaluationValue ConditionEvaluation_EvaluationValue `protobuf:"varint,1,opt,name=evaluation_value,json=evaluationValue,proto3,enum=google.cloud.asset.v1.ConditionEvaluation_EvaluationValue" json:"evaluation_value,omitempty"`
// contains filtered or unexported fields
}The condition evaluation.
func (*ConditionEvaluation) Descriptor
func (*ConditionEvaluation) Descriptor() ([]byte, []int)Deprecated: Use ConditionEvaluation.ProtoReflect.Descriptor instead.
func (*ConditionEvaluation) GetEvaluationValue
func (x *ConditionEvaluation) GetEvaluationValue() ConditionEvaluation_EvaluationValuefunc (*ConditionEvaluation) ProtoMessage
func (*ConditionEvaluation) ProtoMessage()func (*ConditionEvaluation) ProtoReflect
func (x *ConditionEvaluation) ProtoReflect() protoreflect.Messagefunc (*ConditionEvaluation) Reset
func (x *ConditionEvaluation) Reset()func (*ConditionEvaluation) String
func (x *ConditionEvaluation) String() stringConditionEvaluation_EvaluationValue
type ConditionEvaluation_EvaluationValue int32Value of this expression.
ConditionEvaluation_EVALUATION_VALUE_UNSPECIFIED, ConditionEvaluation_TRUE, ConditionEvaluation_FALSE, ConditionEvaluation_CONDITIONAL
const (
// Reserved for future use.
ConditionEvaluation_EVALUATION_VALUE_UNSPECIFIED ConditionEvaluation_EvaluationValue = 0
// The evaluation result is `true`.
ConditionEvaluation_TRUE ConditionEvaluation_EvaluationValue = 1
// The evaluation result is `false`.
ConditionEvaluation_FALSE ConditionEvaluation_EvaluationValue = 2
// The evaluation result is `conditional` when the condition expression
// contains variables that are either missing input values or have not been
// supported by Policy Analyzer yet.
ConditionEvaluation_CONDITIONAL ConditionEvaluation_EvaluationValue = 3
)func (ConditionEvaluation_EvaluationValue) Descriptor
func (ConditionEvaluation_EvaluationValue) Descriptor() protoreflect.EnumDescriptorfunc (ConditionEvaluation_EvaluationValue) Enum
func (x ConditionEvaluation_EvaluationValue) Enum() *ConditionEvaluation_EvaluationValuefunc (ConditionEvaluation_EvaluationValue) EnumDescriptor
func (ConditionEvaluation_EvaluationValue) EnumDescriptor() ([]byte, []int)Deprecated: Use ConditionEvaluation_EvaluationValue.Descriptor instead.
func (ConditionEvaluation_EvaluationValue) Number
func (x ConditionEvaluation_EvaluationValue) Number() protoreflect.EnumNumberfunc (ConditionEvaluation_EvaluationValue) String
func (x ConditionEvaluation_EvaluationValue) String() stringfunc (ConditionEvaluation_EvaluationValue) Type
func (ConditionEvaluation_EvaluationValue) Type() protoreflect.EnumTypeContentType
type ContentType int32Asset content type.
ContentType_CONTENT_TYPE_UNSPECIFIED, ContentType_RESOURCE, ContentType_IAM_POLICY, ContentType_ORG_POLICY, ContentType_ACCESS_POLICY, ContentType_OS_INVENTORY, ContentType_RELATIONSHIP
const (
// Unspecified content type.
ContentType_CONTENT_TYPE_UNSPECIFIED ContentType = 0
// Resource metadata.
ContentType_RESOURCE ContentType = 1
// The actual IAM policy set on a resource.
ContentType_IAM_POLICY ContentType = 2
// The organization policy set on an asset.
ContentType_ORG_POLICY ContentType = 4
// The Access Context Manager policy set on an asset.
ContentType_ACCESS_POLICY ContentType = 5
// The runtime OS Inventory information.
ContentType_OS_INVENTORY ContentType = 6
// The related resources.
ContentType_RELATIONSHIP ContentType = 7
)func (ContentType) Descriptor
func (ContentType) Descriptor() protoreflect.EnumDescriptorfunc (ContentType) Enum
func (x ContentType) Enum() *ContentTypefunc (ContentType) EnumDescriptor
func (ContentType) EnumDescriptor() ([]byte, []int)Deprecated: Use ContentType.Descriptor instead.
func (ContentType) Number
func (x ContentType) Number() protoreflect.EnumNumberfunc (ContentType) String
func (x ContentType) String() stringfunc (ContentType) Type
func (ContentType) Type() protoreflect.EnumTypeCreateFeedRequest
type CreateFeedRequest struct {
// Required. The name of the project/folder/organization where this feed
// should be created in. It can only be an organization number (such as
// "organizations/123"), a folder number (such as "folders/123"), a project ID
// (such as "projects/my-project-id"), or a project number (such as
// "projects/12345").
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. This is the client-assigned asset feed identifier and it needs to
// be unique under a specific parent project/folder/organization.
FeedId string `protobuf:"bytes,2,opt,name=feed_id,json=feedId,proto3" json:"feed_id,omitempty"`
// Required. The feed details. The field `name` must be empty and it will be
// generated in the format of: projects/project_number/feeds/feed_id
// folders/folder_number/feeds/feed_id
// organizations/organization_number/feeds/feed_id
Feed *Feed `protobuf:"bytes,3,opt,name=feed,proto3" json:"feed,omitempty"`
// contains filtered or unexported fields
}Create asset feed request.
func (*CreateFeedRequest) Descriptor
func (*CreateFeedRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateFeedRequest.ProtoReflect.Descriptor instead.
func (*CreateFeedRequest) GetFeed
func (x *CreateFeedRequest) GetFeed() *Feedfunc (*CreateFeedRequest) GetFeedId
func (x *CreateFeedRequest) GetFeedId() stringfunc (*CreateFeedRequest) GetParent
func (x *CreateFeedRequest) GetParent() stringfunc (*CreateFeedRequest) ProtoMessage
func (*CreateFeedRequest) ProtoMessage()func (*CreateFeedRequest) ProtoReflect
func (x *CreateFeedRequest) ProtoReflect() protoreflect.Messagefunc (*CreateFeedRequest) Reset
func (x *CreateFeedRequest) Reset()func (*CreateFeedRequest) String
func (x *CreateFeedRequest) String() stringCreateSavedQueryRequest
type CreateSavedQueryRequest struct {
// Required. The name of the project/folder/organization where this
// saved_query should be created in. It can only be an organization number
// (such as "organizations/123"), a folder number (such as "folders/123"), a
// project ID (such as "projects/my-project-id"), or a project number (such as
// "projects/12345").
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The saved_query details. The `name` field must be empty as it
// will be generated based on the parent and saved_query_id.
SavedQuery *SavedQuery `protobuf:"bytes,2,opt,name=saved_query,json=savedQuery,proto3" json:"saved_query,omitempty"`
// Required. The ID to use for the saved query, which must be unique in the
// specified parent. It will become the final component of the saved query's
// resource name.
//
// This value should be 4-63 characters, and valid characters
// are `[a-z][0-9]-`.
//
// Notice that this field is required in the saved query creation, and the
// `name` field of the `saved_query` will be ignored.
SavedQueryId string `protobuf:"bytes,3,opt,name=saved_query_id,json=savedQueryId,proto3" json:"saved_query_id,omitempty"`
// contains filtered or unexported fields
}Request to create a saved query.
func (*CreateSavedQueryRequest) Descriptor
func (*CreateSavedQueryRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateSavedQueryRequest.ProtoReflect.Descriptor instead.
func (*CreateSavedQueryRequest) GetParent
func (x *CreateSavedQueryRequest) GetParent() stringfunc (*CreateSavedQueryRequest) GetSavedQuery
func (x *CreateSavedQueryRequest) GetSavedQuery() *SavedQueryfunc (*CreateSavedQueryRequest) GetSavedQueryId
func (x *CreateSavedQueryRequest) GetSavedQueryId() stringfunc (*CreateSavedQueryRequest) ProtoMessage
func (*CreateSavedQueryRequest) ProtoMessage()func (*CreateSavedQueryRequest) ProtoReflect
func (x *CreateSavedQueryRequest) ProtoReflect() protoreflect.Messagefunc (*CreateSavedQueryRequest) Reset
func (x *CreateSavedQueryRequest) Reset()func (*CreateSavedQueryRequest) String
func (x *CreateSavedQueryRequest) String() stringDeleteFeedRequest
type DeleteFeedRequest struct {
// Required. The name of the feed and it must be in the format of:
// projects/project_number/feeds/feed_id
// folders/folder_number/feeds/feed_id
// organizations/organization_number/feeds/feed_id
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}func (*DeleteFeedRequest) Descriptor
func (*DeleteFeedRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteFeedRequest.ProtoReflect.Descriptor instead.
func (*DeleteFeedRequest) GetName
func (x *DeleteFeedRequest) GetName() stringfunc (*DeleteFeedRequest) ProtoMessage
func (*DeleteFeedRequest) ProtoMessage()func (*DeleteFeedRequest) ProtoReflect
func (x *DeleteFeedRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteFeedRequest) Reset
func (x *DeleteFeedRequest) Reset()func (*DeleteFeedRequest) String
func (x *DeleteFeedRequest) String() stringDeleteSavedQueryRequest
type DeleteSavedQueryRequest struct {
// Required. The name of the saved query to delete. It must be in the format
// of:
//
// * projects/project_number/savedQueries/saved_query_id
// * folders/folder_number/savedQueries/saved_query_id
// * organizations/organization_number/savedQueries/saved_query_id
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request to delete a saved query.
func (*DeleteSavedQueryRequest) Descriptor
func (*DeleteSavedQueryRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteSavedQueryRequest.ProtoReflect.Descriptor instead.
func (*DeleteSavedQueryRequest) GetName
func (x *DeleteSavedQueryRequest) GetName() stringfunc (*DeleteSavedQueryRequest) ProtoMessage
func (*DeleteSavedQueryRequest) ProtoMessage()func (*DeleteSavedQueryRequest) ProtoReflect
func (x *DeleteSavedQueryRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteSavedQueryRequest) Reset
func (x *DeleteSavedQueryRequest) Reset()func (*DeleteSavedQueryRequest) String
func (x *DeleteSavedQueryRequest) String() stringEffectiveTagDetails
type EffectiveTagDetails struct {
// The [full resource
// name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
// of the ancestor from which
// [effective_tags][google.cloud.asset.v1.EffectiveTagDetails.effective_tags]
// are inherited, according to [tag
// inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance).
AttachedResource *string `protobuf:"bytes,1,opt,name=attached_resource,json=attachedResource,proto3,oneof" json:"attached_resource,omitempty"`
// The effective tags inherited from the
// [attached_resource][google.cloud.asset.v1.EffectiveTagDetails.attached_resource].
// Note that tags with the same key but different values may attach to
// resources at a different hierarchy levels. The lower hierarchy tag value
// will overwrite the higher hierarchy tag value of the same tag key. In this
// case, the tag value at the higher hierarchy level will be removed. For more
// information, see [tag
// inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance).
EffectiveTags []*Tag `protobuf:"bytes,2,rep,name=effective_tags,json=effectiveTags,proto3" json:"effective_tags,omitempty"`
// contains filtered or unexported fields
}The effective tags and the ancestor resources from which they were inherited.
func (*EffectiveTagDetails) Descriptor
func (*EffectiveTagDetails) Descriptor() ([]byte, []int)Deprecated: Use EffectiveTagDetails.ProtoReflect.Descriptor instead.
func (*EffectiveTagDetails) GetAttachedResource
func (x *EffectiveTagDetails) GetAttachedResource() stringfunc (*EffectiveTagDetails) GetEffectiveTags
func (x *EffectiveTagDetails) GetEffectiveTags() []*Tagfunc (*EffectiveTagDetails) ProtoMessage
func (*EffectiveTagDetails) ProtoMessage()func (*EffectiveTagDetails) ProtoReflect
func (x *EffectiveTagDetails) ProtoReflect() protoreflect.Messagefunc (*EffectiveTagDetails) Reset
func (x *EffectiveTagDetails) Reset()func (*EffectiveTagDetails) String
func (x *EffectiveTagDetails) String() stringExportAssetsRequest
type ExportAssetsRequest struct {
// Required. The relative name of the root asset. This can only be an
// organization number (such as "organizations/123"), a project ID (such as
// "projects/my-project-id"), or a project number (such as "projects/12345"),
// or a folder number (such as "folders/123").
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Timestamp to take an asset snapshot. This can only be set to a timestamp
// between the current time and the current time minus 35 days (inclusive).
// If not specified, the current time will be used. Due to delays in resource
// data collection and indexing, there is a volatile window during which
// running the same query may get different results.
ReadTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
// A list of asset types to take a snapshot for. For example:
// "compute.googleapis.com/Disk".
//
// Regular expressions are also supported. For example:
//
// * "compute.googleapis.com.*" snapshots resources whose asset type starts
// with "compute.googleapis.com".
// * ".*Instance" snapshots resources whose asset type ends with "Instance".
// * ".*Instance.*" snapshots resources whose asset type contains "Instance".
//
// See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
// regular expression syntax. If the regular expression does not match any
// supported asset type, an INVALID_ARGUMENT error will be returned.
//
// If specified, only matching assets will be returned, otherwise, it will
// snapshot all asset types. See [Introduction to Cloud Asset
// Inventory](https://cloud.google.com/asset-inventory/docs/overview)
// for all supported asset types.
AssetTypes []string `protobuf:"bytes,3,rep,name=asset_types,json=assetTypes,proto3" json:"asset_types,omitempty"`
// Asset content type. If not specified, no content but the asset name will be
// returned.
ContentType ContentType `protobuf:"varint,4,opt,name=content_type,json=contentType,proto3,enum=google.cloud.asset.v1.ContentType" json:"content_type,omitempty"`
// Required. Output configuration indicating where the results will be output
// to.
OutputConfig *OutputConfig `protobuf:"bytes,5,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
// A list of relationship types to export, for example:
// `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
// content_type=RELATIONSHIP.
// * If specified:
// it snapshots specified relationships. It returns an error if
// any of the [relationship_types] doesn't belong to the supported
// relationship types of the [asset_types] or if any of the [asset_types]
// doesn't belong to the source types of the [relationship_types].
// * Otherwise:
// it snapshots the supported relationships for all [asset_types] or returns
// an error if any of the [asset_types] has no relationship support.
// An unspecified asset types field means all supported asset_types.
// See [Introduction to Cloud Asset
// Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
// supported asset types and relationship types.
RelationshipTypes []string `protobuf:"bytes,6,rep,name=relationship_types,json=relationshipTypes,proto3" json:"relationship_types,omitempty"`
// contains filtered or unexported fields
}Export asset request.
func (*ExportAssetsRequest) Descriptor
func (*ExportAssetsRequest) Descriptor() ([]byte, []int)Deprecated: Use ExportAssetsRequest.ProtoReflect.Descriptor instead.
func (*ExportAssetsRequest) GetAssetTypes
func (x *ExportAssetsRequest) GetAssetTypes() []stringfunc (*ExportAssetsRequest) GetContentType
func (x *ExportAssetsRequest) GetContentType() ContentTypefunc (*ExportAssetsRequest) GetOutputConfig
func (x *ExportAssetsRequest) GetOutputConfig() *OutputConfigfunc (*ExportAssetsRequest) GetParent
func (x *ExportAssetsRequest) GetParent() stringfunc (*ExportAssetsRequest) GetReadTime
func (x *ExportAssetsRequest) GetReadTime() *timestamppb.Timestampfunc (*ExportAssetsRequest) GetRelationshipTypes
func (x *ExportAssetsRequest) GetRelationshipTypes() []stringfunc (*ExportAssetsRequest) ProtoMessage
func (*ExportAssetsRequest) ProtoMessage()func (*ExportAssetsRequest) ProtoReflect
func (x *ExportAssetsRequest) ProtoReflect() protoreflect.Messagefunc (*ExportAssetsRequest) Reset
func (x *ExportAssetsRequest) Reset()func (*ExportAssetsRequest) String
func (x *ExportAssetsRequest) String() stringExportAssetsResponse
type ExportAssetsResponse struct {
// Time the snapshot was taken.
ReadTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
// Output configuration indicating where the results were output to.
OutputConfig *OutputConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
// Output result indicating where the assets were exported to. For example, a
// set of actual Cloud Storage object URIs where the assets are exported to.
// The URIs can be different from what [output_config] has specified, as the
// service will split the output object into multiple ones once it exceeds a
// single Cloud Storage object limit.
OutputResult *OutputResult `protobuf:"bytes,3,opt,name=output_result,json=outputResult,proto3" json:"output_result,omitempty"`
// contains filtered or unexported fields
}The export asset response. This message is returned by the [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] method in the returned [google.longrunning.Operation.response][google.longrunning.Operation.response] field.
func (*ExportAssetsResponse) Descriptor
func (*ExportAssetsResponse) Descriptor() ([]byte, []int)Deprecated: Use ExportAssetsResponse.ProtoReflect.Descriptor instead.
func (*ExportAssetsResponse) GetOutputConfig
func (x *ExportAssetsResponse) GetOutputConfig() *OutputConfigfunc (*ExportAssetsResponse) GetOutputResult
func (x *ExportAssetsResponse) GetOutputResult() *OutputResultfunc (*ExportAssetsResponse) GetReadTime
func (x *ExportAssetsResponse) GetReadTime() *timestamppb.Timestampfunc (*ExportAssetsResponse) ProtoMessage
func (*ExportAssetsResponse) ProtoMessage()func (*ExportAssetsResponse) ProtoReflect
func (x *ExportAssetsResponse) ProtoReflect() protoreflect.Messagefunc (*ExportAssetsResponse) Reset
func (x *ExportAssetsResponse) Reset()func (*ExportAssetsResponse) String
func (x *ExportAssetsResponse) String() stringFeed
type Feed struct {
// Required. The format will be
// projects/{project_number}/feeds/{client-assigned_feed_identifier} or
// folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
// organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
//
// The client-assigned feed identifier must be unique within the parent
// project/folder/organization.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A list of the full names of the assets to receive updates. You must specify
// either or both of asset_names and asset_types. Only asset updates matching
// specified asset_names or asset_types are exported to the feed.
// Example:
// `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
// For a list of the full names for supported asset types, see [Resource
// name format](/asset-inventory/docs/resource-name-format).
AssetNames []string `protobuf:"bytes,2,rep,name=asset_names,json=assetNames,proto3" json:"asset_names,omitempty"`
// A list of types of the assets to receive updates. You must specify either
// or both of asset_names and asset_types. Only asset updates matching
// specified asset_names or asset_types are exported to the feed.
// Example: `"compute.googleapis.com/Disk"`
//
// For a list of all supported asset types, see
// [Supported asset types](/asset-inventory/docs/supported-asset-types).
AssetTypes []string `protobuf:"bytes,3,rep,name=asset_types,json=assetTypes,proto3" json:"asset_types,omitempty"`
// Asset content type. If not specified, no content but the asset name and
// type will be returned.
ContentType ContentType `protobuf:"varint,4,opt,name=content_type,json=contentType,proto3,enum=google.cloud.asset.v1.ContentType" json:"content_type,omitempty"`
// Required. Feed output configuration defining where the asset updates are
// published to.
FeedOutputConfig *FeedOutputConfig `protobuf:"bytes,5,opt,name=feed_output_config,json=feedOutputConfig,proto3" json:"feed_output_config,omitempty"`
// A condition which determines whether an asset update should be published.
// If specified, an asset will be returned only when the expression evaluates
// to true.
// When set, `expression` field in the `Expr` must be a valid [CEL expression]
// (https://github.com/google/cel-spec) on a TemporalAsset with name
// `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted
// == true") will only publish Asset deletions. Other fields of `Expr` are
// optional.
//
// See our [user
// guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition)
// for detailed instructions.
Condition *expr.Expr `protobuf:"bytes,6,opt,name=condition,proto3" json:"condition,omitempty"`
// A list of relationship types to output, for example:
// `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
// content_type=RELATIONSHIP.
// * If specified:
// it outputs specified relationship updates on the [asset_names] or the
// [asset_types]. It returns an error if any of the [relationship_types]
// doesn't belong to the supported relationship types of the [asset_names] or
// [asset_types], or any of the [asset_names] or the [asset_types] doesn't
// belong to the source types of the [relationship_types].
// * Otherwise:
// it outputs the supported relationships of the types of [asset_names] and
// [asset_types] or returns an error if any of the [asset_names] or the
// [asset_types] has no replationship support.
// See [Introduction to Cloud Asset
// Inventory](https://cloud.google.com/asset-inventory/docs/overview)
// for all supported asset types and relationship types.
RelationshipTypes []string `protobuf:"bytes,7,rep,name=relationship_types,json=relationshipTypes,proto3" json:"relationship_types,omitempty"`
// contains filtered or unexported fields
}An asset feed used to export asset updates to a destinations. An asset feed filter controls what updates are exported. The asset feed must be created within a project, organization, or folder. Supported destinations are: Pub/Sub topics.
func (*Feed) Descriptor
Deprecated: Use Feed.ProtoReflect.Descriptor instead.
func (*Feed) GetAssetNames
func (*Feed) GetAssetTypes
func (*Feed) GetCondition
func (*Feed) GetContentType
func (x *Feed) GetContentType() ContentTypefunc (*Feed) GetFeedOutputConfig
func (x *Feed) GetFeedOutputConfig() *FeedOutputConfigfunc (*Feed) GetName
func (*Feed) GetRelationshipTypes
func (*Feed) ProtoMessage
func (*Feed) ProtoMessage()func (*Feed) ProtoReflect
func (x *Feed) ProtoReflect() protoreflect.Messagefunc (*Feed) Reset
func (x *Feed) Reset()func (*Feed) String
FeedOutputConfig
type FeedOutputConfig struct {
// Asset feed destination.
//
// Types that are valid to be assigned to Destination:
//
// *FeedOutputConfig_PubsubDestination
Destination isFeedOutputConfig_Destination `protobuf_oneof:"destination"`
// contains filtered or unexported fields
}Output configuration for asset feed destination.
func (*FeedOutputConfig) Descriptor
func (*FeedOutputConfig) Descriptor() ([]byte, []int)Deprecated: Use FeedOutputConfig.ProtoReflect.Descriptor instead.
func (*FeedOutputConfig) GetDestination
func (x *FeedOutputConfig) GetDestination() isFeedOutputConfig_Destinationfunc (*FeedOutputConfig) GetPubsubDestination
func (x *FeedOutputConfig) GetPubsubDestination() *PubsubDestinationfunc (*FeedOutputConfig) ProtoMessage
func (*FeedOutputConfig) ProtoMessage()func (*FeedOutputConfig) ProtoReflect
func (x *FeedOutputConfig) ProtoReflect() protoreflect.Messagefunc (*FeedOutputConfig) Reset
func (x *FeedOutputConfig) Reset()func (*FeedOutputConfig) String
func (x *FeedOutputConfig) String() stringFeedOutputConfig_PubsubDestination
type FeedOutputConfig_PubsubDestination struct {
// Destination on Pub/Sub.
PubsubDestination *PubsubDestination `protobuf:"bytes,1,opt,name=pubsub_destination,json=pubsubDestination,proto3,oneof"`
}GcsDestination
type GcsDestination struct {
// Required.
//
// Types that are valid to be assigned to ObjectUri:
//
// *GcsDestination_Uri
// *GcsDestination_UriPrefix
ObjectUri isGcsDestination_ObjectUri `protobuf_oneof:"object_uri"`
// contains filtered or unexported fields
}A Cloud Storage location.
func (*GcsDestination) Descriptor
func (*GcsDestination) Descriptor() ([]byte, []int)Deprecated: Use GcsDestination.ProtoReflect.Descriptor instead.
func (*GcsDestination) GetObjectUri
func (x *GcsDestination) GetObjectUri() isGcsDestination_ObjectUrifunc (*GcsDestination) GetUri
func (x *GcsDestination) GetUri() stringfunc (*GcsDestination) GetUriPrefix
func (x *GcsDestination) GetUriPrefix() stringfunc (*GcsDestination) ProtoMessage
func (*GcsDestination) ProtoMessage()func (*GcsDestination) ProtoReflect
func (x *GcsDestination) ProtoReflect() protoreflect.Messagefunc (*GcsDestination) Reset
func (x *GcsDestination) Reset()func (*GcsDestination) String
func (x *GcsDestination) String() stringGcsDestination_Uri
type GcsDestination_Uri struct {
// The URI of the Cloud Storage object. It's the same URI that is used by
// gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
// Editing Object
// Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
// for more information.
//
// If the specified Cloud Storage object already exists and there is no
// [hold](https://cloud.google.com/storage/docs/object-holds), it will be
// overwritten with the exported result.
Uri string `protobuf:"bytes,1,opt,name=uri,proto3,oneof"`
}GcsDestination_UriPrefix
type GcsDestination_UriPrefix struct {
// The URI prefix of all generated Cloud Storage objects. Example:
// "gs://bucket_name/object_name_prefix". Each object URI is in format:
// "gs://bucket_name/object_name_prefix/GcsOutputResult
type GcsOutputResult struct {
// List of URIs of the Cloud Storage objects. Example:
// "gs://bucket_name/object_name".
Uris []string `protobuf:"bytes,1,rep,name=uris,proto3" json:"uris,omitempty"`
// contains filtered or unexported fields
}A Cloud Storage output result.
func (*GcsOutputResult) Descriptor
func (*GcsOutputResult) Descriptor() ([]byte, []int)Deprecated: Use GcsOutputResult.ProtoReflect.Descriptor instead.
func (*GcsOutputResult) GetUris
func (x *GcsOutputResult) GetUris() []stringfunc (*GcsOutputResult) ProtoMessage
func (*GcsOutputResult) ProtoMessage()func (*GcsOutputResult) ProtoReflect
func (x *GcsOutputResult) ProtoReflect() protoreflect.Messagefunc (*GcsOutputResult) Reset
func (x *GcsOutputResult) Reset()func (*GcsOutputResult) String
func (x *GcsOutputResult) String() stringGetFeedRequest
type GetFeedRequest struct {
// Required. The name of the Feed and it must be in the format of:
// projects/project_number/feeds/feed_id
// folders/folder_number/feeds/feed_id
// organizations/organization_number/feeds/feed_id
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Get asset feed request.
func (*GetFeedRequest) Descriptor
func (*GetFeedRequest) Descriptor() ([]byte, []int)Deprecated: Use GetFeedRequest.ProtoReflect.Descriptor instead.
func (*GetFeedRequest) GetName
func (x *GetFeedRequest) GetName() stringfunc (*GetFeedRequest) ProtoMessage
func (*GetFeedRequest) ProtoMessage()func (*GetFeedRequest) ProtoReflect
func (x *GetFeedRequest) ProtoReflect() protoreflect.Messagefunc (*GetFeedRequest) Reset
func (x *GetFeedRequest) Reset()func (*GetFeedRequest) String
func (x *GetFeedRequest) String() stringGetSavedQueryRequest
type GetSavedQueryRequest struct {
// Required. The name of the saved query and it must be in the format of:
//
// * projects/project_number/savedQueries/saved_query_id
// * folders/folder_number/savedQueries/saved_query_id
// * organizations/organization_number/savedQueries/saved_query_id
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request to get a saved query.
func (*GetSavedQueryRequest) Descriptor
func (*GetSavedQueryRequest) Descriptor() ([]byte, []int)Deprecated: Use GetSavedQueryRequest.ProtoReflect.Descriptor instead.
func (*GetSavedQueryRequest) GetName
func (x *GetSavedQueryRequest) GetName() stringfunc (*GetSavedQueryRequest) ProtoMessage
func (*GetSavedQueryRequest) ProtoMessage()func (*GetSavedQueryRequest) ProtoReflect
func (x *GetSavedQueryRequest) ProtoReflect() protoreflect.Messagefunc (*GetSavedQueryRequest) Reset
func (x *GetSavedQueryRequest) Reset()func (*GetSavedQueryRequest) String
func (x *GetSavedQueryRequest) String() stringIamPolicyAnalysisOutputConfig
type IamPolicyAnalysisOutputConfig struct {
// IAM policy analysis export destination.
//
// Types that are valid to be assigned to Destination:
//
// *IamPolicyAnalysisOutputConfig_GcsDestination_
// *IamPolicyAnalysisOutputConfig_BigqueryDestination
Destination isIamPolicyAnalysisOutputConfig_Destination `protobuf_oneof:"destination"`
// contains filtered or unexported fields
}Output configuration for export IAM policy analysis destination.
func (*IamPolicyAnalysisOutputConfig) Descriptor
func (*IamPolicyAnalysisOutputConfig) Descriptor() ([]byte, []int)Deprecated: Use IamPolicyAnalysisOutputConfig.ProtoReflect.Descriptor instead.
func (*IamPolicyAnalysisOutputConfig) GetBigqueryDestination
func (x *IamPolicyAnalysisOutputConfig) GetBigqueryDestination() *IamPolicyAnalysisOutputConfig_BigQueryDestinationfunc (*IamPolicyAnalysisOutputConfig) GetDestination
func (x *IamPolicyAnalysisOutputConfig) GetDestination() isIamPolicyAnalysisOutputConfig_Destinationfunc (*IamPolicyAnalysisOutputConfig) GetGcsDestination
func (x *IamPolicyAnalysisOutputConfig) GetGcsDestination() *IamPolicyAnalysisOutputConfig_GcsDestinationfunc (*IamPolicyAnalysisOutputConfig) ProtoMessage
func (*IamPolicyAnalysisOutputConfig) ProtoMessage()func (*IamPolicyAnalysisOutputConfig) ProtoReflect
func (x *IamPolicyAnalysisOutputConfig) ProtoReflect() protoreflect.Messagefunc (*IamPolicyAnalysisOutputConfig) Reset
func (x *IamPolicyAnalysisOutputConfig) Reset()func (*IamPolicyAnalysisOutputConfig) String
func (x *IamPolicyAnalysisOutputConfig) String() stringIamPolicyAnalysisOutputConfig_BigQueryDestination
type IamPolicyAnalysisOutputConfig_BigQueryDestination struct {
// Required. The BigQuery dataset in format
// "projects/projectId/datasets/datasetId", to which the analysis results
// should be exported. If this dataset does not exist, the export call will
// return an INVALID_ARGUMENT error.
Dataset string `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"`
// Required. The prefix of the BigQuery tables to which the analysis results
// will be written. Tables will be created based on this table_prefix if not
// exist:
// - A BigQuery destination.
func (*IamPolicyAnalysisOutputConfig_BigQueryDestination) Descriptor
func (*IamPolicyAnalysisOutputConfig_BigQueryDestination) Descriptor() ([]byte, []int)Deprecated: Use IamPolicyAnalysisOutputConfig_BigQueryDestination.ProtoReflect.Descriptor instead.
func (*IamPolicyAnalysisOutputConfig_BigQueryDestination) GetDataset
func (x *IamPolicyAnalysisOutputConfig_BigQueryDestination) GetDataset() stringfunc (*IamPolicyAnalysisOutputConfig_BigQueryDestination) GetPartitionKey
func (x *IamPolicyAnalysisOutputConfig_BigQueryDestination) GetPartitionKey() IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKeyfunc (*IamPolicyAnalysisOutputConfig_BigQueryDestination) GetTablePrefix
func (x *IamPolicyAnalysisOutputConfig_BigQueryDestination) GetTablePrefix() stringfunc (*IamPolicyAnalysisOutputConfig_BigQueryDestination) GetWriteDisposition
func (x *IamPolicyAnalysisOutputConfig_BigQueryDestination) GetWriteDisposition() stringfunc (*IamPolicyAnalysisOutputConfig_BigQueryDestination) ProtoMessage
func (*IamPolicyAnalysisOutputConfig_BigQueryDestination) ProtoMessage()func (*IamPolicyAnalysisOutputConfig_BigQueryDestination) ProtoReflect
func (x *IamPolicyAnalysisOutputConfig_BigQueryDestination) ProtoReflect() protoreflect.Messagefunc (*IamPolicyAnalysisOutputConfig_BigQueryDestination) Reset
func (x *IamPolicyAnalysisOutputConfig_BigQueryDestination) Reset()func (*IamPolicyAnalysisOutputConfig_BigQueryDestination) String
func (x *IamPolicyAnalysisOutputConfig_BigQueryDestination) String() stringIamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey
type IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey int32This enum determines the partition key column for the bigquery tables. Partitioning can improve query performance and reduce query cost by filtering partitions. Refer to https://cloud.google.com/bigquery/docs/partitioned-tables for details.
IamPolicyAnalysisOutputConfig_BigQueryDestination_PARTITION_KEY_UNSPECIFIED, IamPolicyAnalysisOutputConfig_BigQueryDestination_REQUEST_TIME
const (
// Unspecified partition key. Tables won't be partitioned using this
// option.
IamPolicyAnalysisOutputConfig_BigQueryDestination_PARTITION_KEY_UNSPECIFIED IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey = 0
// The time when the request is received. If specified as partition key,
// the result table(s) is partitioned by the RequestTime column, an
// additional timestamp column representing when the request was received.
IamPolicyAnalysisOutputConfig_BigQueryDestination_REQUEST_TIME IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey = 1
)func (IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey) Descriptor
func (IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey) Descriptor() protoreflect.EnumDescriptorfunc (IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey) Enum
func (x IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey) Enum() *IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKeyfunc (IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey) EnumDescriptor
func (IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey) EnumDescriptor() ([]byte, []int)Deprecated: Use IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey.Descriptor instead.
func (IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey) Number
func (x IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey) Number() protoreflect.EnumNumberfunc (IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey) String
func (x IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey) String() stringfunc (IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey) Type
IamPolicyAnalysisOutputConfig_BigqueryDestination
type IamPolicyAnalysisOutputConfig_BigqueryDestination struct {
// Destination on BigQuery.
BigqueryDestination *IamPolicyAnalysisOutputConfig_BigQueryDestination `protobuf:"bytes,2,opt,name=bigquery_destination,json=bigqueryDestination,proto3,oneof"`
}IamPolicyAnalysisOutputConfig_GcsDestination
type IamPolicyAnalysisOutputConfig_GcsDestination struct {
// Required. The URI of the Cloud Storage object. It's the same URI that is
// used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
// Editing Object
// Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
// for more information.
//
// If the specified Cloud Storage object already exists and there is no
// [hold](https://cloud.google.com/storage/docs/object-holds), it will be
// overwritten with the analysis result.
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
func (*IamPolicyAnalysisOutputConfig_GcsDestination) Descriptor() ([]byte, []int)Deprecated: Use IamPolicyAnalysisOutputConfig_GcsDestination.ProtoReflect.Descriptor instead.
func (*IamPolicyAnalysisOutputConfig_GcsDestination) GetUri
func (x *IamPolicyAnalysisOutputConfig_GcsDestination) GetUri() stringfunc (*IamPolicyAnalysisOutputConfig_GcsDestination) ProtoMessage
func (*IamPolicyAnalysisOutputConfig_GcsDestination) ProtoMessage()func (*IamPolicyAnalysisOutputConfig_GcsDestination) ProtoReflect
func (x *IamPolicyAnalysisOutputConfig_GcsDestination) ProtoReflect() protoreflect.Messagefunc (*IamPolicyAnalysisOutputConfig_GcsDestination) Reset
func (x *IamPolicyAnalysisOutputConfig_GcsDestination) Reset()func (*IamPolicyAnalysisOutputConfig_GcsDestination) String
func (x *IamPolicyAnalysisOutputConfig_GcsDestination) String() stringIamPolicyAnalysisOutputConfig_GcsDestination_
type IamPolicyAnalysisOutputConfig_GcsDestination_ struct {
// Destination on Cloud Storage.
GcsDestination *IamPolicyAnalysisOutputConfig_GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
}IamPolicyAnalysisQuery
type IamPolicyAnalysisQuery struct {
// Required. The relative name of the root asset. Only resources and IAM
// policies within the scope will be analyzed.
//
// This can only be an organization number (such as "organizations/123"), a
// folder number (such as "folders/123"), a project ID (such as
// "projects/my-project-id"), or a project number (such as "projects/12345").
//
// To know how to get organization ID, visit [here
// ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
//
// To know how to get folder or project ID, visit [here
// ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
// Optional. Specifies a resource for analysis.
ResourceSelector *IamPolicyAnalysisQuery_ResourceSelector `protobuf:"bytes,2,opt,name=resource_selector,json=resourceSelector,proto3" json:"resource_selector,omitempty"`
// Optional. Specifies an identity for analysis.
IdentitySelector *IamPolicyAnalysisQuery_IdentitySelector `protobuf:"bytes,3,opt,name=identity_selector,json=identitySelector,proto3" json:"identity_selector,omitempty"`
// Optional. Specifies roles or permissions for analysis. This is optional.
AccessSelector *IamPolicyAnalysisQuery_AccessSelector `protobuf:"bytes,4,opt,name=access_selector,json=accessSelector,proto3" json:"access_selector,omitempty"`
// Optional. The query options.
Options *IamPolicyAnalysisQuery_Options `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"`
// Optional. The hypothetical context for IAM conditions evaluation.
ConditionContext *IamPolicyAnalysisQuery_ConditionContext `protobuf:"bytes,6,opt,name=condition_context,json=conditionContext,proto3" json:"condition_context,omitempty"`
// contains filtered or unexported fields
}IAM policy analysis query message.
func (*IamPolicyAnalysisQuery) Descriptor
func (*IamPolicyAnalysisQuery) Descriptor() ([]byte, []int)Deprecated: Use IamPolicyAnalysisQuery.ProtoReflect.Descriptor instead.
func (*IamPolicyAnalysisQuery) GetAccessSelector
func (x *IamPolicyAnalysisQuery) GetAccessSelector() *IamPolicyAnalysisQuery_AccessSelectorfunc (*IamPolicyAnalysisQuery) GetConditionContext
func (x *IamPolicyAnalysisQuery) GetConditionContext() *IamPolicyAnalysisQuery_ConditionContextfunc (*IamPolicyAnalysisQuery) GetIdentitySelector
func (x *IamPolicyAnalysisQuery) GetIdentitySelector() *IamPolicyAnalysisQuery_IdentitySelectorfunc (*IamPolicyAnalysisQuery) GetOptions
func (x *IamPolicyAnalysisQuery) GetOptions() *IamPolicyAnalysisQuery_Optionsfunc (*IamPolicyAnalysisQuery) GetResourceSelector
func (x *IamPolicyAnalysisQuery) GetResourceSelector() *IamPolicyAnalysisQuery_ResourceSelectorfunc (*IamPolicyAnalysisQuery) GetScope
func (x *IamPolicyAnalysisQuery) GetScope() stringfunc (*IamPolicyAnalysisQuery) ProtoMessage
func (*IamPolicyAnalysisQuery) ProtoMessage()func (*IamPolicyAnalysisQuery) ProtoReflect
func (x *IamPolicyAnalysisQuery) ProtoReflect() protoreflect.Messagefunc (*IamPolicyAnalysisQuery) Reset
func (x *IamPolicyAnalysisQuery) Reset()func (*IamPolicyAnalysisQuery) String
func (x *IamPolicyAnalysisQuery) String() stringIamPolicyAnalysisQuery_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 roles or permissions matching any of them. The total number of roles and permissions should be equal or less than 10.
func (*IamPolicyAnalysisQuery_AccessSelector) Descriptor
func (*IamPolicyAnalysisQuery_AccessSelector) Descriptor() ([]byte, []int)Deprecated: Use IamPolicyAnalysisQuery_AccessSelector.ProtoReflect.Descriptor instead.
func (*IamPolicyAnalysisQuery_AccessSelector) GetPermissions
func (x *IamPolicyAnalysisQuery_AccessSelector) GetPermissions() []stringfunc (*IamPolicyAnalysisQuery_AccessSelector) GetRoles
func (x *IamPolicyAnalysisQuery_AccessSelector) GetRoles() []stringfunc (*IamPolicyAnalysisQuery_AccessSelector) ProtoMessage
func (*IamPolicyAnalysisQuery_AccessSelector) ProtoMessage()func (*IamPolicyAnalysisQuery_AccessSelector) ProtoReflect
func (x *IamPolicyAnalysisQuery_AccessSelector) ProtoReflect() protoreflect.Messagefunc (*IamPolicyAnalysisQuery_AccessSelector) Reset
func (x *IamPolicyAnalysisQuery_AccessSelector) Reset()func (*IamPolicyAnalysisQuery_AccessSelector) String
func (x *IamPolicyAnalysisQuery_AccessSelector) String() stringIamPolicyAnalysisQuery_ConditionContext
type IamPolicyAnalysisQuery_ConditionContext struct {
// The IAM conditions time context.
//
// Types that are valid to be assigned to TimeContext:
//
// *IamPolicyAnalysisQuery_ConditionContext_AccessTime
TimeContext isIamPolicyAnalysisQuery_ConditionContext_TimeContext `protobuf_oneof:"TimeContext"`
// contains filtered or unexported fields
}The IAM conditions context.
func (*IamPolicyAnalysisQuery_ConditionContext) Descriptor
func (*IamPolicyAnalysisQuery_ConditionContext) Descriptor() ([]byte, []int)Deprecated: Use IamPolicyAnalysisQuery_ConditionContext.ProtoReflect.Descriptor instead.
func (*IamPolicyAnalysisQuery_ConditionContext) GetAccessTime
func (x *IamPolicyAnalysisQuery_ConditionContext) GetAccessTime() *timestamppb.Timestampfunc (*IamPolicyAnalysisQuery_ConditionContext) GetTimeContext
func (x *IamPolicyAnalysisQuery_ConditionContext) GetTimeContext() isIamPolicyAnalysisQuery_ConditionContext_TimeContextfunc (*IamPolicyAnalysisQuery_ConditionContext) ProtoMessage
func (*IamPolicyAnalysisQuery_ConditionContext) ProtoMessage()func (*IamPolicyAnalysisQuery_ConditionContext) ProtoReflect
func (x *IamPolicyAnalysisQuery_ConditionContext) ProtoReflect() protoreflect.Messagefunc (*IamPolicyAnalysisQuery_ConditionContext) Reset
func (x *IamPolicyAnalysisQuery_ConditionContext) Reset()func (*IamPolicyAnalysisQuery_ConditionContext) String
func (x *IamPolicyAnalysisQuery_ConditionContext) String() stringIamPolicyAnalysisQuery_ConditionContext_AccessTime
type IamPolicyAnalysisQuery_ConditionContext_AccessTime struct {
// The hypothetical access timestamp to evaluate IAM conditions. Note that
// this value must not be earlier than the current time; otherwise, an
// INVALID_ARGUMENT error will be returned.
AccessTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=access_time,json=accessTime,proto3,oneof"`
}IamPolicyAnalysisQuery_IdentitySelector
type IamPolicyAnalysisQuery_IdentitySelector struct {
// Required. The identity appear in the form of principals in
// [IAM policy
// binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
//
// The examples of supported forms are:
// "user:mike@example.com",
// "group:admins@example.com",
// "domain:google.com",
// "serviceAccount:my-project-id@appspot.gserviceaccount.com".
//
// Notice that wildcard characters (such as * and ?) are not supported.
// You must give a specific identity.
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
func (*IamPolicyAnalysisQuery_IdentitySelector) Descriptor() ([]byte, []int)Deprecated: Use IamPolicyAnalysisQuery_IdentitySelector.ProtoReflect.Descriptor instead.
func (*IamPolicyAnalysisQuery_IdentitySelector) GetIdentity
func (x *IamPolicyAnalysisQuery_IdentitySelector) GetIdentity() stringfunc (*IamPolicyAnalysisQuery_IdentitySelector) ProtoMessage
func (*IamPolicyAnalysisQuery_IdentitySelector) ProtoMessage()func (*IamPolicyAnalysisQuery_IdentitySelector) ProtoReflect
func (x *IamPolicyAnalysisQuery_IdentitySelector) ProtoReflect() protoreflect.Messagefunc (*IamPolicyAnalysisQuery_IdentitySelector) Reset
func (x *IamPolicyAnalysisQuery_IdentitySelector) Reset()func (*IamPolicyAnalysisQuery_IdentitySelector) String
func (x *IamPolicyAnalysisQuery_IdentitySelector) String() stringIamPolicyAnalysisQuery_Options
type IamPolicyAnalysisQuery_Options struct {
// Optional. If true, the identities section of the result will expand any
// Google groups appearing in an IAM policy binding.
//
// If
// [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector]
// is specified, the identity in the result will be determined by the
// selector, and this flag is not allowed to set.
//
// If true, the default max expansion per group is 1000 for
// AssetService.AnalyzeIamPolicy][].
//
// 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
// [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector]
// is specified, the access section of the result will be determined by the
// selector, and this flag is not allowed to set.
//
// Default is false.
ExpandRoles bool `protobuf:"varint,2,opt,name=expand_roles,json=expandRoles,proto3" json:"expand_roles,omitempty"`
// Optional. If true and
// [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
// is not specified, 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 Google
// Cloud folder, the results will also include resources in that folder with
// permission P.
//
// If true and
// [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
// is specified, the resource section of the result will expand the
// specified resource to include resources lower in the resource hierarchy.
// Only project or lower resources are supported. Folder and organization
// resources cannot be used together with this option.
//
// For example, if the request analyzes for which users have permission P on
// a Google Cloud project with this option enabled, the results will include
// all users who have permission P on that project or any lower resource.
//
// If true, the default max expansion per resource is 1000 for
// AssetService.AnalyzeIamPolicy][] and 100000 for
// AssetService.AnalyzeIamPolicyLongrunning][].
//
// 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 the relevant parent/child
// relationships between 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 the relevant membership
// relationships between groups and other groups, and between groups and
// principals. 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
// [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
// 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 Google Cloud folder F, then user A potentially has access to the
// Google Cloud folder F. And those advanced analysis results will be
// included in
// [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis].
//
// Another example, if the request analyzes for who has
// permission P to a Google Cloud 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 Google Cloud folder F, then user A potentially has access to the
// Google Cloud folder F. And those advanced analysis results will be
// included in
// [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis].
//
// Only the following permissions are considered in this analysis:
//
// * `iam.serviceAccounts.actAs`
// * `iam.serviceAccounts.signBlob`
// * `iam.serviceAccounts.signJwt`
// * `iam.serviceAccounts.getAccessToken`
// * `iam.serviceAccounts.getOpenIdToken`
// * `iam.serviceAccounts.implicitDelegation`
//
// Default is false.
AnalyzeServiceAccountImpersonation bool `protobuf:"varint,6,opt,name=analyze_service_account_impersonation,json=analyzeServiceAccountImpersonation,proto3" json:"analyze_service_account_impersonation,omitempty"`
// contains filtered or unexported fields
}Contains query options.
func (*IamPolicyAnalysisQuery_Options) Descriptor
func (*IamPolicyAnalysisQuery_Options) Descriptor() ([]byte, []int)Deprecated: Use IamPolicyAnalysisQuery_Options.ProtoReflect.Descriptor instead.
func (*IamPolicyAnalysisQuery_Options) GetAnalyzeServiceAccountImpersonation
func (x *IamPolicyAnalysisQuery_Options) GetAnalyzeServiceAccountImpersonation() boolfunc (*IamPolicyAnalysisQuery_Options) GetExpandGroups
func (x *IamPolicyAnalysisQuery_Options) GetExpandGroups() boolfunc (*IamPolicyAnalysisQuery_Options) GetExpandResources
func (x *IamPolicyAnalysisQuery_Options) GetExpandResources() boolfunc (*IamPolicyAnalysisQuery_Options) GetExpandRoles
func (x *IamPolicyAnalysisQuery_Options) GetExpandRoles() boolfunc (*IamPolicyAnalysisQuery_Options) GetOutputGroupEdges
func (x *IamPolicyAnalysisQuery_Options) GetOutputGroupEdges() boolfunc (*IamPolicyAnalysisQuery_Options) GetOutputResourceEdges
func (x *IamPolicyAnalysisQuery_Options) GetOutputResourceEdges() boolfunc (*IamPolicyAnalysisQuery_Options) ProtoMessage
func (*IamPolicyAnalysisQuery_Options) ProtoMessage()func (*IamPolicyAnalysisQuery_Options) ProtoReflect
func (x *IamPolicyAnalysisQuery_Options) ProtoReflect() protoreflect.Messagefunc (*IamPolicyAnalysisQuery_Options) Reset
func (x *IamPolicyAnalysisQuery_Options) Reset()func (*IamPolicyAnalysisQuery_Options) String
func (x *IamPolicyAnalysisQuery_Options) String() stringIamPolicyAnalysisQuery_ResourceSelector
type IamPolicyAnalysisQuery_ResourceSelector struct {
// Required. The [full resource name]
// (https://cloud.google.com/asset-inventory/docs/resource-name-format)
// of a resource of [supported resource
// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#analyzable_asset_types).
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.
func (*IamPolicyAnalysisQuery_ResourceSelector) Descriptor
func (*IamPolicyAnalysisQuery_ResourceSelector) Descriptor() ([]byte, []int)Deprecated: Use IamPolicyAnalysisQuery_ResourceSelector.ProtoReflect.Descriptor instead.
func (*IamPolicyAnalysisQuery_ResourceSelector) GetFullResourceName
func (x *IamPolicyAnalysisQuery_ResourceSelector) GetFullResourceName() stringfunc (*IamPolicyAnalysisQuery_ResourceSelector) ProtoMessage
func (*IamPolicyAnalysisQuery_ResourceSelector) ProtoMessage()func (*IamPolicyAnalysisQuery_ResourceSelector) ProtoReflect
func (x *IamPolicyAnalysisQuery_ResourceSelector) ProtoReflect() protoreflect.Messagefunc (*IamPolicyAnalysisQuery_ResourceSelector) Reset
func (x *IamPolicyAnalysisQuery_ResourceSelector) Reset()func (*IamPolicyAnalysisQuery_ResourceSelector) String
func (x *IamPolicyAnalysisQuery_ResourceSelector) String() stringIamPolicyAnalysisResult
type IamPolicyAnalysisResult struct {
// The [full resource
// name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
// of the resource to which the
// [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
// policy attaches.
AttachedResourceFullName string `protobuf:"bytes,1,opt,name=attached_resource_full_name,json=attachedResourceFullName,proto3" json:"attached_resource_full_name,omitempty"`
// The IAM policy binding under analysis.
IamBinding *iampb.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.v1.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.v1.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 analyses on the
// [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
// have successfully finished.
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
func (*IamPolicyAnalysisResult) Descriptor() ([]byte, []int)Deprecated: Use IamPolicyAnalysisResult.ProtoReflect.Descriptor instead.
func (*IamPolicyAnalysisResult) GetAccessControlLists
func (x *IamPolicyAnalysisResult) GetAccessControlLists() []*IamPolicyAnalysisResult_AccessControlListfunc (*IamPolicyAnalysisResult) GetAttachedResourceFullName
func (x *IamPolicyAnalysisResult) GetAttachedResourceFullName() stringfunc (*IamPolicyAnalysisResult) GetFullyExplored
func (x *IamPolicyAnalysisResult) GetFullyExplored() boolfunc (*IamPolicyAnalysisResult) GetIamBinding
func (x *IamPolicyAnalysisResult) GetIamBinding() *iampb.Bindingfunc (*IamPolicyAnalysisResult) GetIdentityList
func (x *IamPolicyAnalysisResult) GetIdentityList() *IamPolicyAnalysisResult_IdentityListfunc (*IamPolicyAnalysisResult) ProtoMessage
func (*IamPolicyAnalysisResult) ProtoMessage()func (*IamPolicyAnalysisResult) ProtoReflect
func (x *IamPolicyAnalysisResult) ProtoReflect() protoreflect.Messagefunc (*IamPolicyAnalysisResult) Reset
func (x *IamPolicyAnalysisResult) Reset()func (*IamPolicyAnalysisResult) String
func (x *IamPolicyAnalysisResult) String() stringIamPolicyAnalysisResult_Access
type IamPolicyAnalysisResult_Access struct {
// Types that are valid to be assigned to OneofAccess:
//
// *IamPolicyAnalysisResult_Access_Role
// *IamPolicyAnalysisResult_Access_Permission
OneofAccess isIamPolicyAnalysisResult_Access_OneofAccess `protobuf_oneof:"oneof_access"`
// The analysis state of this access.
AnalysisState *IamPolicyAnalysisState `protobuf:"bytes,3,opt,name=analysis_state,json=analysisState,proto3" json:"analysis_state,omitempty"`
// contains filtered or unexported fields
}An IAM role or permission under analysis.
func (*IamPolicyAnalysisResult_Access) Descriptor
func (*IamPolicyAnalysisResult_Access) Descriptor() ([]byte, []int)Deprecated: Use IamPolicyAnalysisResult_Access.ProtoReflect.Descriptor instead.
func (*IamPolicyAnalysisResult_Access) GetAnalysisState
func (x *IamPolicyAnalysisResult_Access) GetAnalysisState() *IamPolicyAnalysisStatefunc (*IamPolicyAnalysisResult_Access) GetOneofAccess
func (x *IamPolicyAnalysisResult_Access) GetOneofAccess() isIamPolicyAnalysisResult_Access_OneofAccessfunc (*IamPolicyAnalysisResult_Access) GetPermission
func (x *IamPolicyAnalysisResult_Access) GetPermission() stringfunc (*IamPolicyAnalysisResult_Access) GetRole
func (x *IamPolicyAnalysisResult_Access) GetRole() stringfunc (*IamPolicyAnalysisResult_Access) ProtoMessage
func (*IamPolicyAnalysisResult_Access) ProtoMessage()func (*IamPolicyAnalysisResult_Access) ProtoReflect
func (x *IamPolicyAnalysisResult_Access) ProtoReflect() protoreflect.Messagefunc (*IamPolicyAnalysisResult_Access) Reset
func (x *IamPolicyAnalysisResult_Access) Reset()func (*IamPolicyAnalysisResult_Access) String
func (x *IamPolicyAnalysisResult_Access) String() stringIamPolicyAnalysisResult_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.v1.IamPolicyAnalysisResult.Edge.source_node]
// contains the full resource name of a parent resource and
// [Edge.target_node][google.cloud.asset.v1.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"`
// Condition evaluation for this AccessControlList, if there is a condition
// defined in the above IAM policy binding.
ConditionEvaluation *ConditionEvaluation `protobuf:"bytes,4,opt,name=condition_evaluation,json=conditionEvaluation,proto3" json:"condition_evaluation,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
func (*IamPolicyAnalysisResult_AccessControlList) Descriptor() ([]byte, []int)Deprecated: Use IamPolicyAnalysisResult_AccessControlList.ProtoReflect.Descriptor instead.
func (*IamPolicyAnalysisResult_AccessControlList) GetAccesses
func (x *IamPolicyAnalysisResult_AccessControlList) GetAccesses() []*IamPolicyAnalysisResult_Accessfunc (*IamPolicyAnalysisResult_AccessControlList) GetConditionEvaluation
func (x *IamPolicyAnalysisResult_AccessControlList) GetConditionEvaluation() *ConditionEvaluationfunc (*IamPolicyAnalysisResult_AccessControlList) GetResourceEdges
func (x *IamPolicyAnalysisResult_AccessControlList) GetResourceEdges() []*IamPolicyAnalysisResult_Edgefunc (*IamPolicyAnalysisResult_AccessControlList) GetResources
func (x *IamPolicyAnalysisResult_AccessControlList) GetResources() []*IamPolicyAnalysisResult_Resourcefunc (*IamPolicyAnalysisResult_AccessControlList) ProtoMessage
func (*IamPolicyAnalysisResult_AccessControlList) ProtoMessage()func (*IamPolicyAnalysisResult_AccessControlList) ProtoReflect
func (x *IamPolicyAnalysisResult_AccessControlList) ProtoReflect() protoreflect.Messagefunc (*IamPolicyAnalysisResult_AccessControlList) Reset
func (x *IamPolicyAnalysisResult_AccessControlList) Reset()func (*IamPolicyAnalysisResult_AccessControlList) String
func (x *IamPolicyAnalysisResult_AccessControlList) String() stringIamPolicyAnalysisResult_Access_Permission
type IamPolicyAnalysisResult_Access_Permission struct {
// The permission.
Permission string `protobuf:"bytes,2,opt,name=permission,proto3,oneof"`
}IamPolicyAnalysisResult_Access_Role
type IamPolicyAnalysisResult_Access_Role struct {
// The role.
Role string `protobuf:"bytes,1,opt,name=role,proto3,oneof"`
}IamPolicyAnalysisResult_Edge
type IamPolicyAnalysisResult_Edge struct {
// The source node of the edge. For example, it could be a full resource
// name for a resource node or an email of an identity.
SourceNode string `protobuf:"bytes,1,opt,name=source_node,json=sourceNode,proto3" json:"source_node,omitempty"`
// The target node of the edge. For example, it could be a full resource
// name for a resource node or an email of an identity.
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
func (*IamPolicyAnalysisResult_Edge) Descriptor() ([]byte, []int)Deprecated: Use IamPolicyAnalysisResult_Edge.ProtoReflect.Descriptor instead.
func (*IamPolicyAnalysisResult_Edge) GetSourceNode
func (x *IamPolicyAnalysisResult_Edge) GetSourceNode() stringfunc (*IamPolicyAnalysisResult_Edge) GetTargetNode
func (x *IamPolicyAnalysisResult_Edge) GetTargetNode() stringfunc (*IamPolicyAnalysisResult_Edge) ProtoMessage
func (*IamPolicyAnalysisResult_Edge) ProtoMessage()func (*IamPolicyAnalysisResult_Edge) ProtoReflect
func (x *IamPolicyAnalysisResult_Edge) ProtoReflect() protoreflect.Messagefunc (*IamPolicyAnalysisResult_Edge) Reset
func (x *IamPolicyAnalysisResult_Edge) Reset()func (*IamPolicyAnalysisResult_Edge) String
func (x *IamPolicyAnalysisResult_Edge) String() stringIamPolicyAnalysisResult_Identity
type IamPolicyAnalysisResult_Identity struct {
// The identity of members, formatted as appear in an
// [IAM policy
// binding](https://cloud.google.com/iam/reference/rest/v1/Binding). For
// example, they might be formatted like the following:
//
// - user:foo@google.com
// - group:group1@google.com
// - serviceAccount:s1@prj1.iam.gserviceaccount.com
// - projectOwner:some_project_id
// - domain:google.com
// - allUsers
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The analysis state of this identity.
AnalysisState *IamPolicyAnalysisState `protobuf:"bytes,2,opt,name=analysis_state,json=analysisState,proto3" json:"analysis_state,omitempty"`
// contains filtered or unexported fields
}An identity under analysis.
func (*IamPolicyAnalysisResult_Identity) Descriptor
func (*IamPolicyAnalysisResult_Identity) Descriptor() ([]byte, []int)Deprecated: Use IamPolicyAnalysisResult_Identity.ProtoReflect.Descriptor instead.
func (*IamPolicyAnalysisResult_Identity) GetAnalysisState
func (x *IamPolicyAnalysisResult_Identity) GetAnalysisState() *IamPolicyAnalysisStatefunc (*IamPolicyAnalysisResult_Identity) GetName
func (x *IamPolicyAnalysisResult_Identity) GetName() stringfunc (*IamPolicyAnalysisResult_Identity) ProtoMessage
func (*IamPolicyAnalysisResult_Identity) ProtoMessage()func (*IamPolicyAnalysisResult_Identity) ProtoReflect
func (x *IamPolicyAnalysisResult_Identity) ProtoReflect() protoreflect.Messagefunc (*IamPolicyAnalysisResult_Identity) Reset
func (x *IamPolicyAnalysisResult_Identity) Reset()func (*IamPolicyAnalysisResult_Identity) String
func (x *IamPolicyAnalysisResult_Identity) String() stringIamPolicyAnalysisResult_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.v1.IamPolicyAnalysisResult.IdentityList.identities].
// The
// [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
// contains a group, such as `group:parent@google.com`. The
// [Edge.target_node][google.cloud.asset.v1.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
}The identities and group edges.
func (*IamPolicyAnalysisResult_IdentityList) Descriptor
func (*IamPolicyAnalysisResult_IdentityList) Descriptor() ([]byte, []int)Deprecated: Use IamPolicyAnalysisResult_IdentityList.ProtoReflect.Descriptor instead.
func (*IamPolicyAnalysisResult_IdentityList) GetGroupEdges
func (x *IamPolicyAnalysisResult_IdentityList) GetGroupEdges() []*IamPolicyAnalysisResult_Edgefunc (*IamPolicyAnalysisResult_IdentityList) GetIdentities
func (x *IamPolicyAnalysisResult_IdentityList) GetIdentities() []*IamPolicyAnalysisResult_Identityfunc (*IamPolicyAnalysisResult_IdentityList) ProtoMessage
func (*IamPolicyAnalysisResult_IdentityList) ProtoMessage()func (*IamPolicyAnalysisResult_IdentityList) ProtoReflect
func (x *IamPolicyAnalysisResult_IdentityList) ProtoReflect() protoreflect.Messagefunc (*IamPolicyAnalysisResult_IdentityList) Reset
func (x *IamPolicyAnalysisResult_IdentityList) Reset()func (*IamPolicyAnalysisResult_IdentityList) String
func (x *IamPolicyAnalysisResult_IdentityList) String() stringIamPolicyAnalysisResult_Resource
type IamPolicyAnalysisResult_Resource struct {
// The [full resource
// name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
FullResourceName string `protobuf:"bytes,1,opt,name=full_resource_name,json=fullResourceName,proto3" json:"full_resource_name,omitempty"`
// The analysis state of this resource.
AnalysisState *IamPolicyAnalysisState `protobuf:"bytes,2,opt,name=analysis_state,json=analysisState,proto3" json:"analysis_state,omitempty"`
// contains filtered or unexported fields
}A Google Cloud resource under analysis.
func (*IamPolicyAnalysisResult_Resource) Descriptor
func (*IamPolicyAnalysisResult_Resource) Descriptor() ([]byte, []int)Deprecated: Use IamPolicyAnalysisResult_Resource.ProtoReflect.Descriptor instead.
func (*IamPolicyAnalysisResult_Resource) GetAnalysisState
func (x *IamPolicyAnalysisResult_Resource) GetAnalysisState() *IamPolicyAnalysisStatefunc (*IamPolicyAnalysisResult_Resource) GetFullResourceName
func (x *IamPolicyAnalysisResult_Resource) GetFullResourceName() stringfunc (*IamPolicyAnalysisResult_Resource) ProtoMessage
func (*IamPolicyAnalysisResult_Resource) ProtoMessage()func (*IamPolicyAnalysisResult_Resource) ProtoReflect
func (x *IamPolicyAnalysisResult_Resource) ProtoReflect() protoreflect.Messagefunc (*IamPolicyAnalysisResult_Resource) Reset
func (x *IamPolicyAnalysisResult_Resource) Reset()func (*IamPolicyAnalysisResult_Resource) String
func (x *IamPolicyAnalysisResult_Resource) String() stringIamPolicyAnalysisState
type IamPolicyAnalysisState struct {
// The Google standard error code that best describes the state.
// For example:
// - OK means the analysis on this entity has been successfully finished;
// - PERMISSION_DENIED means an access denied error is encountered;
// - DEADLINE_EXCEEDED means the analysis on this entity hasn't been started
// 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 the detailed state of an entity under analysis, such as a resource, an identity or an access.
func (*IamPolicyAnalysisState) Descriptor
func (*IamPolicyAnalysisState) Descriptor() ([]byte, []int)Deprecated: Use IamPolicyAnalysisState.ProtoReflect.Descriptor instead.
func (*IamPolicyAnalysisState) GetCause
func (x *IamPolicyAnalysisState) GetCause() stringfunc (*IamPolicyAnalysisState) GetCode
func (x *IamPolicyAnalysisState) GetCode() code.Codefunc (*IamPolicyAnalysisState) ProtoMessage
func (*IamPolicyAnalysisState) ProtoMessage()func (*IamPolicyAnalysisState) ProtoReflect
func (x *IamPolicyAnalysisState) ProtoReflect() protoreflect.Messagefunc (*IamPolicyAnalysisState) Reset
func (x *IamPolicyAnalysisState) Reset()func (*IamPolicyAnalysisState) String
func (x *IamPolicyAnalysisState) String() stringIamPolicySearchResult
type IamPolicySearchResult struct {
// The full resource name of the resource associated with this IAM policy.
// Example:
// `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
// See [Cloud Asset Inventory Resource Name
// Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
// for more information.
//
// To search against the `resource`:
//
// * use a field query. Example: `resource:organizations/123`
Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
// The type of the resource associated with this IAM policy. Example:
// `compute.googleapis.com/Disk`.
//
// To search against the `asset_type`:
//
// * specify the `asset_types` field in your search request.
AssetType string `protobuf:"bytes,5,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"`
// The project that the associated Google Cloud resource belongs to, in the
// form of projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource
// (like VM instance, Cloud Storage bucket), the project field will indicate
// the project that contains the resource. If an IAM policy is set on a folder
// or organization, this field will be empty.
//
// To search against the `project`:
//
// * specify the `scope` field as this project in your search request.
Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
// The folder(s) that the IAM policy belongs to, in the form of
// folders/{FOLDER_NUMBER}. This field is available when the IAM policy
// belongs to one or more folders.
//
// To search against `folders`:
//
// * use a field query. Example: `folders:(123 OR 456)`
// * use a free text query. Example: `123`
// * specify the `scope` field as this folder in your search request.
Folders []string `protobuf:"bytes,6,rep,name=folders,proto3" json:"folders,omitempty"`
// The organization that the IAM policy belongs to, in the form
// of organizations/{ORGANIZATION_NUMBER}. This field is available when the
// IAM policy belongs to an organization.
//
// To search against `organization`:
//
// * use a field query. Example: `organization:123`
// * use a free text query. Example: `123`
// * specify the `scope` field as this organization in your search request.
Organization string `protobuf:"bytes,7,opt,name=organization,proto3" json:"organization,omitempty"`
// The IAM policy directly set on the given resource. Note that the original
// IAM policy can contain multiple bindings. This only contains the bindings
// that match the given query. For queries that don't contain a constrain on
// policies (e.g., an empty query), this contains all the bindings.
//
// To search against the `policy` bindings:
//
// * use a field query:
// - query by the policy contained members. Example:
// `policy:amy@gmail.com`
// - query by the policy contained roles. Example:
// `policy:roles/compute.admin`
// - query by the policy contained roles' included permissions. Example:
// `policy.role.permissions:compute.instances.create`
Policy *iampb.Policy `protobuf:"bytes,3,opt,name=policy,proto3" json:"policy,omitempty"`
// Explanation about the IAM policy search result. It contains additional
// information to explain why the search result matches the query.
Explanation *IamPolicySearchResult_Explanation `protobuf:"bytes,4,opt,name=explanation,proto3" json:"explanation,omitempty"`
// contains filtered or unexported fields
}A result of IAM Policy search, containing information of an IAM policy.
func (*IamPolicySearchResult) Descriptor
func (*IamPolicySearchResult) Descriptor() ([]byte, []int)Deprecated: Use IamPolicySearchResult.ProtoReflect.Descriptor instead.
func (*IamPolicySearchResult) GetAssetType
func (x *IamPolicySearchResult) GetAssetType() stringfunc (*IamPolicySearchResult) GetExplanation
func (x *IamPolicySearchResult) GetExplanation() *IamPolicySearchResult_Explanationfunc (*IamPolicySearchResult) GetFolders
func (x *IamPolicySearchResult) GetFolders() []stringfunc (*IamPolicySearchResult) GetOrganization
func (x *IamPolicySearchResult) GetOrganization() stringfunc (*IamPolicySearchResult) GetPolicy
func (x *IamPolicySearchResult) GetPolicy() *iampb.Policyfunc (*IamPolicySearchResult) GetProject
func (x *IamPolicySearchResult) GetProject() stringfunc (*IamPolicySearchResult) GetResource
func (x *IamPolicySearchResult) GetResource() stringfunc (*IamPolicySearchResult) ProtoMessage
func (*IamPolicySearchResult) ProtoMessage()func (*IamPolicySearchResult) ProtoReflect
func (x *IamPolicySearchResult) ProtoReflect() protoreflect.Messagefunc (*IamPolicySearchResult) Reset
func (x *IamPolicySearchResult) Reset()func (*IamPolicySearchResult) String
func (x *IamPolicySearchResult) String() stringIamPolicySearchResult_Explanation
type IamPolicySearchResult_Explanation struct {
// The map from roles to their included permissions that match the
// permission query (i.e., a query containing `policy.role.permissions:`).
// Example: if query `policy.role.permissions:compute.disk.get`
// matches a policy binding that contains owner role, the
// matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
// roles can also be found in the returned `policy` bindings. Note that the
// map is populated only for requests with permission queries.
MatchedPermissions map[string]*IamPolicySearchResult_Explanation_Permissions `protobuf:"bytes,1,rep,name=matched_permissions,json=matchedPermissions,proto3" json:"matched_permissions,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// contains filtered or unexported fields
}Explanation about the IAM policy search result.
func (*IamPolicySearchResult_Explanation) Descriptor
func (*IamPolicySearchResult_Explanation) Descriptor() ([]byte, []int)Deprecated: Use IamPolicySearchResult_Explanation.ProtoReflect.Descriptor instead.
func (*IamPolicySearchResult_Explanation) GetMatchedPermissions
func (x *IamPolicySearchResult_Explanation) GetMatchedPermissions() map[string]*IamPolicySearchResult_Explanation_Permissionsfunc (*IamPolicySearchResult_Explanation) ProtoMessage
func (*IamPolicySearchResult_Explanation) ProtoMessage()func (*IamPolicySearchResult_Explanation) ProtoReflect
func (x *IamPolicySearchResult_Explanation) ProtoReflect() protoreflect.Messagefunc (*IamPolicySearchResult_Explanation) Reset
func (x *IamPolicySearchResult_Explanation) Reset()func (*IamPolicySearchResult_Explanation) String
func (x *IamPolicySearchResult_Explanation) String() stringIamPolicySearchResult_Explanation_Permissions
type IamPolicySearchResult_Explanation_Permissions struct {
// A list of permissions. A sample permission string: `compute.disk.get`.
Permissions []string `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"`
// contains filtered or unexported fields
}IAM permissions
func (*IamPolicySearchResult_Explanation_Permissions) Descriptor
func (*IamPolicySearchResult_Explanation_Permissions) Descriptor() ([]byte, []int)Deprecated: Use IamPolicySearchResult_Explanation_Permissions.ProtoReflect.Descriptor instead.
func (*IamPolicySearchResult_Explanation_Permissions) GetPermissions
func (x *IamPolicySearchResult_Explanation_Permissions) GetPermissions() []stringfunc (*IamPolicySearchResult_Explanation_Permissions) ProtoMessage
func (*IamPolicySearchResult_Explanation_Permissions) ProtoMessage()func (*IamPolicySearchResult_Explanation_Permissions) ProtoReflect
func (x *IamPolicySearchResult_Explanation_Permissions) ProtoReflect() protoreflect.Messagefunc (*IamPolicySearchResult_Explanation_Permissions) Reset
func (x *IamPolicySearchResult_Explanation_Permissions) Reset()func (*IamPolicySearchResult_Explanation_Permissions) String
func (x *IamPolicySearchResult_Explanation_Permissions) String() stringListAssetsRequest
type ListAssetsRequest struct {
// Required. Name of the organization, folder, or project the assets belong
// to. Format: "organizations/[organization-number]" (such as
// "organizations/123"), "projects/[project-id]" (such as
// "projects/my-project-id"), "projects/[project-number]" (such as
// "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Timestamp to take an asset snapshot. This can only be set to a timestamp
// between the current time and the current time minus 35 days (inclusive).
// If not specified, the current time will be used. Due to delays in resource
// data collection and indexing, there is a volatile window during which
// running the same query may get different results.
ReadTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
// A list of asset types to take a snapshot for. For example:
// "compute.googleapis.com/Disk".
//
// Regular expression is also supported. For example:
//
// * "compute.googleapis.com.*" snapshots resources whose asset type starts
// with "compute.googleapis.com".
// * ".*Instance" snapshots resources whose asset type ends with "Instance".
// * ".*Instance.*" snapshots resources whose asset type contains "Instance".
//
// See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
// regular expression syntax. If the regular expression does not match any
// supported asset type, an INVALID_ARGUMENT error will be returned.
//
// If specified, only matching assets will be returned, otherwise, it will
// snapshot all asset types. See [Introduction to Cloud Asset
// Inventory](https://cloud.google.com/asset-inventory/docs/overview)
// for all supported asset types.
AssetTypes []string `protobuf:"bytes,3,rep,name=asset_types,json=assetTypes,proto3" json:"asset_types,omitempty"`
// Asset content type. If not specified, no content but the asset name will
// be returned.
ContentType ContentType `protobuf:"varint,4,opt,name=content_type,json=contentType,proto3,enum=google.cloud.asset.v1.ContentType" json:"content_type,omitempty"`
// The maximum number of assets to be returned in a single response. Default
// is 100, minimum is 1, and maximum is 1000.
PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The `next_page_token` returned from the previous `ListAssetsResponse`, or
// unspecified for the first `ListAssetsRequest`. It is a continuation of a
// prior `ListAssets` call, and the API should return the next page of assets.
PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// A list of relationship types to output, for example:
// `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
// content_type=RELATIONSHIP.
// * If specified:
// it snapshots specified relationships. It returns an error if
// any of the [relationship_types] doesn't belong to the supported
// relationship types of the [asset_types] or if any of the [asset_types]
// doesn't belong to the source types of the [relationship_types].
// * Otherwise:
// it snapshots the supported relationships for all [asset_types] or returns
// an error if any of the [asset_types] has no relationship support.
// An unspecified asset types field means all supported asset_types.
// See [Introduction to Cloud Asset
// Inventory](https://cloud.google.com/asset-inventory/docs/overview)
// for all supported asset types and relationship types.
RelationshipTypes []string `protobuf:"bytes,7,rep,name=relationship_types,json=relationshipTypes,proto3" json:"relationship_types,omitempty"`
// contains filtered or unexported fields
}ListAssets request.
func (*ListAssetsRequest) Descriptor
func (*ListAssetsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListAssetsRequest.ProtoReflect.Descriptor instead.
func (*ListAssetsRequest) GetAssetTypes
func (x *ListAssetsRequest) GetAssetTypes() []stringfunc (*ListAssetsRequest) GetContentType
func (x *ListAssetsRequest) GetContentType() ContentTypefunc (*ListAssetsRequest) GetPageSize
func (x *ListAssetsRequest) GetPageSize() int32func (*ListAssetsRequest) GetPageToken
func (x *ListAssetsRequest) GetPageToken() stringfunc (*ListAssetsRequest) GetParent
func (x *ListAssetsRequest) GetParent() stringfunc (*ListAssetsRequest) GetReadTime
func (x *ListAssetsRequest) GetReadTime() *timestamppb.Timestampfunc (*ListAssetsRequest) GetRelationshipTypes
func (x *ListAssetsRequest) GetRelationshipTypes() []stringfunc (*ListAssetsRequest) ProtoMessage
func (*ListAssetsRequest) ProtoMessage()func (*ListAssetsRequest) ProtoReflect
func (x *ListAssetsRequest) ProtoReflect() protoreflect.Messagefunc (*ListAssetsRequest) Reset
func (x *ListAssetsRequest) Reset()func (*ListAssetsRequest) String
func (x *ListAssetsRequest) String() stringListAssetsResponse
type ListAssetsResponse struct {
// Time the snapshot was taken.
ReadTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
// Assets.
Assets []*Asset `protobuf:"bytes,2,rep,name=assets,proto3" json:"assets,omitempty"`
// Token to retrieve the next page of results. It expires 72 hours after the
// page token for the first page is generated. Set to empty if there are no
// remaining results.
NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}ListAssets response.
func (*ListAssetsResponse) Descriptor
func (*ListAssetsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListAssetsResponse.ProtoReflect.Descriptor instead.
func (*ListAssetsResponse) GetAssets
func (x *ListAssetsResponse) GetAssets() []*Assetfunc (*ListAssetsResponse) GetNextPageToken
func (x *ListAssetsResponse) GetNextPageToken() stringfunc (*ListAssetsResponse) GetReadTime
func (x *ListAssetsResponse) GetReadTime() *timestamppb.Timestampfunc (*ListAssetsResponse) ProtoMessage
func (*ListAssetsResponse) ProtoMessage()func (*ListAssetsResponse) ProtoReflect
func (x *ListAssetsResponse) ProtoReflect() protoreflect.Messagefunc (*ListAssetsResponse) Reset
func (x *ListAssetsResponse) Reset()func (*ListAssetsResponse) String
func (x *ListAssetsResponse) String() stringListFeedsRequest
type ListFeedsRequest struct {
// Required. The parent project/folder/organization whose feeds are to be
// listed. It can only be using project/folder/organization number (such as
// "folders/12345")", or a project ID (such as "projects/my-project-id").
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// contains filtered or unexported fields
}List asset feeds request.
func (*ListFeedsRequest) Descriptor
func (*ListFeedsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListFeedsRequest.ProtoReflect.Descriptor instead.
func (*ListFeedsRequest) GetParent
func (x *ListFeedsRequest) GetParent() stringfunc (*ListFeedsRequest) ProtoMessage
func (*ListFeedsRequest) ProtoMessage()func (*ListFeedsRequest) ProtoReflect
func (x *ListFeedsRequest) ProtoReflect() protoreflect.Messagefunc (*ListFeedsRequest) Reset
func (x *ListFeedsRequest) Reset()func (*ListFeedsRequest) String
func (x *ListFeedsRequest) String() stringListFeedsResponse
type ListFeedsResponse struct {
// A list of feeds.
Feeds []*Feed `protobuf:"bytes,1,rep,name=feeds,proto3" json:"feeds,omitempty"`
// contains filtered or unexported fields
}func (*ListFeedsResponse) Descriptor
func (*ListFeedsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListFeedsResponse.ProtoReflect.Descriptor instead.
func (*ListFeedsResponse) GetFeeds
func (x *ListFeedsResponse) GetFeeds() []*Feedfunc (*ListFeedsResponse) ProtoMessage
func (*ListFeedsResponse) ProtoMessage()func (*ListFeedsResponse) ProtoReflect
func (x *ListFeedsResponse) ProtoReflect() protoreflect.Messagefunc (*ListFeedsResponse) Reset
func (x *ListFeedsResponse) Reset()func (*ListFeedsResponse) String
func (x *ListFeedsResponse) String() stringListSavedQueriesRequest
type ListSavedQueriesRequest struct {
// Required. The parent project/folder/organization whose savedQueries are to
// be listed. It can only be using project/folder/organization number (such as
// "folders/12345")", or a project ID (such as "projects/my-project-id").
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The expression to filter resources.
// The expression is a list of zero or more restrictions combined via logical
// operators `AND` and `OR`. When `AND` and `OR` are both used in the
// expression, parentheses must be appropriately used to group the
// combinations. The expression may also contain regular expressions.
//
// See https://google.aip.dev/160 for more information on the grammar.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. The maximum number of saved queries to return per page. The
// service may return fewer than this value. If unspecified, at most 50 will
// be returned. The maximum value is 1000; values above 1000 will be coerced
// to 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListSavedQueries` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListSavedQueries` must
// match the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request to list saved queries.
func (*ListSavedQueriesRequest) Descriptor
func (*ListSavedQueriesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListSavedQueriesRequest.ProtoReflect.Descriptor instead.
func (*ListSavedQueriesRequest) GetFilter
func (x *ListSavedQueriesRequest) GetFilter() stringfunc (*ListSavedQueriesRequest) GetPageSize
func (x *ListSavedQueriesRequest) GetPageSize() int32func (*ListSavedQueriesRequest) GetPageToken
func (x *ListSavedQueriesRequest) GetPageToken() stringfunc (*ListSavedQueriesRequest) GetParent
func (x *ListSavedQueriesRequest) GetParent() stringfunc (*ListSavedQueriesRequest) ProtoMessage
func (*ListSavedQueriesRequest) ProtoMessage()func (*ListSavedQueriesRequest) ProtoReflect
func (x *ListSavedQueriesRequest) ProtoReflect() protoreflect.Messagefunc (*ListSavedQueriesRequest) Reset
func (x *ListSavedQueriesRequest) Reset()func (*ListSavedQueriesRequest) String
func (x *ListSavedQueriesRequest) String() stringListSavedQueriesResponse
type ListSavedQueriesResponse struct {
// A list of savedQueries.
SavedQueries []*SavedQuery `protobuf:"bytes,1,rep,name=saved_queries,json=savedQueries,proto3" json:"saved_queries,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response of listing saved queries.
func (*ListSavedQueriesResponse) Descriptor
func (*ListSavedQueriesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListSavedQueriesResponse.ProtoReflect.Descriptor instead.
func (*ListSavedQueriesResponse) GetNextPageToken
func (x *ListSavedQueriesResponse) GetNextPageToken() stringfunc (*ListSavedQueriesResponse) GetSavedQueries
func (x *ListSavedQueriesResponse) GetSavedQueries() []*SavedQueryfunc (*ListSavedQueriesResponse) ProtoMessage
func (*ListSavedQueriesResponse) ProtoMessage()func (*ListSavedQueriesResponse) ProtoReflect
func (x *ListSavedQueriesResponse) ProtoReflect() protoreflect.Messagefunc (*ListSavedQueriesResponse) Reset
func (x *ListSavedQueriesResponse) Reset()func (*ListSavedQueriesResponse) String
func (x *ListSavedQueriesResponse) String() stringMoveAnalysis
type MoveAnalysis struct {
// The user friendly display name of the analysis. E.g. IAM, organization
// policy etc.
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Types that are valid to be assigned to Result:
//
// *MoveAnalysis_Analysis
// *MoveAnalysis_Error
Result isMoveAnalysis_Result `protobuf_oneof:"result"`
// contains filtered or unexported fields
}A message to group the analysis information.
func (*MoveAnalysis) Descriptor
func (*MoveAnalysis) Descriptor() ([]byte, []int)Deprecated: Use MoveAnalysis.ProtoReflect.Descriptor instead.
func (*MoveAnalysis) GetAnalysis
func (x *MoveAnalysis) GetAnalysis() *MoveAnalysisResultfunc (*MoveAnalysis) GetDisplayName
func (x *MoveAnalysis) GetDisplayName() stringfunc (*MoveAnalysis) GetError
func (x *MoveAnalysis) GetError() *status.Statusfunc (*MoveAnalysis) GetResult
func (x *MoveAnalysis) GetResult() isMoveAnalysis_Resultfunc (*MoveAnalysis) ProtoMessage
func (*MoveAnalysis) ProtoMessage()func (*MoveAnalysis) ProtoReflect
func (x *MoveAnalysis) ProtoReflect() protoreflect.Messagefunc (*MoveAnalysis) Reset
func (x *MoveAnalysis) Reset()func (*MoveAnalysis) String
func (x *MoveAnalysis) String() stringMoveAnalysisResult
type MoveAnalysisResult struct {
// Blocking information that would prevent the target resource from moving
// to the specified destination at runtime.
Blockers []*MoveImpact `protobuf:"bytes,1,rep,name=blockers,proto3" json:"blockers,omitempty"`
// Warning information indicating that moving the target resource to the
// specified destination might be unsafe. This can include important policy
// information and configuration changes, but will not block moves at runtime.
Warnings []*MoveImpact `protobuf:"bytes,2,rep,name=warnings,proto3" json:"warnings,omitempty"`
// contains filtered or unexported fields
}An analysis result including blockers and warnings.
func (*MoveAnalysisResult) Descriptor
func (*MoveAnalysisResult) Descriptor() ([]byte, []int)Deprecated: Use MoveAnalysisResult.ProtoReflect.Descriptor instead.
func (*MoveAnalysisResult) GetBlockers
func (x *MoveAnalysisResult) GetBlockers() []*MoveImpactfunc (*MoveAnalysisResult) GetWarnings
func (x *MoveAnalysisResult) GetWarnings() []*MoveImpactfunc (*MoveAnalysisResult) ProtoMessage
func (*MoveAnalysisResult) ProtoMessage()func (*MoveAnalysisResult) ProtoReflect
func (x *MoveAnalysisResult) ProtoReflect() protoreflect.Messagefunc (*MoveAnalysisResult) Reset
func (x *MoveAnalysisResult) Reset()func (*MoveAnalysisResult) String
func (x *MoveAnalysisResult) String() stringMoveAnalysis_Analysis
type MoveAnalysis_Analysis struct {
// Analysis result of moving the target resource.
Analysis *MoveAnalysisResult `protobuf:"bytes,2,opt,name=analysis,proto3,oneof"`
}MoveAnalysis_Error
type MoveAnalysis_Error struct {
// Description of error encountered when performing the analysis.
Error *status.Status `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}MoveImpact
type MoveImpact struct {
// User friendly impact detail in a free form message.
Detail string `protobuf:"bytes,1,opt,name=detail,proto3" json:"detail,omitempty"`
// contains filtered or unexported fields
}A message to group impacts of moving the target resource.
func (*MoveImpact) Descriptor
func (*MoveImpact) Descriptor() ([]byte, []int)Deprecated: Use MoveImpact.ProtoReflect.Descriptor instead.
func (*MoveImpact) GetDetail
func (x *MoveImpact) GetDetail() stringfunc (*MoveImpact) ProtoMessage
func (*MoveImpact) ProtoMessage()func (*MoveImpact) ProtoReflect
func (x *MoveImpact) ProtoReflect() protoreflect.Messagefunc (*MoveImpact) Reset
func (x *MoveImpact) Reset()func (*MoveImpact) String
func (x *MoveImpact) String() stringOutputConfig
type OutputConfig struct {
// Asset export destination.
//
// Types that are valid to be assigned to Destination:
//
// *OutputConfig_GcsDestination
// *OutputConfig_BigqueryDestination
Destination isOutputConfig_Destination `protobuf_oneof:"destination"`
// contains filtered or unexported fields
}Output configuration for export assets destination.
func (*OutputConfig) Descriptor
func (*OutputConfig) Descriptor() ([]byte, []int)Deprecated: Use OutputConfig.ProtoReflect.Descriptor instead.
func (*OutputConfig) GetBigqueryDestination
func (x *OutputConfig) GetBigqueryDestination() *BigQueryDestinationfunc (*OutputConfig) GetDestination
func (x *OutputConfig) GetDestination() isOutputConfig_Destinationfunc (*OutputConfig) GetGcsDestination
func (x *OutputConfig) GetGcsDestination() *GcsDestinationfunc (*OutputConfig) ProtoMessage
func (*OutputConfig) ProtoMessage()func (*OutputConfig) ProtoReflect
func (x *OutputConfig) ProtoReflect() protoreflect.Messagefunc (*OutputConfig) Reset
func (x *OutputConfig) Reset()func (*OutputConfig) String
func (x *OutputConfig) String() stringOutputConfig_BigqueryDestination
type OutputConfig_BigqueryDestination struct {
// Destination on BigQuery. The output table stores the fields in asset
// Protobuf as columns in BigQuery.
BigqueryDestination *BigQueryDestination `protobuf:"bytes,2,opt,name=bigquery_destination,json=bigqueryDestination,proto3,oneof"`
}OutputConfig_GcsDestination
type OutputConfig_GcsDestination struct {
// Destination on Cloud Storage.
GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
}OutputResult
type OutputResult struct {
// Asset export result.
//
// Types that are valid to be assigned to Result:
//
// *OutputResult_GcsResult
Result isOutputResult_Result `protobuf_oneof:"result"`
// contains filtered or unexported fields
}Output result of export assets.
func (*OutputResult) Descriptor
func (*OutputResult) Descriptor() ([]byte, []int)Deprecated: Use OutputResult.ProtoReflect.Descriptor instead.
func (*OutputResult) GetGcsResult
func (x *OutputResult) GetGcsResult() *GcsOutputResultfunc (*OutputResult) GetResult
func (x *OutputResult) GetResult() isOutputResult_Resultfunc (*OutputResult) ProtoMessage
func (*OutputResult) ProtoMessage()func (*OutputResult) ProtoReflect
func (x *OutputResult) ProtoReflect() protoreflect.Messagefunc (*OutputResult) Reset
func (x *OutputResult) Reset()func (*OutputResult) String
func (x *OutputResult) String() stringOutputResult_GcsResult
type OutputResult_GcsResult struct {
// Export result on Cloud Storage.
GcsResult *GcsOutputResult `protobuf:"bytes,1,opt,name=gcs_result,json=gcsResult,proto3,oneof"`
}PartitionSpec
type PartitionSpec struct {
// The partition key for BigQuery partitioned table.
PartitionKey PartitionSpec_PartitionKey `protobuf:"varint,1,opt,name=partition_key,json=partitionKey,proto3,enum=google.cloud.asset.v1.PartitionSpec_PartitionKey" json:"partition_key,omitempty"`
// contains filtered or unexported fields
}Specifications of BigQuery partitioned table as export destination.
func (*PartitionSpec) Descriptor
func (*PartitionSpec) Descriptor() ([]byte, []int)Deprecated: Use PartitionSpec.ProtoReflect.Descriptor instead.
func (*PartitionSpec) GetPartitionKey
func (x *PartitionSpec) GetPartitionKey() PartitionSpec_PartitionKeyfunc (*PartitionSpec) ProtoMessage
func (*PartitionSpec) ProtoMessage()func (*PartitionSpec) ProtoReflect
func (x *PartitionSpec) ProtoReflect() protoreflect.Messagefunc (*PartitionSpec) Reset
func (x *PartitionSpec) Reset()func (*PartitionSpec) String
func (x *PartitionSpec) String() stringPartitionSpec_PartitionKey
type PartitionSpec_PartitionKey int32This enum is used to determine the partition key column when exporting assets to BigQuery partitioned table(s). Note that, if the partition key is a timestamp column, the actual partition is based on its date value (expressed in UTC. see details in https://cloud.google.com/bigquery/docs/partitioned-tables#date_timestamp_partitioned_tables).
PartitionSpec_PARTITION_KEY_UNSPECIFIED, PartitionSpec_READ_TIME, PartitionSpec_REQUEST_TIME
const (
// Unspecified partition key. If used, it means using non-partitioned table.
PartitionSpec_PARTITION_KEY_UNSPECIFIED PartitionSpec_PartitionKey = 0
// The time when the snapshot is taken. If specified as partition key, the
// result table(s) is partitioned by the additional timestamp column,
// readTime. If [read_time] in ExportAssetsRequest is specified, the
// readTime column's value will be the same as it. Otherwise, its value will
// be the current time that is used to take the snapshot.
PartitionSpec_READ_TIME PartitionSpec_PartitionKey = 1
// The time when the request is received and started to be processed. If
// specified as partition key, the result table(s) is partitioned by the
// requestTime column, an additional timestamp column representing when the
// request was received.
PartitionSpec_REQUEST_TIME PartitionSpec_PartitionKey = 2
)func (PartitionSpec_PartitionKey) Descriptor
func (PartitionSpec_PartitionKey) Descriptor() protoreflect.EnumDescriptorfunc (PartitionSpec_PartitionKey) Enum
func (x PartitionSpec_PartitionKey) Enum() *PartitionSpec_PartitionKeyfunc (PartitionSpec_PartitionKey) EnumDescriptor
func (PartitionSpec_PartitionKey) EnumDescriptor() ([]byte, []int)Deprecated: Use PartitionSpec_PartitionKey.Descriptor instead.
func (PartitionSpec_PartitionKey) Number
func (x PartitionSpec_PartitionKey) Number() protoreflect.EnumNumberfunc (PartitionSpec_PartitionKey) String
func (x PartitionSpec_PartitionKey) String() stringfunc (PartitionSpec_PartitionKey) Type
func (PartitionSpec_PartitionKey) Type() protoreflect.EnumTypePubsubDestination
type PubsubDestination struct {
// The name of the Pub/Sub topic to publish to.
// Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
// contains filtered or unexported fields
}A Pub/Sub destination.
func (*PubsubDestination) Descriptor
func (*PubsubDestination) Descriptor() ([]byte, []int)Deprecated: Use PubsubDestination.ProtoReflect.Descriptor instead.
func (*PubsubDestination) GetTopic
func (x *PubsubDestination) GetTopic() stringfunc (*PubsubDestination) ProtoMessage
func (*PubsubDestination) ProtoMessage()func (*PubsubDestination) ProtoReflect
func (x *PubsubDestination) ProtoReflect() protoreflect.Messagefunc (*PubsubDestination) Reset
func (x *PubsubDestination) Reset()func (*PubsubDestination) String
func (x *PubsubDestination) String() stringQueryAssetsOutputConfig
type QueryAssetsOutputConfig struct {
// BigQuery destination where the query results will be saved.
BigqueryDestination *QueryAssetsOutputConfig_BigQueryDestination `protobuf:"bytes,1,opt,name=bigquery_destination,json=bigqueryDestination,proto3" json:"bigquery_destination,omitempty"`
// contains filtered or unexported fields
}Output configuration query assets.
func (*QueryAssetsOutputConfig) Descriptor
func (*QueryAssetsOutputConfig) Descriptor() ([]byte, []int)Deprecated: Use QueryAssetsOutputConfig.ProtoReflect.Descriptor instead.
func (*QueryAssetsOutputConfig) GetBigqueryDestination
func (x *QueryAssetsOutputConfig) GetBigqueryDestination() *QueryAssetsOutputConfig_BigQueryDestinationfunc (*QueryAssetsOutputConfig) ProtoMessage
func (*QueryAssetsOutputConfig) ProtoMessage()func (*QueryAssetsOutputConfig) ProtoReflect
func (x *QueryAssetsOutputConfig) ProtoReflect() protoreflect.Messagefunc (*QueryAssetsOutputConfig) Reset
func (x *QueryAssetsOutputConfig) Reset()func (*QueryAssetsOutputConfig) String
func (x *QueryAssetsOutputConfig) String() stringQueryAssetsOutputConfig_BigQueryDestination
type QueryAssetsOutputConfig_BigQueryDestination struct {
// Required. The BigQuery dataset where the query results will be saved. It
// has the format of "projects/{projectId}/datasets/{datasetId}".
Dataset string `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"`
// Required. The BigQuery table where the query results will be saved. If
// this table does not exist, a new table with the given name will be
// created.
Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`
// Specifies the action that occurs if the destination table or partition
// already exists. The following values are supported:
//
// * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
// overwrites the entire table or all the partitions data.
// * WRITE_APPEND: If the table or partition already exists, BigQuery
// appends the data to the table or the latest partition.
// * WRITE_EMPTY: If the table already exists and contains data, a
// 'duplicate' error is returned in the job result.
//
// The default value is WRITE_EMPTY.
WriteDisposition string `protobuf:"bytes,3,opt,name=write_disposition,json=writeDisposition,proto3" json:"write_disposition,omitempty"`
// contains filtered or unexported fields
}BigQuery destination.
func (*QueryAssetsOutputConfig_BigQueryDestination) Descriptor
func (*QueryAssetsOutputConfig_BigQueryDestination) Descriptor() ([]byte, []int)Deprecated: Use QueryAssetsOutputConfig_BigQueryDestination.ProtoReflect.Descriptor instead.
func (*QueryAssetsOutputConfig_BigQueryDestination) GetDataset
func (x *QueryAssetsOutputConfig_BigQueryDestination) GetDataset() stringfunc (*QueryAssetsOutputConfig_BigQueryDestination) GetTable
func (x *QueryAssetsOutputConfig_BigQueryDestination) GetTable() stringfunc (*QueryAssetsOutputConfig_BigQueryDestination) GetWriteDisposition
func (x *QueryAssetsOutputConfig_BigQueryDestination) GetWriteDisposition() stringfunc (*QueryAssetsOutputConfig_BigQueryDestination) ProtoMessage
func (*QueryAssetsOutputConfig_BigQueryDestination) ProtoMessage()func (*QueryAssetsOutputConfig_BigQueryDestination) ProtoReflect
func (x *QueryAssetsOutputConfig_BigQueryDestination) ProtoReflect() protoreflect.Messagefunc (*QueryAssetsOutputConfig_BigQueryDestination) Reset
func (x *QueryAssetsOutputConfig_BigQueryDestination) Reset()func (*QueryAssetsOutputConfig_BigQueryDestination) String
func (x *QueryAssetsOutputConfig_BigQueryDestination) String() stringQueryAssetsRequest
type QueryAssetsRequest struct {
// Required. The relative name of the root asset. This can only be an
// organization number (such as "organizations/123"), a project ID (such as
// "projects/my-project-id"), or a project number (such as "projects/12345"),
// or a folder number (such as "folders/123").
//
// Only assets belonging to the `parent` will be returned.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Types that are valid to be assigned to Query:
//
// *QueryAssetsRequest_Statement
// *QueryAssetsRequest_JobReference
Query isQueryAssetsRequest_Query `protobuf_oneof:"query"`
// Optional. The maximum number of rows to return in the results. Responses
// are limited to 10 MB and 1000 rows.
//
// By default, the maximum row count is 1000. When the byte or row count limit
// is reached, the rest of the query results will be paginated.
//
// The field will be ignored when [output_config] is specified.
PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token received from previous `QueryAssets`.
//
// The field will be ignored when [output_config] is specified.
PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Specifies the maximum amount of time that the client is willing
// to wait for the query to complete. By default, this limit is 5 min for the
// first query, and 1 minute for the following queries. If the query is
// complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
// false.
//
// Like BigQuery [jobs.query
// API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
// The call is not guaranteed to wait for the specified timeout; it typically
// returns after around 200 seconds (200,000 milliseconds), even if the query
// is not complete.
//
// The field will be ignored when [output_config] is specified.
Timeout *durationpb.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"`
// Specifies what time period or point in time to query asset metadata at.
// * unset - query asset metadata as it is right now
// * [read_time_window] - query asset metadata as it was at any point in time
// between [start_time] and [end_time].
// * [read_time] - query asset metadata as it was at that point in time.
// If data for the timestamp/date range selected does not exist,
// it will simply return a valid response with no rows.
//
// Types that are valid to be assigned to Time:
//
// *QueryAssetsRequest_ReadTimeWindow
// *QueryAssetsRequest_ReadTime
Time isQueryAssetsRequest_Time `protobuf_oneof:"time"`
// Optional. Destination where the query results will be saved.
//
// When this field is specified, the query results won't be saved in the
// [QueryAssetsResponse.query_result]. Instead
// [QueryAssetsResponse.output_config] will be set.
//
// Meanwhile, [QueryAssetsResponse.job_reference] will be set and can be used
// to check the status of the query job when passed to a following
// [QueryAssets] API call.
OutputConfig *QueryAssetsOutputConfig `protobuf:"bytes,9,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
// contains filtered or unexported fields
}QueryAssets request.
func (*QueryAssetsRequest) Descriptor
func (*QueryAssetsRequest) Descriptor() ([]byte, []int)Deprecated: Use QueryAssetsRequest.ProtoReflect.Descriptor instead.
func (*QueryAssetsRequest) GetJobReference
func (x *QueryAssetsRequest) GetJobReference() stringfunc (*QueryAssetsRequest) GetOutputConfig
func (x *QueryAssetsRequest) GetOutputConfig() *QueryAssetsOutputConfigfunc (*QueryAssetsRequest) GetPageSize
func (x *QueryAssetsRequest) GetPageSize() int32func (*QueryAssetsRequest) GetPageToken
func (x *QueryAssetsRequest) GetPageToken() stringfunc (*QueryAssetsRequest) GetParent
func (x *QueryAssetsRequest) GetParent() stringfunc (*QueryAssetsRequest) GetQuery
func (x *QueryAssetsRequest) GetQuery() isQueryAssetsRequest_Queryfunc (*QueryAssetsRequest) GetReadTime
func (x *QueryAssetsRequest) GetReadTime() *timestamppb.Timestampfunc (*QueryAssetsRequest) GetReadTimeWindow
func (x *QueryAssetsRequest) GetReadTimeWindow() *TimeWindowfunc (*QueryAssetsRequest) GetStatement
func (x *QueryAssetsRequest) GetStatement() stringfunc (*QueryAssetsRequest) GetTime
func (x *QueryAssetsRequest) GetTime() isQueryAssetsRequest_Timefunc (*QueryAssetsRequest) GetTimeout
func (x *QueryAssetsRequest) GetTimeout() *durationpb.Durationfunc (*QueryAssetsRequest) ProtoMessage
func (*QueryAssetsRequest) ProtoMessage()func (*QueryAssetsRequest) ProtoReflect
func (x *QueryAssetsRequest) ProtoReflect() protoreflect.Messagefunc (*QueryAssetsRequest) Reset
func (x *QueryAssetsRequest) Reset()func (*QueryAssetsRequest) String
func (x *QueryAssetsRequest) String() stringQueryAssetsRequest_JobReference
type QueryAssetsRequest_JobReference struct {
// Optional. Reference to the query job, which is from the
// `QueryAssetsResponse` of previous `QueryAssets` call.
JobReference string `protobuf:"bytes,3,opt,name=job_reference,json=jobReference,proto3,oneof"`
}QueryAssetsRequest_ReadTime
type QueryAssetsRequest_ReadTime struct {
// Optional. Queries cloud assets as they appeared at the specified point in
// time.
ReadTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=read_time,json=readTime,proto3,oneof"`
}QueryAssetsRequest_ReadTimeWindow
type QueryAssetsRequest_ReadTimeWindow struct {
// Optional. [start_time] is required. [start_time] must be less than
// [end_time] Defaults [end_time] to now if [start_time] is set and
// [end_time] isn't. Maximum permitted time range is 7 days.
ReadTimeWindow *TimeWindow `protobuf:"bytes,7,opt,name=read_time_window,json=readTimeWindow,proto3,oneof"`
}QueryAssetsRequest_Statement
type QueryAssetsRequest_Statement struct {
// Optional. A SQL statement that's compatible with [BigQuery
// SQL](https://cloud.google.com/bigquery/docs/introduction-sql).
Statement string `protobuf:"bytes,2,opt,name=statement,proto3,oneof"`
}QueryAssetsResponse
type QueryAssetsResponse struct {
// Reference to a query job.
JobReference string `protobuf:"bytes,1,opt,name=job_reference,json=jobReference,proto3" json:"job_reference,omitempty"`
// The query response, which can be either an `error` or a valid `response`.
//
// If `done` == `false` and the query result is being saved in an output, the
// output_config field will be set.
// If `done` == `true`, exactly one of
// `error`, `query_result` or `output_config` will be set.
// [done] is unset unless the [QueryAssetsResponse] contains a
// [QueryAssetsResponse.job_reference].
Done bool `protobuf:"varint,2,opt,name=done,proto3" json:"done,omitempty"`
// Types that are valid to be assigned to Response:
//
// *QueryAssetsResponse_Error
// *QueryAssetsResponse_QueryResult
// *QueryAssetsResponse_OutputConfig
Response isQueryAssetsResponse_Response `protobuf_oneof:"response"`
// contains filtered or unexported fields
}QueryAssets response.
func (*QueryAssetsResponse) Descriptor
func (*QueryAssetsResponse) Descriptor() ([]byte, []int)Deprecated: Use QueryAssetsResponse.ProtoReflect.Descriptor instead.
func (*QueryAssetsResponse) GetDone
func (x *QueryAssetsResponse) GetDone() boolfunc (*QueryAssetsResponse) GetError
func (x *QueryAssetsResponse) GetError() *status.Statusfunc (*QueryAssetsResponse) GetJobReference
func (x *QueryAssetsResponse) GetJobReference() stringfunc (*QueryAssetsResponse) GetOutputConfig
func (x *QueryAssetsResponse) GetOutputConfig() *QueryAssetsOutputConfigfunc (*QueryAssetsResponse) GetQueryResult
func (x *QueryAssetsResponse) GetQueryResult() *QueryResultfunc (*QueryAssetsResponse) GetResponse
func (x *QueryAssetsResponse) GetResponse() isQueryAssetsResponse_Responsefunc (*QueryAssetsResponse) ProtoMessage
func (*QueryAssetsResponse) ProtoMessage()func (*QueryAssetsResponse) ProtoReflect
func (x *QueryAssetsResponse) ProtoReflect() protoreflect.Messagefunc (*QueryAssetsResponse) Reset
func (x *QueryAssetsResponse) Reset()func (*QueryAssetsResponse) String
func (x *QueryAssetsResponse) String() stringQueryAssetsResponse_Error
type QueryAssetsResponse_Error struct {
// Error status.
Error *status.Status `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}QueryAssetsResponse_OutputConfig
type QueryAssetsResponse_OutputConfig struct {
// Output configuration, which indicates that instead of being returned in
// an API response on the fly, the query result will be saved in a specific
// output.
OutputConfig *QueryAssetsOutputConfig `protobuf:"bytes,5,opt,name=output_config,json=outputConfig,proto3,oneof"`
}QueryAssetsResponse_QueryResult
type QueryAssetsResponse_QueryResult struct {
// Result of the query.
QueryResult *QueryResult `protobuf:"bytes,4,opt,name=query_result,json=queryResult,proto3,oneof"`
}QueryResult
type QueryResult struct {
// Each row hold a query result in the format of `Struct`.
Rows []*structpb.Struct `protobuf:"bytes,1,rep,name=rows,proto3" json:"rows,omitempty"`
// Describes the format of the [rows].
Schema *TableSchema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
// Token to retrieve the next page of the results.
NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Total rows of the whole query results.
TotalRows int64 `protobuf:"varint,4,opt,name=total_rows,json=totalRows,proto3" json:"total_rows,omitempty"`
// contains filtered or unexported fields
}Execution results of the query.
The result is formatted as rows represented by BigQuery compatible [schema]. When pagination is necessary, it will contains the page token to retrieve the results of following pages.
func (*QueryResult) Descriptor
func (*QueryResult) Descriptor() ([]byte, []int)Deprecated: Use QueryResult.ProtoReflect.Descriptor instead.
func (*QueryResult) GetNextPageToken
func (x *QueryResult) GetNextPageToken() stringfunc (*QueryResult) GetRows
func (x *QueryResult) GetRows() []*structpb.Structfunc (*QueryResult) GetSchema
func (x *QueryResult) GetSchema() *TableSchemafunc (*QueryResult) GetTotalRows
func (x *QueryResult) GetTotalRows() int64func (*QueryResult) ProtoMessage
func (*QueryResult) ProtoMessage()func (*QueryResult) ProtoReflect
func (x *QueryResult) ProtoReflect() protoreflect.Messagefunc (*QueryResult) Reset
func (x *QueryResult) Reset()func (*QueryResult) String
func (x *QueryResult) String() stringRelatedAsset
type RelatedAsset struct {
// The full name of the asset. Example:
// `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
//
// See [Resource
// names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
// for more information.
Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
// The type of the asset. Example: `compute.googleapis.com/Disk`
//
// See [Supported asset
// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
// for more information.
AssetType string `protobuf:"bytes,2,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"`
// The ancestors of an asset in Google Cloud [resource
// hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
// represented as a list of relative resource names. An ancestry path starts
// with the closest ancestor in the hierarchy and ends at root.
//
// Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
Ancestors []string `protobuf:"bytes,3,rep,name=ancestors,proto3" json:"ancestors,omitempty"`
// The unique identifier of the relationship type. Example:
// `INSTANCE_TO_INSTANCEGROUP`
RelationshipType string `protobuf:"bytes,4,opt,name=relationship_type,json=relationshipType,proto3" json:"relationship_type,omitempty"`
// contains filtered or unexported fields
}An asset identifier in Google Cloud which contains its name, type and ancestors. An asset can be any resource in the Google Cloud resource hierarchy, a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. IAM policy). See Supported asset types for more information.
func (*RelatedAsset) Descriptor
func (*RelatedAsset) Descriptor() ([]byte, []int)Deprecated: Use RelatedAsset.ProtoReflect.Descriptor instead.
func (*RelatedAsset) GetAncestors
func (x *RelatedAsset) GetAncestors() []stringfunc (*RelatedAsset) GetAsset
func (x *RelatedAsset) GetAsset() stringfunc (*RelatedAsset) GetAssetType
func (x *RelatedAsset) GetAssetType() stringfunc (*RelatedAsset) GetRelationshipType
func (x *RelatedAsset) GetRelationshipType() stringfunc (*RelatedAsset) ProtoMessage
func (*RelatedAsset) ProtoMessage()func (*RelatedAsset) ProtoReflect
func (x *RelatedAsset) ProtoReflect() protoreflect.Messagefunc (*RelatedAsset) Reset
func (x *RelatedAsset) Reset()func (*RelatedAsset) String
func (x *RelatedAsset) String() stringRelatedAssets (deprecated)
type RelatedAssets struct {
// The detailed relationship attributes.
RelationshipAttributes *RelationshipAttributes `protobuf:"bytes,1,opt,name=relationship_attributes,json=relationshipAttributes,proto3" json:"relationship_attributes,omitempty"`
// The peer resources of the relationship.
Assets []*RelatedAsset `protobuf:"bytes,2,rep,name=assets,proto3" json:"assets,omitempty"`
// contains filtered or unexported fields
}DEPRECATED. This message only presents for the purpose of
backward-compatibility. The server will never populate this message in
responses.
The detailed related assets with the relationship_type.
Deprecated: Marked as deprecated in google/cloud/asset/v1/assets.proto.
func (*RelatedAssets) Descriptor (deprecated)
func (*RelatedAssets) Descriptor() ([]byte, []int)Deprecated: Use RelatedAssets.ProtoReflect.Descriptor instead.
func (*RelatedAssets) GetAssets (deprecated)
func (x *RelatedAssets) GetAssets() []*RelatedAssetfunc (*RelatedAssets) GetRelationshipAttributes (deprecated)
func (x *RelatedAssets) GetRelationshipAttributes() *RelationshipAttributesfunc (*RelatedAssets) ProtoMessage (deprecated)
func (*RelatedAssets) ProtoMessage()func (*RelatedAssets) ProtoReflect (deprecated)
func (x *RelatedAssets) ProtoReflect() protoreflect.Messagefunc (*RelatedAssets) Reset (deprecated)
func (x *RelatedAssets) Reset()func (*RelatedAssets) String (deprecated)
func (x *RelatedAssets) String() stringRelatedResource
type RelatedResource struct {
// The type of the asset. Example: `compute.googleapis.com/Instance`
AssetType string `protobuf:"bytes,1,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"`
// The full resource name of the related resource. Example:
// `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
FullResourceName string `protobuf:"bytes,2,opt,name=full_resource_name,json=fullResourceName,proto3" json:"full_resource_name,omitempty"`
// contains filtered or unexported fields
}The detailed related resource.
func (*RelatedResource) Descriptor
func (*RelatedResource) Descriptor() ([]byte, []int)Deprecated: Use RelatedResource.ProtoReflect.Descriptor instead.
func (*RelatedResource) GetAssetType
func (x *RelatedResource) GetAssetType() stringfunc (*RelatedResource) GetFullResourceName
func (x *RelatedResource) GetFullResourceName() stringfunc (*RelatedResource) ProtoMessage
func (*RelatedResource) ProtoMessage()func (*RelatedResource) ProtoReflect
func (x *RelatedResource) ProtoReflect() protoreflect.Messagefunc (*RelatedResource) Reset
func (x *RelatedResource) Reset()func (*RelatedResource) String
func (x *RelatedResource) String() stringRelatedResources
type RelatedResources struct {
// The detailed related resources of the primary resource.
RelatedResources []*RelatedResource `protobuf:"bytes,1,rep,name=related_resources,json=relatedResources,proto3" json:"related_resources,omitempty"`
// contains filtered or unexported fields
}The related resources of the primary resource.
func (*RelatedResources) Descriptor
func (*RelatedResources) Descriptor() ([]byte, []int)Deprecated: Use RelatedResources.ProtoReflect.Descriptor instead.
func (*RelatedResources) GetRelatedResources
func (x *RelatedResources) GetRelatedResources() []*RelatedResourcefunc (*RelatedResources) ProtoMessage
func (*RelatedResources) ProtoMessage()func (*RelatedResources) ProtoReflect
func (x *RelatedResources) ProtoReflect() protoreflect.Messagefunc (*RelatedResources) Reset
func (x *RelatedResources) Reset()func (*RelatedResources) String
func (x *RelatedResources) String() stringRelationshipAttributes (deprecated)
type RelationshipAttributes struct {
// The unique identifier of the relationship type. Example:
// `INSTANCE_TO_INSTANCEGROUP`
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
// The source asset type. Example: `compute.googleapis.com/Instance`
SourceResourceType string `protobuf:"bytes,1,opt,name=source_resource_type,json=sourceResourceType,proto3" json:"source_resource_type,omitempty"`
// The target asset type. Example: `compute.googleapis.com/Disk`
TargetResourceType string `protobuf:"bytes,2,opt,name=target_resource_type,json=targetResourceType,proto3" json:"target_resource_type,omitempty"`
// The detail of the relationship, e.g. `contains`, `attaches`
Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"`
// contains filtered or unexported fields
}DEPRECATED. This message only presents for the purpose of
backward-compatibility. The server will never populate this message in
responses.
The relationship attributes which include type, source_resource_type,
target_resource_type and action.
Deprecated: Marked as deprecated in google/cloud/asset/v1/assets.proto.
func (*RelationshipAttributes) Descriptor (deprecated)
func (*RelationshipAttributes) Descriptor() ([]byte, []int)Deprecated: Use RelationshipAttributes.ProtoReflect.Descriptor instead.
func (*RelationshipAttributes) GetAction (deprecated)
func (x *RelationshipAttributes) GetAction() stringfunc (*RelationshipAttributes) GetSourceResourceType (deprecated)
func (x *RelationshipAttributes) GetSourceResourceType() stringfunc (*RelationshipAttributes) GetTargetResourceType (deprecated)
func (x *RelationshipAttributes) GetTargetResourceType() stringfunc (*RelationshipAttributes) GetType (deprecated)
func (x *RelationshipAttributes) GetType() stringfunc (*RelationshipAttributes) ProtoMessage (deprecated)
func (*RelationshipAttributes) ProtoMessage()func (*RelationshipAttributes) ProtoReflect (deprecated)
func (x *RelationshipAttributes) ProtoReflect() protoreflect.Messagefunc (*RelationshipAttributes) Reset (deprecated)
func (x *RelationshipAttributes) Reset()func (*RelationshipAttributes) String (deprecated)
func (x *RelationshipAttributes) String() stringResource
type Resource struct {
// The API version. Example: `v1`
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// The URL of the discovery document containing the resource's JSON schema.
// Example:
// `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest`
//
// This value is unspecified for resources that do not have an API based on a
// discovery document, such as Cloud Bigtable.
DiscoveryDocumentUri string `protobuf:"bytes,2,opt,name=discovery_document_uri,json=discoveryDocumentUri,proto3" json:"discovery_document_uri,omitempty"`
// The JSON schema name listed in the discovery document. Example:
// `Project`
//
// This value is unspecified for resources that do not have an API based on a
// discovery document, such as Cloud Bigtable.
DiscoveryName string `protobuf:"bytes,3,opt,name=discovery_name,json=discoveryName,proto3" json:"discovery_name,omitempty"`
// The REST URL for accessing the resource. An HTTP `GET` request using this
// URL returns the resource itself. Example:
// `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`
//
// This value is unspecified for resources without a REST API.
ResourceUrl string `protobuf:"bytes,4,opt,name=resource_url,json=resourceUrl,proto3" json:"resource_url,omitempty"`
// The full name of the immediate parent of this resource. See
// [Resource
// Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
// for more information.
//
// For Google Cloud assets, this value is the parent resource defined in the
// [IAM policy
// hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
// Example:
// `//cloudresourcemanager.googleapis.com/projects/my_project_123`
Parent string `protobuf:"bytes,5,opt,name=parent,proto3" json:"parent,omitempty"`
// The content of the resource, in which some sensitive fields are removed
// and may not be present.
Data *structpb.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
// The location of the resource in Google Cloud, such as its zone and region.
// For more information, see https://cloud.google.com/about/locations/.
Location string `protobuf:"bytes,8,opt,name=location,proto3" json:"location,omitempty"`
// contains filtered or unexported fields
}A representation of a Google Cloud resource.
func (*Resource) Descriptor
Deprecated: Use Resource.ProtoReflect.Descriptor instead.
func (*Resource) GetData
func (*Resource) GetDiscoveryDocumentUri
func (*Resource) GetDiscoveryName
func (*Resource) GetLocation
func (*Resource) GetParent
func (*Resource) GetResourceUrl
func (*Resource) GetVersion
func (*Resource) ProtoMessage
func (*Resource) ProtoMessage()func (*Resource) ProtoReflect
func (x *Resource) ProtoReflect() protoreflect.Messagefunc (*Resource) Reset
func (x *Resource) Reset()func (*Resource) String
ResourceOwners
type ResourceOwners struct {
// List of resource owners.
ResourceOwners []string `protobuf:"bytes,1,rep,name=resource_owners,json=resourceOwners,proto3" json:"resource_owners,omitempty"`
// contains filtered or unexported fields
}The resource owners information.
func (*ResourceOwners) Descriptor
func (*ResourceOwners) Descriptor() ([]byte, []int)Deprecated: Use ResourceOwners.ProtoReflect.Descriptor instead.
func (*ResourceOwners) GetResourceOwners
func (x *ResourceOwners) GetResourceOwners() []stringfunc (*ResourceOwners) ProtoMessage
func (*ResourceOwners) ProtoMessage()func (*ResourceOwners) ProtoReflect
func (x *ResourceOwners) ProtoReflect() protoreflect.Messagefunc (*ResourceOwners) Reset
func (x *ResourceOwners) Reset()func (*ResourceOwners) String
func (x *ResourceOwners) String() stringResourceSearchResult
type ResourceSearchResult struct {
// The full resource name of this resource. Example:
// `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
// See [Cloud Asset Inventory Resource Name
// Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
// for more information.
//
// To search against the `name`:
//
// * Use a field query. Example: `name:instance1`
// * Use a free text query. Example: `instance1`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The type of this resource. Example: `compute.googleapis.com/Disk`.
//
// To search against the `asset_type`:
//
// * Specify the `asset_type` field in your search request.
AssetType string `protobuf:"bytes,2,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"`
// The project that this resource belongs to, in the form of
// projects/{PROJECT_NUMBER}. This field is available when the resource
// belongs to a project.
//
// To search against `project`:
//
// * Use a field query. Example: `project:12345`
// * Use a free text query. Example: `12345`
// * Specify the `scope` field as this project in your search request.
Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`
// The folder(s) that this resource belongs to, in the form of
// folders/{FOLDER_NUMBER}. This field is available when the resource
// belongs to one or more folders.
//
// To search against `folders`:
//
// * Use a field query. Example: `folders:(123 OR 456)`
// * Use a free text query. Example: `123`
// * Specify the `scope` field as this folder in your search request.
Folders []string `protobuf:"bytes,17,rep,name=folders,proto3" json:"folders,omitempty"`
// The organization that this resource belongs to, in the form of
// organizations/{ORGANIZATION_NUMBER}. This field is available when the
// resource belongs to an organization.
//
// To search against `organization`:
//
// * Use a field query. Example: `organization:123`
// * Use a free text query. Example: `123`
// * Specify the `scope` field as this organization in your search request.
Organization string `protobuf:"bytes,18,opt,name=organization,proto3" json:"organization,omitempty"`
// The display name of this resource. This field is available only when the
// resource's Protobuf contains it.
//
// To search against the `display_name`:
//
// * Use a field query. Example: `displayName:"My Instance"`
// * Use a free text query. Example: `"My Instance"`
DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// One or more paragraphs of text description of this resource. Maximum length
// could be up to 1M bytes. This field is available only when the resource's
// Protobuf contains it.
//
// To search against the `description`:
//
// * Use a field query. Example: `description:"important instance"`
// * Use a free text query. Example: `"important instance"`
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// Location can be `global`, regional like `us-east1`, or zonal like
// `us-west1-b`. This field is available only when the resource's Protobuf
// contains it.
//
// To search against the `location`:
//
// * Use a field query. Example: `location:us-west*`
// * Use a free text query. Example: `us-west*`
Location string `protobuf:"bytes,6,opt,name=location,proto3" json:"location,omitempty"`
// User labels associated with this resource. See [Labelling and grouping
// Google Cloud
// resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
// for more information. This field is available only when the resource's
// Protobuf contains it.
//
// To search against the `labels`:
//
// * Use a field query:
// - query on any label's key or value. Example: `labels:prod`
// - query by a given label. Example: `labels.env:prod`
// - query by a given label's existence. Example: `labels.env:*`
//
// * Use a free text query. Example: `prod`
Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// Network tags associated with this resource. Like labels, network tags are a
// type of annotations used to group Google Cloud resources. See [Labelling
// Google Cloud
// resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
// for more information. This field is available only when the resource's
// Protobuf contains it.
//
// To search against the `network_tags`:
//
// * Use a field query. Example: `networkTags:internal`
// * Use a free text query. Example: `internal`
NetworkTags []string `protobuf:"bytes,8,rep,name=network_tags,json=networkTags,proto3" json:"network_tags,omitempty"`
// The Cloud KMS
// [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
// name or
// [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
// name.
//
// This field only presents for the purpose of backward compatibility.
// Use the `kms_keys` field to retrieve Cloud KMS key information. This field
// is available only when the resource's Protobuf contains it and will only be
// populated for [these resource
// types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field)
// for backward compatible purposes.
//
// To search against the `kms_key`:
//
// * Use a field query. Example: `kmsKey:key`
// * Use a free text query. Example: `key`
//
// Deprecated: Marked as deprecated in google/cloud/asset/v1/assets.proto.
KmsKey string `protobuf:"bytes,10,opt,name=kms_key,json=kmsKey,proto3" json:"kms_key,omitempty"`
// The Cloud KMS
// [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
// names or
// [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
// names. This field is available only when the resource's Protobuf contains
// it.
//
// To search against the `kms_keys`:
//
// * Use a field query. Example: `kmsKeys:key`
// * Use a free text query. Example: `key`
KmsKeys []string `protobuf:"bytes,28,rep,name=kms_keys,json=kmsKeys,proto3" json:"kms_keys,omitempty"`
// The create timestamp of this resource, at which the resource was created.
// The granularity is in seconds. Timestamp.nanos will always be 0. This field
// is available only when the resource's Protobuf contains it.
//
// To search against `create_time`:
//
// * Use a field query.
// - value in seconds since unix epoch. Example: `createTime > 1609459200`
// - value in date string. Example: `createTime > 2021-01-01`
// - value in date-time string (must be quoted). Example: `createTime >
// "2021-01-01T00:00:00"`
CreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// The last update timestamp of this resource, at which the resource was last
// modified or deleted. The granularity is in seconds. Timestamp.nanos will
// always be 0. This field is available only when the resource's Protobuf
// contains it.
//
// To search against `update_time`:
//
// * Use a field query.
// - value in seconds since unix epoch. Example: `updateTime < 1609459200`="" -="" value="" in="" date="" string.="" example:="" `updatetime="">< 2021-01-01`="" -="" value="" in="" date-time="" string="" (must="" be="" quoted).="" example:="" `updatetime="">< "2021-01-01t00:00:00"`="" updatetime="" *timestamppb.timestamp="" `protobuf:"bytes,12,opt,name="update_time,json=updateTime,proto3" "="" json:"update_time,omitempty"`="" the="" state="" of="" this="" resource.="" different="" resources="" types="" have="" different="" state="" definitions="" that="" are="" mapped="" from="" various="" fields="" of="" different="" resource="" types.="" this="" field="" is="" available="" only="" when="" the="" resource's="" protobuf="" contains="" it.="" example:="" if="" the="" resource="" is="" an="" instance="" provided="" by="" compute="" engine,="" its="" state="" will="" include="" provisioning,="" staging,="" running,="" stopping,="" suspending,="" suspended,="" repairing,="" and="" terminated.="" see="" `status`="" definition="" in="" [api="" reference](https://cloud.google.com/compute/docs/reference/rest/v1/instances).="" if="" the="" resource="" is="" a="" project="" provided="" by="" resource="" manager,="" its="" state="" will="" include="" lifecycle_state_unspecified,="" active,="" delete_requested="" and="" delete_in_progress.="" see="" `lifecyclestate`="" definition="" in="" [api="" reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).="" to="" search="" against="" the="" `state`:="" *="" use="" a="" field="" query.="" example:="" `state:running`="" *="" use="" a="" free="" text="" query.="" example:="" `running`="" state="">string `protobuf:"bytes,13,opt,name=state,proto3" json:"state,omitempty"`
// The additional searchable attributes of this resource. The attributes may
// vary from one resource type to another. Examples: `projectId` for Project,
// `dnsName` for DNS ManagedZone. This field contains a subset of the resource
// metadata fields that are returned by the List or Get APIs provided by the
// corresponding Google Cloud service (e.g., Compute Engine). see [API
// references and supported searchable
// attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
// to see which fields are included.
//
// You can search values of these fields through free text search. However,
// you should not consume the field programically as the field names and
// values may change as the Google Cloud service updates to a new incompatible
// API version.
//
// To search against the `additional_attributes`:
//
// - Use a free text query to match the attributes values. Example: to search
// `additional_attributes = { dnsName: "foobar" }`, you can issue a query
// `foobar`.
AdditionalAttributes *structpb.Struct `protobuf:"bytes,9,opt,name=additional_attributes,json=additionalAttributes,proto3" json:"additional_attributes,omitempty"`
// The full resource name of this resource's parent, if it has one.
// To search against the `parent_full_resource_name`:
//
// * Use a field query. Example:
// `parentFullResourceName:"project-name"`
// * Use a free text query. Example:
// `project-name`
ParentFullResourceName string `protobuf:"bytes,19,opt,name=parent_full_resource_name,json=parentFullResourceName,proto3" json:"parent_full_resource_name,omitempty"`
// Versioned resource representations of this resource. This is repeated
// because there could be multiple versions of resource representations during
// version migration.
//
// This `versioned_resources` field is not searchable. Some attributes of the
// resource representations are exposed in `additional_attributes` field, so
// as to allow users to search on them.
VersionedResources []*VersionedResource `protobuf:"bytes,16,rep,name=versioned_resources,json=versionedResources,proto3" json:"versioned_resources,omitempty"`
// Attached resources of this resource. For example, an OSConfig
// Inventory is an attached resource of a Compute Instance. This field is
// repeated because a resource could have multiple attached resources.
//
// This `attached_resources` field is not searchable. Some attributes
// of the attached resources are exposed in `additional_attributes` field, so
// as to allow users to search on them.
AttachedResources []*AttachedResource `protobuf:"bytes,20,rep,name=attached_resources,json=attachedResources,proto3" json:"attached_resources,omitempty"`
// A map of related resources of this resource, keyed by the
// relationship type. A relationship type is in the format of
// {SourceType}_{ACTION}_{DestType}. Example: `DISK_TO_INSTANCE`,
// `DISK_TO_NETWORK`, `INSTANCE_TO_INSTANCEGROUP`.
// See [supported relationship
// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#supported_relationship_types).
Relationships map[string]*RelatedResources `protobuf:"bytes,21,rep,name=relationships,proto3" json:"relationships,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// This field is only present for the purpose of backward compatibility.
// Use the `tags` field instead.
//
// TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
// To search against the `tagKeys`:
//
// * Use a field query. Example:
// - `tagKeys:"123456789/env*"`
// - `tagKeys="123456789/env"`
// - `tagKeys:"env"`
//
// * Use a free text query. Example:
// - `env`
//
// Deprecated: Marked as deprecated in google/cloud/asset/v1/assets.proto.
TagKeys []string `protobuf:"bytes,23,rep,name=tag_keys,json=tagKeys,proto3" json:"tag_keys,omitempty"`
// This field is only present for the purpose of backward compatibility.
// Use the `tags` field instead.
//
// TagValue namespaced names, in the format of
// {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
// To search against the `tagValues`:
//
// * Use a field query. Example:
// - `tagValues:"env"`
// - `tagValues:"env/prod"`
// - `tagValues:"123456789/env/prod*"`
// - `tagValues="123456789/env/prod"`
//
// * Use a free text query. Example:
// - `prod`
//
// Deprecated: Marked as deprecated in google/cloud/asset/v1/assets.proto.
TagValues []string `protobuf:"bytes,25,rep,name=tag_values,json=tagValues,proto3" json:"tag_values,omitempty"`
// This field is only present for the purpose of backward compatibility.
// Use the `tags` field instead.
//
// TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
// To search against the `tagValueIds`:
//
// * Use a field query. Example:
// - `tagValueIds="tagValues/456"`
//
// * Use a free text query. Example:
// - `456`
//
// Deprecated: Marked as deprecated in google/cloud/asset/v1/assets.proto.
TagValueIds []string `protobuf:"bytes,26,rep,name=tag_value_ids,json=tagValueIds,proto3" json:"tag_value_ids,omitempty"`
// The tags directly attached to this resource.
//
// To search against the `tags`:
//
// * Use a field query. Example:
// - `tagKeys:"123456789/env*"`
// - `tagKeys="123456789/env"`
// - `tagKeys:"env"`
// - `tagKeyIds="tagKeys/123"`
// - `tagValues:"env"`
// - `tagValues:"env/prod"`
// - `tagValues:"123456789/env/prod*"`
// - `tagValues="123456789/env/prod"`
// - `tagValueIds="tagValues/456"`
//
// * Use a free text query. Example:
// - `env/prod`
Tags []*Tag `protobuf:"bytes,29,rep,name=tags,proto3" json:"tags,omitempty"`
// The effective tags on this resource. All of the tags that are both attached
// to and inherited by a resource are collectively called the effective
// tags. For more information, see [tag
// inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance).
//
// To search against the `effective_tags`:
//
// * Use a field query. Example:
// - `effectiveTagKeys:"123456789/env*"`
// - `effectiveTagKeys="123456789/env"`
// - `effectiveTagKeys:"env"`
// - `effectiveTagKeyIds="tagKeys/123"`
// - `effectiveTagValues:"env"`
// - `effectiveTagValues:"env/prod"`
// - `effectiveTagValues:"123456789/env/prod*"`
// - `effectiveTagValues="123456789/env/prod"`
// - `effectiveTagValueIds="tagValues/456"`
EffectiveTags []*EffectiveTagDetails `protobuf:"bytes,30,rep,name=effective_tags,json=effectiveTags,proto3" json:"effective_tags,omitempty"`
// Enrichments of the asset. Currently supported enrichment types with
// SearchAllResources API:
//
// * RESOURCE_OWNERS
//
// The corresponding read masks in order to get the enrichment:
//
// * enrichments.resource_owners
//
// The corresponding required permissions:
//
// * cloudasset.assets.searchEnrichmentResourceOwners
//
// Example query to get resource owner enrichment:
// ```
//
// scope: "projects/my-project"
// query: "name: my-project"
// assetTypes: "cloudresourcemanager.googleapis.com/Project"
// readMask: {
// paths: "asset_type"
// paths: "name"
// paths: "enrichments.resource_owners"
// }
//
// ```
Enrichments []*AssetEnrichment `protobuf:"bytes,31,rep,name=enrichments,proto3" json:"enrichments,omitempty"`
// The type of this resource's immediate parent, if there is one.
//
// To search against the `parent_asset_type`:
//
// * Use a field query. Example:
// `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
// * Use a free text query. Example:
// `cloudresourcemanager.googleapis.com/Project`
ParentAssetType string `protobuf:"bytes,103,opt,name=parent_asset_type,json=parentAssetType,proto3" json:"parent_asset_type,omitempty"`
// The actual content of Security Command Center security marks associated
// with the asset.
//
// To search against SCC SecurityMarks field:
//
// - Use a field query:
// - query by a given key value pair. Example: `sccSecurityMarks.foo=bar`
// - query by a given key's existence. Example: `sccSecurityMarks.foo:*`
SccSecurityMarks map[string]string `protobuf:"bytes,32,rep,name=scc_security_marks,json=sccSecurityMarks,proto3" json:"scc_security_marks,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// contains filtered or unexported fields
}A result of Resource Search, containing information of a cloud resource.
func (*ResourceSearchResult) Descriptor
func (*ResourceSearchResult) Descriptor() ([]byte, []int)Deprecated: Use ResourceSearchResult.ProtoReflect.Descriptor instead.
func (*ResourceSearchResult) GetAdditionalAttributes
func (x *ResourceSearchResult) GetAdditionalAttributes() *structpb.Structfunc (*ResourceSearchResult) GetAssetType
func (x *ResourceSearchResult) GetAssetType() stringfunc (*ResourceSearchResult) GetAttachedResources
func (x *ResourceSearchResult) GetAttachedResources() []*AttachedResourcefunc (*ResourceSearchResult) GetCreateTime
func (x *ResourceSearchResult) GetCreateTime() *timestamppb.Timestampfunc (*ResourceSearchResult) GetDescription
func (x *ResourceSearchResult) GetDescription() stringfunc (*ResourceSearchResult) GetDisplayName
func (x *ResourceSearchResult) GetDisplayName() stringfunc (*ResourceSearchResult) GetEffectiveTags
func (x *ResourceSearchResult) GetEffectiveTags() []*EffectiveTagDetailsfunc (*ResourceSearchResult) GetEnrichments
func (x *ResourceSearchResult) GetEnrichments() []*AssetEnrichmentfunc (*ResourceSearchResult) GetFolders
func (x *ResourceSearchResult) GetFolders() []stringfunc (*ResourceSearchResult) GetKmsKey
func (x *ResourceSearchResult) GetKmsKey() stringDeprecated: Marked as deprecated in google/cloud/asset/v1/assets.proto.
func (*ResourceSearchResult) GetKmsKeys
func (x *ResourceSearchResult) GetKmsKeys() []stringfunc (*ResourceSearchResult) GetLabels
func (x *ResourceSearchResult) GetLabels() map[string]stringfunc (*ResourceSearchResult) GetLocation
func (x *ResourceSearchResult) GetLocation() stringfunc (*ResourceSearchResult) GetName
func (x *ResourceSearchResult) GetName() stringfunc (*ResourceSearchResult) GetNetworkTags
func (x *ResourceSearchResult) GetNetworkTags() []stringfunc (*ResourceSearchResult) GetOrganization
func (x *ResourceSearchResult) GetOrganization() stringfunc (*ResourceSearchResult) GetParentAssetType
func (x *ResourceSearchResult) GetParentAssetType() stringfunc (*ResourceSearchResult) GetParentFullResourceName
func (x *ResourceSearchResult) GetParentFullResourceName() stringfunc (*ResourceSearchResult) GetProject
func (x *ResourceSearchResult) GetProject() stringfunc (*ResourceSearchResult) GetRelationships
func (x *ResourceSearchResult) GetRelationships() map[string]*RelatedResourcesfunc (*ResourceSearchResult) GetSccSecurityMarks
func (x *ResourceSearchResult) GetSccSecurityMarks() map[string]stringfunc (*ResourceSearchResult) GetState
func (x *ResourceSearchResult) GetState() stringfunc (*ResourceSearchResult) GetTagKeys
func (x *ResourceSearchResult) GetTagKeys() []stringDeprecated: Marked as deprecated in google/cloud/asset/v1/assets.proto.
func (*ResourceSearchResult) GetTagValueIds
func (x *ResourceSearchResult) GetTagValueIds() []stringDeprecated: Marked as deprecated in google/cloud/asset/v1/assets.proto.
func (*ResourceSearchResult) GetTagValues
func (x *ResourceSearchResult) GetTagValues() []stringDeprecated: Marked as deprecated in google/cloud/asset/v1/assets.proto.
func (*ResourceSearchResult) GetTags
func (x *ResourceSearchResult) GetTags() []*Tagfunc (*ResourceSearchResult) GetUpdateTime
func (x *ResourceSearchResult) GetUpdateTime() *timestamppb.Timestampfunc (*ResourceSearchResult) GetVersionedResources
func (x *ResourceSearchResult) GetVersionedResources() []*VersionedResourcefunc (*ResourceSearchResult) ProtoMessage
func (*ResourceSearchResult) ProtoMessage()func (*ResourceSearchResult) ProtoReflect
func (x *ResourceSearchResult) ProtoReflect() protoreflect.Messagefunc (*ResourceSearchResult) Reset
func (x *ResourceSearchResult) Reset()func (*ResourceSearchResult) String
func (x *ResourceSearchResult) String() stringSavedQuery
type SavedQuery struct {
// The resource name of the saved query. The format must be:
//
// * projects/project_number/savedQueries/saved_query_id
// * folders/folder_number/savedQueries/saved_query_id
// * organizations/organization_number/savedQueries/saved_query_id
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The description of this saved query. This value should be fewer than 255
// characters.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Output only. The create time of this saved query.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The account's email address who has created this saved query.
Creator string `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"`
// Output only. The last update time of this saved query.
LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
// Output only. The account's email address who has updated this saved query
// most recently.
LastUpdater string `protobuf:"bytes,6,opt,name=last_updater,json=lastUpdater,proto3" json:"last_updater,omitempty"`
// Labels applied on the resource.
// This value should not contain more than 10 entries. The key and value of
// each entry must be non-empty and fewer than 64 characters.
Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// The query content.
Content *SavedQuery_QueryContent `protobuf:"bytes,8,opt,name=content,proto3" json:"content,omitempty"`
// contains filtered or unexported fields
}A saved query which can be shared with others or used later.
func (*SavedQuery) Descriptor
func (*SavedQuery) Descriptor() ([]byte, []int)Deprecated: Use SavedQuery.ProtoReflect.Descriptor instead.
func (*SavedQuery) GetContent
func (x *SavedQuery) GetContent() *SavedQuery_QueryContentfunc (*SavedQuery) GetCreateTime
func (x *SavedQuery) GetCreateTime() *timestamppb.Timestampfunc (*SavedQuery) GetCreator
func (x *SavedQuery) GetCreator() stringfunc (*SavedQuery) GetDescription
func (x *SavedQuery) GetDescription() stringfunc (*SavedQuery) GetLabels
func (x *SavedQuery) GetLabels() map[string]stringfunc (*SavedQuery) GetLastUpdateTime
func (x *SavedQuery) GetLastUpdateTime() *timestamppb.Timestampfunc (*SavedQuery) GetLastUpdater
func (x *SavedQuery) GetLastUpdater() stringfunc (*SavedQuery) GetName
func (x *SavedQuery) GetName() stringfunc (*SavedQuery) ProtoMessage
func (*SavedQuery) ProtoMessage()func (*SavedQuery) ProtoReflect
func (x *SavedQuery) ProtoReflect() protoreflect.Messagefunc (*SavedQuery) Reset
func (x *SavedQuery) Reset()func (*SavedQuery) String
func (x *SavedQuery) String() stringSavedQuery_QueryContent
type SavedQuery_QueryContent struct {
// Types that are valid to be assigned to QueryContent:
//
// *SavedQuery_QueryContent_IamPolicyAnalysisQuery
QueryContent isSavedQuery_QueryContent_QueryContent `protobuf_oneof:"query_content"`
// contains filtered or unexported fields
}The query content.
func (*SavedQuery_QueryContent) Descriptor
func (*SavedQuery_QueryContent) Descriptor() ([]byte, []int)Deprecated: Use SavedQuery_QueryContent.ProtoReflect.Descriptor instead.
func (*SavedQuery_QueryContent) GetIamPolicyAnalysisQuery
func (x *SavedQuery_QueryContent) GetIamPolicyAnalysisQuery() *IamPolicyAnalysisQueryfunc (*SavedQuery_QueryContent) GetQueryContent
func (x *SavedQuery_QueryContent) GetQueryContent() isSavedQuery_QueryContent_QueryContentfunc (*SavedQuery_QueryContent) ProtoMessage
func (*SavedQuery_QueryContent) ProtoMessage()func (*SavedQuery_QueryContent) ProtoReflect
func (x *SavedQuery_QueryContent) ProtoReflect() protoreflect.Messagefunc (*SavedQuery_QueryContent) Reset
func (x *SavedQuery_QueryContent) Reset()func (*SavedQuery_QueryContent) String
func (x *SavedQuery_QueryContent) String() stringSavedQuery_QueryContent_IamPolicyAnalysisQuery
type SavedQuery_QueryContent_IamPolicyAnalysisQuery struct {
// An IAM Policy Analysis query, which could be used in
// the
// [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
// RPC or the
// [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
// RPC.
IamPolicyAnalysisQuery *IamPolicyAnalysisQuery `protobuf:"bytes,1,opt,name=iam_policy_analysis_query,json=iamPolicyAnalysisQuery,proto3,oneof"`
}SearchAllIamPoliciesRequest
type SearchAllIamPoliciesRequest struct {
// Required. A scope can be a project, a folder, or an organization. The
// search is limited to the IAM policies within the `scope`. The caller must
// be granted the
// [`cloudasset.assets.searchAllIamPolicies`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
// permission on the desired scope.
//
// The allowed values are:
//
// * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
// * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
// * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
// * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
// Optional. The query statement. See [how to construct a
// query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
// for more information. If not specified or empty, it will search all the
// IAM policies within the specified `scope`. Note that the query string is
// compared against each IAM policy binding, including its principals,
// roles, and IAM conditions. The returned IAM policies will only
// contain the bindings that match your query. To learn more about the IAM
// policy structure, see the [IAM policy
// documentation](https://cloud.google.com/iam/help/allow-policies/structure).
//
// Examples:
//
// - `policy:amy@gmail.com` to find IAM policy bindings that specify user
// "amy@gmail.com".
// - `policy:roles/compute.admin` to find IAM policy bindings that specify
// the Compute Admin role.
// - `policy:comp*` to find IAM policy bindings that contain "comp" as a
// prefix of any word in the binding.
// - `policy.role.permissions:storage.buckets.update` to find IAM policy
// bindings that specify a role containing "storage.buckets.update"
// permission. Note that if callers don't have `iam.roles.get` access to a
// role's included permissions, policy bindings that specify this role will
// be dropped from the search results.
// - `policy.role.permissions:upd*` to find IAM policy bindings that specify a
// role containing "upd" as a prefix of any word in the role permission.
// Note that if callers don't have `iam.roles.get` access to a role's
// included permissions, policy bindings that specify this role will be
// dropped from the search results.
// - `resource:organizations/123456` to find IAM policy bindings
// that are set on "organizations/123456".
// - `resource=//cloudresourcemanager.googleapis.com/projects/myproject` to
// find IAM policy bindings that are set on the project named "myproject".
// - `Important` to find IAM policy bindings that contain "Important" as a
// word in any of the searchable fields (except for the included
// permissions).
// - `resource:(instance1 OR instance2) policy:amy` to find
// IAM policy bindings that are set on resources "instance1" or
// "instance2" and also specify user "amy".
// - `roles:roles/compute.admin` to find IAM policy bindings that specify the
// Compute Admin role.
// - `memberTypes:user` to find IAM policy bindings that contain the
// principal type "user".
Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
// Optional. The page size for search result pagination. Page size is capped
// at 500 even if a larger value is given. If set to zero or a negative value,
// server will pick an appropriate default. Returned results may be fewer than
// requested. When this happens, there could be more results as long as
// `next_page_token` is returned.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. If present, retrieve the next batch of results from the preceding
// call to this method. `page_token` must be the value of `next_page_token`
// from the previous response. The values of all other method parameters must
// be identical to those in the previous call.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. A list of asset types that the IAM policies are attached to. If
// empty, it will search the IAM policies that are attached to all the asset
// types [supported by search
// APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
//
// Regular expressions are also supported. For example:
//
// * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
// starts with "compute.googleapis.com".
// * ".*Instance" snapshots IAM policies attached to asset type ends with
// "Instance".
// * ".*Instance.*" snapshots IAM policies attached to asset type contains
// "Instance".
//
// See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
// regular expression syntax. If the regular expression does not match any
// supported asset type, an INVALID_ARGUMENT error will be returned.
AssetTypes []string `protobuf:"bytes,5,rep,name=asset_types,json=assetTypes,proto3" json:"asset_types,omitempty"`
// Optional. A comma-separated list of fields specifying the sorting order of
// the results. The default order is ascending. Add " DESC" after the field
// name to indicate descending order. Redundant space characters are ignored.
// Example: "assetType DESC, resource".
// Only singular primitive fields in the response are sortable:
// - resource
// - assetType
// - project
//
// All the other fields such as repeated fields (e.g., `folders`) and
// non-primitive fields (e.g., `policy`) are not supported.
OrderBy string `protobuf:"bytes,7,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}Search all IAM policies request.
func (*SearchAllIamPoliciesRequest) Descriptor
func (*SearchAllIamPoliciesRequest) Descriptor() ([]byte, []int)Deprecated: Use SearchAllIamPoliciesRequest.ProtoReflect.Descriptor instead.
func (*SearchAllIamPoliciesRequest) GetAssetTypes
func (x *SearchAllIamPoliciesRequest) GetAssetTypes() []stringfunc (*SearchAllIamPoliciesRequest) GetOrderBy
func (x *SearchAllIamPoliciesRequest) GetOrderBy() stringfunc (*SearchAllIamPoliciesRequest) GetPageSize
func (x *SearchAllIamPoliciesRequest) GetPageSize() int32func (*SearchAllIamPoliciesRequest) GetPageToken
func (x *SearchAllIamPoliciesRequest) GetPageToken() stringfunc (*SearchAllIamPoliciesRequest) GetQuery
func (x *SearchAllIamPoliciesRequest) GetQuery() stringfunc (*SearchAllIamPoliciesRequest) GetScope
func (x *SearchAllIamPoliciesRequest) GetScope() stringfunc (*SearchAllIamPoliciesRequest) ProtoMessage
func (*SearchAllIamPoliciesRequest) ProtoMessage()func (*SearchAllIamPoliciesRequest) ProtoReflect
func (x *SearchAllIamPoliciesRequest) ProtoReflect() protoreflect.Messagefunc (*SearchAllIamPoliciesRequest) Reset
func (x *SearchAllIamPoliciesRequest) Reset()func (*SearchAllIamPoliciesRequest) String
func (x *SearchAllIamPoliciesRequest) String() stringSearchAllIamPoliciesResponse
type SearchAllIamPoliciesResponse struct {
// A list of IAM policies that match the search query. Related information
// such as the associated resource is returned along with the policy.
Results []*IamPolicySearchResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
// Set if there are more results than those appearing in this response; to get
// the next set of results, call this method again, using this value as the
// `page_token`.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Search all IAM policies response.
func (*SearchAllIamPoliciesResponse) Descriptor
func (*SearchAllIamPoliciesResponse) Descriptor() ([]byte, []int)Deprecated: Use SearchAllIamPoliciesResponse.ProtoReflect.Descriptor instead.
func (*SearchAllIamPoliciesResponse) GetNextPageToken
func (x *SearchAllIamPoliciesResponse) GetNextPageToken() stringfunc (*SearchAllIamPoliciesResponse) GetResults
func (x *SearchAllIamPoliciesResponse) GetResults() []*IamPolicySearchResultfunc (*SearchAllIamPoliciesResponse) ProtoMessage
func (*SearchAllIamPoliciesResponse) ProtoMessage()func (*SearchAllIamPoliciesResponse) ProtoReflect
func (x *SearchAllIamPoliciesResponse) ProtoReflect() protoreflect.Messagefunc (*SearchAllIamPoliciesResponse) Reset
func (x *SearchAllIamPoliciesResponse) Reset()func (*SearchAllIamPoliciesResponse) String
func (x *SearchAllIamPoliciesResponse) String() stringSearchAllResourcesRequest
type SearchAllResourcesRequest struct {
// Required. A scope can be a project, a folder, or an organization. The
// search is limited to the resources within the `scope`. The caller must be
// granted the
// [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
// permission on the desired scope.
//
// The allowed values are:
//
// * projects/{PROJECT_ID} (e.g., "projects/foo-bar")
// * projects/{PROJECT_NUMBER} (e.g., "projects/12345678")
// * folders/{FOLDER_NUMBER} (e.g., "folders/1234567")
// * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
// Optional. The query statement. See [how to construct a
// query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
// for more information. If not specified or empty, it will search all the
// resources within the specified `scope`.
//
// Examples:
//
// - `name:Important` to find Google Cloud resources whose name contains
// `Important` as a word.
// - `name=Important` to find the Google Cloud resource whose name is exactly
// `Important`.
// - `displayName:Impor*` to find Google Cloud resources whose display name
// contains `Impor` as a prefix of any word in the field.
// - `location:us-west*` to find Google Cloud resources whose location
// contains both `us` and `west` as prefixes.
// - `labels:prod` to find Google Cloud resources whose labels contain `prod`
// as a key or value.
// - `labels.env:prod` to find Google Cloud resources that have a label `env`
// and its value is `prod`.
// - `labels.env:*` to find Google Cloud resources that have a label `env`.
// - `tagKeys:env` to find Google Cloud resources that have directly
// attached tags where the
// [`TagKey.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey)
// contains `env`.
// - `tagValues:prod*` to find Google Cloud resources that have directly
// attached tags where the
// [`TagValue.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
// contains a word prefixed by `prod`.
// - `tagValueIds=tagValues/123` to find Google Cloud resources that have
// directly attached tags where the
// [`TagValue.name`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
// is exactly `tagValues/123`.
// - `effectiveTagKeys:env` to find Google Cloud resources that have
// directly attached or inherited tags where the
// [`TagKey.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey)
// contains `env`.
// - `effectiveTagValues:prod*` to find Google Cloud resources that have
// directly attached or inherited tags where the
// [`TagValue.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
// contains a word prefixed by `prod`.
// - `effectiveTagValueIds=tagValues/123` to find Google Cloud resources that
// have directly attached or inherited tags where the
// [`TagValue.name`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
// is exactly `tagValues/123`.
// - `kmsKey:key` to find Google Cloud resources encrypted with a
// customer-managed encryption key whose name contains `key` as a word. This
// field is deprecated. Use the `kmsKeys` field to retrieve Cloud KMS
// key information.
// - `kmsKeys:key` to find Google Cloud resources encrypted with
// customer-managed encryption keys whose name contains the word `key`.
// - `relationships:instance-group-1` to find Google Cloud resources that have
// relationships with `instance-group-1` in the related resource name.
// - `relationships:INSTANCE_TO_INSTANCEGROUP` to find Compute Engine
// instances that have relationships of type `INSTANCE_TO_INSTANCEGROUP`.
// - `relationships.INSTANCE_TO_INSTANCEGROUP:instance-group-1` to find
// Compute Engine instances that have relationships with `instance-group-1`
// in the Compute Engine instance group resource name, for relationship type
// `INSTANCE_TO_INSTANCEGROUP`.
// - `sccSecurityMarks.key=value` to find Cloud resources that are attached
// with security marks whose key is `key` and value is `value`.
// - `sccSecurityMarks.key:*` to find Cloud resources that are attached with
// security marks whose key is `key`.
// - `state:ACTIVE` to find Google Cloud resources whose state contains
// `ACTIVE` as a word.
// - `NOT state:ACTIVE` to find Google Cloud resources whose state doesn't
// contain `ACTIVE` as a word.
// - `createTime<1609459200` to="" find="" google="" cloud="" resources="" that="" were="" created="" before="" `2021-01-01="" 00:00:00="" utc`.="" `1609459200`="" is="" the="" epoch="" timestamp="" of="" `2021-01-01="" 00:00:00="" utc`="" in="" seconds.="" -="" `updatetime="">1609459200` to find Google Cloud resources that were updated
// after `2021-01-01 00:00:00 UTC`. `1609459200` is the epoch timestamp of
// `2021-01-01 00:00:00 UTC` in seconds.
// - `Important` to find Google Cloud resources that contain `Important` as a
// word in any of the searchable fields.
// - `Impor*` to find Google Cloud resources that contain `Impor` as a prefix
// of any word in any of the searchable fields.
// - `Important location:(us-west1 OR global)` to find Google Cloud
// resources that contain `Important` as a word in any of the searchable
// fields and are also located in the `us-west1` region or the `global`
// location.
Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
// Optional. A list of asset types that this request searches for. If empty,
// it will search all the asset types [supported by search
// APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
//
// Regular expressions are also supported. For example:
//
// * "compute.googleapis.com.*" snapshots resources whose asset type starts
// with "compute.googleapis.com".
// * ".*Instance" snapshots resources whose asset type ends with "Instance".
// * ".*Instance.*" snapshots resources whose asset type contains "Instance".
//
// See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
// regular expression syntax. If the regular expression does not match any
// supported asset type, an INVALID_ARGUMENT error will be returned.
AssetTypes []string `protobuf:"bytes,3,rep,name=asset_types,json=assetTypes,proto3" json:"asset_types,omitempty"`
// Optional. The page size for search result pagination. Page size is capped
// at 500 even if a larger value is given. If set to zero or a negative value,
// server will pick an appropriate default. Returned results may be fewer than
// requested. When this happens, there could be more results as long as
// `next_page_token` is returned.
PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. If present, then retrieve the next batch of results from the
// preceding call to this method. `page_token` must be the value of
// `next_page_token` from the previous response. The values of all other
// method parameters, must be identical to those in the previous call.
PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. A comma-separated list of fields specifying the sorting order of
// the results. The default order is ascending. Add " DESC" after the field
// name to indicate descending order. Redundant space characters are ignored.
// Example: "location DESC, name".
// Only the following fields in the response are sortable:
//
// - name
// - assetType
// - project
// - displayName
// - description
// - location
// - createTime
// - updateTime
// - state
// - parentFullResourceName
// - parentAssetType
OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// Optional. A comma-separated list of fields that you want returned in the
// results. The following fields are returned by default if not specified:
//
// - `name`
// - `assetType`
// - `project`
// - `folders`
// - `organization`
// - `displayName`
// - `description`
// - `location`
// - `labels`
// - `tags`
// - `effectiveTags`
// - `networkTags`
// - `kmsKeys`
// - `createTime`
// - `updateTime`
// - `state`
// - `additionalAttributes`
// - `parentFullResourceName`
// - `parentAssetType`
//
// Some fields of large size, such as `versionedResources`,
// `attachedResources`, `effectiveTags` etc., are not returned by default, but
// you can specify them in the `read_mask` parameter if you want to include
// them. If `"*"` is specified, all [available
// fields](https://cloud.google.com/asset-inventory/docs/reference/rest/v1/TopLevel/searchAllResources#resourcesearchresult)
// are returned.
// Examples: `"name,location"`, `"name,versionedResources"`, `"*"`.
// Any invalid field path will trigger INVALID_ARGUMENT error.
ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,8,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"`
// contains filtered or unexported fields
}Search all resources request.
func (*SearchAllResourcesRequest) Descriptor
func (*SearchAllResourcesRequest) Descriptor() ([]byte, []int)Deprecated: Use SearchAllResourcesRequest.ProtoReflect.Descriptor instead.
func (*SearchAllResourcesRequest) GetAssetTypes
func (x *SearchAllResourcesRequest) GetAssetTypes() []stringfunc (*SearchAllResourcesRequest) GetOrderBy
func (x *SearchAllResourcesRequest) GetOrderBy() stringfunc (*SearchAllResourcesRequest) GetPageSize
func (x *SearchAllResourcesRequest) GetPageSize() int32func (*SearchAllResourcesRequest) GetPageToken
func (x *SearchAllResourcesRequest) GetPageToken() stringfunc (*SearchAllResourcesRequest) GetQuery
func (x *SearchAllResourcesRequest) GetQuery() stringfunc (*SearchAllResourcesRequest) GetReadMask
func (x *SearchAllResourcesRequest) GetReadMask() *fieldmaskpb.FieldMaskfunc (*SearchAllResourcesRequest) GetScope
func (x *SearchAllResourcesRequest) GetScope() stringfunc (*SearchAllResourcesRequest) ProtoMessage
func (*SearchAllResourcesRequest) ProtoMessage()func (*SearchAllResourcesRequest) ProtoReflect
func (x *SearchAllResourcesRequest) ProtoReflect() protoreflect.Messagefunc (*SearchAllResourcesRequest) Reset
func (x *SearchAllResourcesRequest) Reset()func (*SearchAllResourcesRequest) String
func (x *SearchAllResourcesRequest) String() stringSearchAllResourcesResponse
type SearchAllResourcesResponse struct {
// A list of Resources that match the search query. It contains the resource
// standard metadata information.
Results []*ResourceSearchResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
// If there are more results than those appearing in this response, then
// `next_page_token` is included. To get the next set of results, call this
// method again using the value of `next_page_token` as `page_token`.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Search all resources response.
func (*SearchAllResourcesResponse) Descriptor
func (*SearchAllResourcesResponse) Descriptor() ([]byte, []int)Deprecated: Use SearchAllResourcesResponse.ProtoReflect.Descriptor instead.
func (*SearchAllResourcesResponse) GetNextPageToken
func (x *SearchAllResourcesResponse) GetNextPageToken() stringfunc (*SearchAllResourcesResponse) GetResults
func (x *SearchAllResourcesResponse) GetResults() []*ResourceSearchResultfunc (*SearchAllResourcesResponse) ProtoMessage
func (*SearchAllResourcesResponse) ProtoMessage()func (*SearchAllResourcesResponse) ProtoReflect
func (x *SearchAllResourcesResponse) ProtoReflect() protoreflect.Messagefunc (*SearchAllResourcesResponse) Reset
func (x *SearchAllResourcesResponse) Reset()func (*SearchAllResourcesResponse) String
func (x *SearchAllResourcesResponse) String() stringTableFieldSchema
type TableFieldSchema struct {
// The field name. The name must contain only letters (a-z, A-Z),
// numbers (0-9), or underscores (_), and must start with a letter or
// underscore. The maximum length is 128 characters.
Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
// The field data type. Possible values include
// * STRING
// * BYTES
// * INTEGER
// * FLOAT
// * BOOLEAN
// * TIMESTAMP
// * DATE
// * TIME
// * DATETIME
// * GEOGRAPHY,
// * NUMERIC,
// * BIGNUMERIC,
// * RECORD
// (where RECORD indicates that the field contains a nested schema).
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// The field mode. Possible values include NULLABLE, REQUIRED and
// REPEATED. The default value is NULLABLE.
Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"`
// Describes the nested schema fields if the type property is set
// to RECORD.
Fields []*TableFieldSchema `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"`
// contains filtered or unexported fields
}A field in TableSchema.
func (*TableFieldSchema) Descriptor
func (*TableFieldSchema) Descriptor() ([]byte, []int)Deprecated: Use TableFieldSchema.ProtoReflect.Descriptor instead.
func (*TableFieldSchema) GetField
func (x *TableFieldSchema) GetField() stringfunc (*TableFieldSchema) GetFields
func (x *TableFieldSchema) GetFields() []*TableFieldSchemafunc (*TableFieldSchema) GetMode
func (x *TableFieldSchema) GetMode() stringfunc (*TableFieldSchema) GetType
func (x *TableFieldSchema) GetType() stringfunc (*TableFieldSchema) ProtoMessage
func (*TableFieldSchema) ProtoMessage()func (*TableFieldSchema) ProtoReflect
func (x *TableFieldSchema) ProtoReflect() protoreflect.Messagefunc (*TableFieldSchema) Reset
func (x *TableFieldSchema) Reset()func (*TableFieldSchema) String
func (x *TableFieldSchema) String() stringTableSchema
type TableSchema struct {
// Describes the fields in a table.
Fields []*TableFieldSchema `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
// contains filtered or unexported fields
}BigQuery Compatible table schema.
func (*TableSchema) Descriptor
func (*TableSchema) Descriptor() ([]byte, []int)Deprecated: Use TableSchema.ProtoReflect.Descriptor instead.
func (*TableSchema) GetFields
func (x *TableSchema) GetFields() []*TableFieldSchemafunc (*TableSchema) ProtoMessage
func (*TableSchema) ProtoMessage()func (*TableSchema) ProtoReflect
func (x *TableSchema) ProtoReflect() protoreflect.Messagefunc (*TableSchema) Reset
func (x *TableSchema) Reset()func (*TableSchema) String
func (x *TableSchema) String() stringTag
type Tag struct {
// TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
TagKey *string `protobuf:"bytes,1,opt,name=tag_key,json=tagKey,proto3,oneof" json:"tag_key,omitempty"`
// TagKey ID, in the format of tagKeys/{TAG_KEY_ID}.
TagKeyId *string `protobuf:"bytes,2,opt,name=tag_key_id,json=tagKeyId,proto3,oneof" json:"tag_key_id,omitempty"`
// TagValue namespaced name, in the format of
// {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
TagValue *string `protobuf:"bytes,3,opt,name=tag_value,json=tagValue,proto3,oneof" json:"tag_value,omitempty"`
// TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.
TagValueId *string `protobuf:"bytes,4,opt,name=tag_value_id,json=tagValueId,proto3,oneof" json:"tag_value_id,omitempty"`
// contains filtered or unexported fields
}The key and value for a tag.
func (*Tag) Descriptor
Deprecated: Use Tag.ProtoReflect.Descriptor instead.
func (*Tag) GetTagKey
func (*Tag) GetTagKeyId
func (*Tag) GetTagValue
func (*Tag) GetTagValueId
func (*Tag) ProtoMessage
func (*Tag) ProtoMessage()func (*Tag) ProtoReflect
func (x *Tag) ProtoReflect() protoreflect.Messagefunc (*Tag) Reset
func (x *Tag) Reset()func (*Tag) String
TemporalAsset
type TemporalAsset struct {
// The time window when the asset data and state was observed.
Window *TimeWindow `protobuf:"bytes,1,opt,name=window,proto3" json:"window,omitempty"`
// Whether the asset has been deleted or not.
Deleted bool `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"`
// An asset in Google Cloud.
Asset *Asset `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"`
// State of prior_asset.
PriorAssetState TemporalAsset_PriorAssetState `protobuf:"varint,4,opt,name=prior_asset_state,json=priorAssetState,proto3,enum=google.cloud.asset.v1.TemporalAsset_PriorAssetState" json:"prior_asset_state,omitempty"`
// Prior copy of the asset. Populated if prior_asset_state is PRESENT.
// Currently this is only set for responses in Real-Time Feed.
PriorAsset *Asset `protobuf:"bytes,5,opt,name=prior_asset,json=priorAsset,proto3" json:"prior_asset,omitempty"`
// contains filtered or unexported fields
}An asset in Google Cloud and its temporal metadata, including the time window when it was observed and its status during that window.
func (*TemporalAsset) Descriptor
func (*TemporalAsset) Descriptor() ([]byte, []int)Deprecated: Use TemporalAsset.ProtoReflect.Descriptor instead.
func (*TemporalAsset) GetAsset
func (x *TemporalAsset) GetAsset() *Assetfunc (*TemporalAsset) GetDeleted
func (x *TemporalAsset) GetDeleted() boolfunc (*TemporalAsset) GetPriorAsset
func (x *TemporalAsset) GetPriorAsset() *Assetfunc (*TemporalAsset) GetPriorAssetState
func (x *TemporalAsset) GetPriorAssetState() TemporalAsset_PriorAssetStatefunc (*TemporalAsset) GetWindow
func (x *TemporalAsset) GetWindow() *TimeWindowfunc (*TemporalAsset) ProtoMessage
func (*TemporalAsset) ProtoMessage()func (*TemporalAsset) ProtoReflect
func (x *TemporalAsset) ProtoReflect() protoreflect.Messagefunc (*TemporalAsset) Reset
func (x *TemporalAsset) Reset()func (*TemporalAsset) String
func (x *TemporalAsset) String() stringTemporalAsset_PriorAssetState
type TemporalAsset_PriorAssetState int32State of prior asset.
TemporalAsset_PRIOR_ASSET_STATE_UNSPECIFIED, TemporalAsset_PRESENT, TemporalAsset_INVALID, TemporalAsset_DOES_NOT_EXIST, TemporalAsset_DELETED
const (
// prior_asset is not applicable for the current asset.
TemporalAsset_PRIOR_ASSET_STATE_UNSPECIFIED TemporalAsset_PriorAssetState = 0
// prior_asset is populated correctly.
TemporalAsset_PRESENT TemporalAsset_PriorAssetState = 1
// Failed to set prior_asset.
TemporalAsset_INVALID TemporalAsset_PriorAssetState = 2
// Current asset is the first known state.
TemporalAsset_DOES_NOT_EXIST TemporalAsset_PriorAssetState = 3
// prior_asset is a deletion.
TemporalAsset_DELETED TemporalAsset_PriorAssetState = 4
)func (TemporalAsset_PriorAssetState) Descriptor
func (TemporalAsset_PriorAssetState) Descriptor() protoreflect.EnumDescriptorfunc (TemporalAsset_PriorAssetState) Enum
func (x TemporalAsset_PriorAssetState) Enum() *TemporalAsset_PriorAssetStatefunc (TemporalAsset_PriorAssetState) EnumDescriptor
func (TemporalAsset_PriorAssetState) EnumDescriptor() ([]byte, []int)Deprecated: Use TemporalAsset_PriorAssetState.Descriptor instead.
func (TemporalAsset_PriorAssetState) Number
func (x TemporalAsset_PriorAssetState) Number() protoreflect.EnumNumberfunc (TemporalAsset_PriorAssetState) String
func (x TemporalAsset_PriorAssetState) String() stringfunc (TemporalAsset_PriorAssetState) Type
func (TemporalAsset_PriorAssetState) Type() protoreflect.EnumTypeTimeWindow
type TimeWindow struct {
// Start time of the time window (exclusive).
StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// End time of the time window (inclusive). If not specified, the current
// timestamp is used instead.
EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// contains filtered or unexported fields
}A time window specified by its start_time and end_time.
func (*TimeWindow) Descriptor
func (*TimeWindow) Descriptor() ([]byte, []int)Deprecated: Use TimeWindow.ProtoReflect.Descriptor instead.
func (*TimeWindow) GetEndTime
func (x *TimeWindow) GetEndTime() *timestamppb.Timestampfunc (*TimeWindow) GetStartTime
func (x *TimeWindow) GetStartTime() *timestamppb.Timestampfunc (*TimeWindow) ProtoMessage
func (*TimeWindow) ProtoMessage()func (*TimeWindow) ProtoReflect
func (x *TimeWindow) ProtoReflect() protoreflect.Messagefunc (*TimeWindow) Reset
func (x *TimeWindow) Reset()func (*TimeWindow) String
func (x *TimeWindow) String() stringUnimplementedAssetServiceServer
type UnimplementedAssetServiceServer struct {
}UnimplementedAssetServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedAssetServiceServer) AnalyzeIamPolicy
func (UnimplementedAssetServiceServer) AnalyzeIamPolicy(context.Context, *AnalyzeIamPolicyRequest) (*AnalyzeIamPolicyResponse, error)func (UnimplementedAssetServiceServer) AnalyzeIamPolicyLongrunning
func (UnimplementedAssetServiceServer) AnalyzeIamPolicyLongrunning(context.Context, *AnalyzeIamPolicyLongrunningRequest) (*longrunningpb.Operation, error)func (UnimplementedAssetServiceServer) AnalyzeMove
func (UnimplementedAssetServiceServer) AnalyzeMove(context.Context, *AnalyzeMoveRequest) (*AnalyzeMoveResponse, error)func (UnimplementedAssetServiceServer) AnalyzeOrgPolicies
func (UnimplementedAssetServiceServer) AnalyzeOrgPolicies(context.Context, *AnalyzeOrgPoliciesRequest) (*AnalyzeOrgPoliciesResponse, error)func (UnimplementedAssetServiceServer) AnalyzeOrgPolicyGovernedAssets
func (UnimplementedAssetServiceServer) AnalyzeOrgPolicyGovernedAssets(context.Context, *AnalyzeOrgPolicyGovernedAssetsRequest) (*AnalyzeOrgPolicyGovernedAssetsResponse, error)func (UnimplementedAssetServiceServer) AnalyzeOrgPolicyGovernedContainers
func (UnimplementedAssetServiceServer) AnalyzeOrgPolicyGovernedContainers(context.Context, *AnalyzeOrgPolicyGovernedContainersRequest) (*AnalyzeOrgPolicyGovernedContainersResponse, error)func (UnimplementedAssetServiceServer) BatchGetAssetsHistory
func (UnimplementedAssetServiceServer) BatchGetAssetsHistory(context.Context, *BatchGetAssetsHistoryRequest) (*BatchGetAssetsHistoryResponse, error)func (UnimplementedAssetServiceServer) BatchGetEffectiveIamPolicies
func (UnimplementedAssetServiceServer) BatchGetEffectiveIamPolicies(context.Context, *BatchGetEffectiveIamPoliciesRequest) (*BatchGetEffectiveIamPoliciesResponse, error)func (UnimplementedAssetServiceServer) CreateFeed
func (UnimplementedAssetServiceServer) CreateFeed(context.Context, *CreateFeedRequest) (*Feed, error)func (UnimplementedAssetServiceServer) CreateSavedQuery
func (UnimplementedAssetServiceServer) CreateSavedQuery(context.Context, *CreateSavedQueryRequest) (*SavedQuery, error)func (UnimplementedAssetServiceServer) DeleteFeed
func (UnimplementedAssetServiceServer) DeleteFeed(context.Context, *DeleteFeedRequest) (*emptypb.Empty, error)func (UnimplementedAssetServiceServer) DeleteSavedQuery
func (UnimplementedAssetServiceServer) DeleteSavedQuery(context.Context, *DeleteSavedQueryRequest) (*emptypb.Empty, error)func (UnimplementedAssetServiceServer) ExportAssets
func (UnimplementedAssetServiceServer) ExportAssets(context.Context, *ExportAssetsRequest) (*longrunningpb.Operation, error)func (UnimplementedAssetServiceServer) GetFeed
func (UnimplementedAssetServiceServer) GetFeed(context.Context, *GetFeedRequest) (*Feed, error)func (UnimplementedAssetServiceServer) GetSavedQuery
func (UnimplementedAssetServiceServer) GetSavedQuery(context.Context, *GetSavedQueryRequest) (*SavedQuery, error)func (UnimplementedAssetServiceServer) ListAssets
func (UnimplementedAssetServiceServer) ListAssets(context.Context, *ListAssetsRequest) (*ListAssetsResponse, error)func (UnimplementedAssetServiceServer) ListFeeds
func (UnimplementedAssetServiceServer) ListFeeds(context.Context, *ListFeedsRequest) (*ListFeedsResponse, error)func (UnimplementedAssetServiceServer) ListSavedQueries
func (UnimplementedAssetServiceServer) ListSavedQueries(context.Context, *ListSavedQueriesRequest) (*ListSavedQueriesResponse, error)func (UnimplementedAssetServiceServer) QueryAssets
func (UnimplementedAssetServiceServer) QueryAssets(context.Context, *QueryAssetsRequest) (*QueryAssetsResponse, error)func (UnimplementedAssetServiceServer) SearchAllIamPolicies
func (UnimplementedAssetServiceServer) SearchAllIamPolicies(context.Context, *SearchAllIamPoliciesRequest) (*SearchAllIamPoliciesResponse, error)func (UnimplementedAssetServiceServer) SearchAllResources
func (UnimplementedAssetServiceServer) SearchAllResources(context.Context, *SearchAllResourcesRequest) (*SearchAllResourcesResponse, error)func (UnimplementedAssetServiceServer) UpdateFeed
func (UnimplementedAssetServiceServer) UpdateFeed(context.Context, *UpdateFeedRequest) (*Feed, error)func (UnimplementedAssetServiceServer) UpdateSavedQuery
func (UnimplementedAssetServiceServer) UpdateSavedQuery(context.Context, *UpdateSavedQueryRequest) (*SavedQuery, error)UnsafeAssetServiceServer
type UnsafeAssetServiceServer interface {
// contains filtered or unexported methods
}UnsafeAssetServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AssetServiceServer will result in compilation errors.
UpdateFeedRequest
type UpdateFeedRequest struct {
// Required. The new values of feed details. It must match an existing feed
// and the field `name` must be in the format of:
// projects/project_number/feeds/feed_id or
// folders/folder_number/feeds/feed_id or
// organizations/organization_number/feeds/feed_id.
Feed *Feed `protobuf:"bytes,1,opt,name=feed,proto3" json:"feed,omitempty"`
// Required. Only updates the `feed` fields indicated by this mask.
// The field mask must not be empty, and it must not contain fields that
// are immutable or only set by the server.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}Update asset feed request.
func (*UpdateFeedRequest) Descriptor
func (*UpdateFeedRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateFeedRequest.ProtoReflect.Descriptor instead.
func (*UpdateFeedRequest) GetFeed
func (x *UpdateFeedRequest) GetFeed() *Feedfunc (*UpdateFeedRequest) GetUpdateMask
func (x *UpdateFeedRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateFeedRequest) ProtoMessage
func (*UpdateFeedRequest) ProtoMessage()func (*UpdateFeedRequest) ProtoReflect
func (x *UpdateFeedRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateFeedRequest) Reset
func (x *UpdateFeedRequest) Reset()func (*UpdateFeedRequest) String
func (x *UpdateFeedRequest) String() stringUpdateSavedQueryRequest
type UpdateSavedQueryRequest struct {
// Required. The saved query to update.
//
// The saved query's `name` field is used to identify the one to update,
// which has format as below:
//
// * projects/project_number/savedQueries/saved_query_id
// * folders/folder_number/savedQueries/saved_query_id
// * organizations/organization_number/savedQueries/saved_query_id
SavedQuery *SavedQuery `protobuf:"bytes,1,opt,name=saved_query,json=savedQuery,proto3" json:"saved_query,omitempty"`
// Required. The list of fields to update.
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 a saved query.
func (*UpdateSavedQueryRequest) Descriptor
func (*UpdateSavedQueryRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateSavedQueryRequest.ProtoReflect.Descriptor instead.
func (*UpdateSavedQueryRequest) GetSavedQuery
func (x *UpdateSavedQueryRequest) GetSavedQuery() *SavedQueryfunc (*UpdateSavedQueryRequest) GetUpdateMask
func (x *UpdateSavedQueryRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateSavedQueryRequest) ProtoMessage
func (*UpdateSavedQueryRequest) ProtoMessage()func (*UpdateSavedQueryRequest) ProtoReflect
func (x *UpdateSavedQueryRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateSavedQueryRequest) Reset
func (x *UpdateSavedQueryRequest) Reset()func (*UpdateSavedQueryRequest) String
func (x *UpdateSavedQueryRequest) String() stringVersionedResource
type VersionedResource struct {
// API version of the resource.
//
// Example:
// If the resource is an instance provided by Compute Engine v1 API as defined
// in `https://cloud.google.com/compute/docs/reference/rest/v1/instances`,
// version will be "v1".
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// JSON representation of the resource as defined by the corresponding
// service providing this resource.
//
// Example:
// If the resource is an instance provided by Compute Engine, this field will
// contain the JSON representation of the instance as defined by Compute
// Engine:
// `https://cloud.google.com/compute/docs/reference/rest/v1/instances`.
//
// You can find the resource definition for each supported resource type in
// this table:
// `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
Resource *structpb.Struct `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
// contains filtered or unexported fields
}Resource representation as defined by the corresponding service providing the resource for a given API version.
func (*VersionedResource) Descriptor
func (*VersionedResource) Descriptor() ([]byte, []int)Deprecated: Use VersionedResource.ProtoReflect.Descriptor instead.
func (*VersionedResource) GetResource
func (x *VersionedResource) GetResource() *structpb.Structfunc (*VersionedResource) GetVersion
func (x *VersionedResource) GetVersion() stringfunc (*VersionedResource) ProtoMessage
func (*VersionedResource) ProtoMessage()func (*VersionedResource) ProtoReflect
func (x *VersionedResource) ProtoReflect() protoreflect.Messagefunc (*VersionedResource) Reset
func (x *VersionedResource) Reset()func (*VersionedResource) String
func (x *VersionedResource) String() string