asset

package
v0.0.0-...-e165f0f Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContentType_name = map[int32]string{
	0: "CONTENT_TYPE_UNSPECIFIED",
	1: "RESOURCE",
	2: "IAM_POLICY",
	4: "ORG_POLICY",
	5: "ACCESS_POLICY",
}
View Source
var ContentType_value = map[string]int32{
	"CONTENT_TYPE_UNSPECIFIED": 0,
	"RESOURCE":                 1,
	"IAM_POLICY":               2,
	"ORG_POLICY":               4,
	"ACCESS_POLICY":            5,
}

Functions

func RegisterAssetServiceServer

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

Types

type Asset

type Asset struct {
	// The full name of the asset. For 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. For 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 Cloud IAM policy set on a Google Cloud resource.
	// There can be a maximum of one Cloud IAM policy set on any given resource.
	// In addition, Cloud 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/docs/policies#inheritance) for
	// more information.
	IamPolicy *v1.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 []*v11.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"`
	// 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.
	//
	// For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
	Ancestors            []string `protobuf:"bytes,10,rep,name=ancestors,proto3" json:"ancestors,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

An asset in Google Cloud. An asset can be any resource in the Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a Cloud IAM policy.

func (*Asset) Descriptor

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

func (*Asset) GetAccessContextPolicy

func (m *Asset) GetAccessContextPolicy() isAsset_AccessContextPolicy

func (*Asset) GetAccessLevel

func (m *Asset) GetAccessLevel() *v12.AccessLevel

func (*Asset) GetAccessPolicy

func (m *Asset) GetAccessPolicy() *v12.AccessPolicy

func (*Asset) GetAncestors

func (m *Asset) GetAncestors() []string

func (*Asset) GetAssetType

func (m *Asset) GetAssetType() string

func (*Asset) GetIamPolicy

func (m *Asset) GetIamPolicy() *v1.Policy

func (*Asset) GetName

func (m *Asset) GetName() string

func (*Asset) GetOrgPolicy

func (m *Asset) GetOrgPolicy() []*v11.Policy

func (*Asset) GetResource

func (m *Asset) GetResource() *Resource

func (*Asset) GetServicePerimeter

func (m *Asset) GetServicePerimeter() *v12.ServicePerimeter

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) Reset

func (m *Asset) Reset()

func (*Asset) String

func (m *Asset) String() string

func (*Asset) XXX_DiscardUnknown

func (m *Asset) XXX_DiscardUnknown()

func (*Asset) XXX_Marshal

func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Asset) XXX_Merge

func (m *Asset) XXX_Merge(src proto.Message)

func (*Asset) XXX_OneofWrappers

func (*Asset) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Asset) XXX_Size

func (m *Asset) XXX_Size() int

func (*Asset) XXX_Unmarshal

func (m *Asset) XXX_Unmarshal(b []byte) error

type AssetServiceClient

type AssetServiceClient interface {
	// Exports assets with time and resource types to a given Cloud Storage
	// location. The output format is newline-delimited JSON.
	// This API implements the [google.longrunning.Operation][google.longrunning.Operation] API allowing you
	// to keep track of the export.
	ExportAssets(ctx context.Context, in *ExportAssetsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Batch gets the update history of assets that overlap a time window.
	// For RESOURCE content, this API outputs history with asset in both
	// non-delete or deleted status.
	// 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.
	// 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) (*empty.Empty, error)
}

AssetServiceClient is the client API for AssetService service.

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

type AssetServiceServer

type AssetServiceServer interface {
	// Exports assets with time and resource types to a given Cloud Storage
	// location. The output format is newline-delimited JSON.
	// This API implements the [google.longrunning.Operation][google.longrunning.Operation] API allowing you
	// to keep track of the export.
	ExportAssets(context.Context, *ExportAssetsRequest) (*longrunning.Operation, error)
	// Batch gets the update history of assets that overlap a time window.
	// For RESOURCE content, this API outputs history with asset in both
	// non-delete or deleted status.
	// 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.
	// 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) (*empty.Empty, error)
}

AssetServiceServer is the server API for AssetService service.

type Asset_AccessLevel

type Asset_AccessLevel struct {
	AccessLevel *v12.AccessLevel `protobuf:"bytes,8,opt,name=access_level,json=accessLevel,proto3,oneof"`
}

type Asset_AccessPolicy

type Asset_AccessPolicy struct {
	AccessPolicy *v12.AccessPolicy `protobuf:"bytes,7,opt,name=access_policy,json=accessPolicy,proto3,oneof"`
}

type Asset_ServicePerimeter

type Asset_ServicePerimeter struct {
	ServicePerimeter *v12.ServicePerimeter `protobuf:"bytes,9,opt,name=service_perimeter,json=servicePerimeter,proto3,oneof"`
}

type BatchGetAssetsHistoryRequest

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. For 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)
	// and [Resource Name
	// Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
	// for more info.
	//
	// 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 `` /* 134-byte string literal not displayed */
	// 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"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

Batch get assets history request.

func (*BatchGetAssetsHistoryRequest) Descriptor

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

func (*BatchGetAssetsHistoryRequest) GetAssetNames

func (m *BatchGetAssetsHistoryRequest) GetAssetNames() []string

func (*BatchGetAssetsHistoryRequest) GetContentType

func (m *BatchGetAssetsHistoryRequest) GetContentType() ContentType

func (*BatchGetAssetsHistoryRequest) GetParent

func (m *BatchGetAssetsHistoryRequest) GetParent() string

func (*BatchGetAssetsHistoryRequest) GetReadTimeWindow

func (m *BatchGetAssetsHistoryRequest) GetReadTimeWindow() *TimeWindow

func (*BatchGetAssetsHistoryRequest) ProtoMessage

func (*BatchGetAssetsHistoryRequest) ProtoMessage()

func (*BatchGetAssetsHistoryRequest) Reset

func (m *BatchGetAssetsHistoryRequest) Reset()

func (*BatchGetAssetsHistoryRequest) String

func (*BatchGetAssetsHistoryRequest) XXX_DiscardUnknown

func (m *BatchGetAssetsHistoryRequest) XXX_DiscardUnknown()

func (*BatchGetAssetsHistoryRequest) XXX_Marshal

func (m *BatchGetAssetsHistoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchGetAssetsHistoryRequest) XXX_Merge

func (m *BatchGetAssetsHistoryRequest) XXX_Merge(src proto.Message)

func (*BatchGetAssetsHistoryRequest) XXX_Size

func (m *BatchGetAssetsHistoryRequest) XXX_Size() int

func (*BatchGetAssetsHistoryRequest) XXX_Unmarshal

func (m *BatchGetAssetsHistoryRequest) XXX_Unmarshal(b []byte) error

type BatchGetAssetsHistoryResponse

type BatchGetAssetsHistoryResponse struct {
	// A list of assets with valid time windows.
	Assets               []*TemporalAsset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Batch get assets history response.

func (*BatchGetAssetsHistoryResponse) Descriptor

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

func (*BatchGetAssetsHistoryResponse) GetAssets

func (m *BatchGetAssetsHistoryResponse) GetAssets() []*TemporalAsset

func (*BatchGetAssetsHistoryResponse) ProtoMessage

func (*BatchGetAssetsHistoryResponse) ProtoMessage()

func (*BatchGetAssetsHistoryResponse) Reset

func (m *BatchGetAssetsHistoryResponse) Reset()

func (*BatchGetAssetsHistoryResponse) String

func (*BatchGetAssetsHistoryResponse) XXX_DiscardUnknown

func (m *BatchGetAssetsHistoryResponse) XXX_DiscardUnknown()

func (*BatchGetAssetsHistoryResponse) XXX_Marshal

func (m *BatchGetAssetsHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchGetAssetsHistoryResponse) XXX_Merge

func (m *BatchGetAssetsHistoryResponse) XXX_Merge(src proto.Message)

func (*BatchGetAssetsHistoryResponse) XXX_Size

func (m *BatchGetAssetsHistoryResponse) XXX_Size() int

func (*BatchGetAssetsHistoryResponse) XXX_Unmarshal

func (m *BatchGetAssetsHistoryResponse) XXX_Unmarshal(b []byte) error

type BigQueryDestination

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.
	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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A BigQuery destination.

func (*BigQueryDestination) Descriptor

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

func (*BigQueryDestination) GetDataset

func (m *BigQueryDestination) GetDataset() string

func (*BigQueryDestination) GetForce

func (m *BigQueryDestination) GetForce() bool

func (*BigQueryDestination) GetTable

func (m *BigQueryDestination) GetTable() string

func (*BigQueryDestination) ProtoMessage

func (*BigQueryDestination) ProtoMessage()

func (*BigQueryDestination) Reset

func (m *BigQueryDestination) Reset()

func (*BigQueryDestination) String

func (m *BigQueryDestination) String() string

func (*BigQueryDestination) XXX_DiscardUnknown

func (m *BigQueryDestination) XXX_DiscardUnknown()

func (*BigQueryDestination) XXX_Marshal

func (m *BigQueryDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BigQueryDestination) XXX_Merge

func (m *BigQueryDestination) XXX_Merge(src proto.Message)

func (*BigQueryDestination) XXX_Size

func (m *BigQueryDestination) XXX_Size() int

func (*BigQueryDestination) XXX_Unmarshal

func (m *BigQueryDestination) XXX_Unmarshal(b []byte) error

type ContentType

type ContentType int32

Asset content type.

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 Cloud Organization Policy set on an asset.
	ContentType_ORG_POLICY ContentType = 4
	// The Cloud Access context mananger Policy set on an asset.
	ContentType_ACCESS_POLICY ContentType = 5
)

func (ContentType) EnumDescriptor

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

func (ContentType) String

func (x ContentType) String() string

type CreateFeedRequest

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Create asset feed request.

func (*CreateFeedRequest) Descriptor

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

func (*CreateFeedRequest) GetFeed

func (m *CreateFeedRequest) GetFeed() *Feed

func (*CreateFeedRequest) GetFeedId

func (m *CreateFeedRequest) GetFeedId() string

func (*CreateFeedRequest) GetParent

func (m *CreateFeedRequest) GetParent() string

func (*CreateFeedRequest) ProtoMessage

func (*CreateFeedRequest) ProtoMessage()

func (*CreateFeedRequest) Reset

func (m *CreateFeedRequest) Reset()

func (*CreateFeedRequest) String

func (m *CreateFeedRequest) String() string

func (*CreateFeedRequest) XXX_DiscardUnknown

func (m *CreateFeedRequest) XXX_DiscardUnknown()

func (*CreateFeedRequest) XXX_Marshal

func (m *CreateFeedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateFeedRequest) XXX_Merge

func (m *CreateFeedRequest) XXX_Merge(src proto.Message)

func (*CreateFeedRequest) XXX_Size

func (m *CreateFeedRequest) XXX_Size() int

func (*CreateFeedRequest) XXX_Unmarshal

func (m *CreateFeedRequest) XXX_Unmarshal(b []byte) error

type DeleteFeedRequest

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteFeedRequest) Descriptor

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

func (*DeleteFeedRequest) GetName

func (m *DeleteFeedRequest) GetName() string

func (*DeleteFeedRequest) ProtoMessage

func (*DeleteFeedRequest) ProtoMessage()

func (*DeleteFeedRequest) Reset

func (m *DeleteFeedRequest) Reset()

func (*DeleteFeedRequest) String

func (m *DeleteFeedRequest) String() string

func (*DeleteFeedRequest) XXX_DiscardUnknown

func (m *DeleteFeedRequest) XXX_DiscardUnknown()

func (*DeleteFeedRequest) XXX_Marshal

func (m *DeleteFeedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteFeedRequest) XXX_Merge

func (m *DeleteFeedRequest) XXX_Merge(src proto.Message)

func (*DeleteFeedRequest) XXX_Size

func (m *DeleteFeedRequest) XXX_Size() int

func (*DeleteFeedRequest) XXX_Unmarshal

func (m *DeleteFeedRequest) XXX_Unmarshal(b []byte) error

type ExportAssetsRequest

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 *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
	// A list of asset types of which to take a snapshot for. For example:
	// "compute.googleapis.com/Disk". If specified, only matching assets will be
	// returned. 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 `` /* 134-byte string literal not displayed */
	// Required. Output configuration indicating where the results will be output
	// to. All results will be in newline delimited JSON format.
	OutputConfig         *OutputConfig `protobuf:"bytes,5,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Export asset request.

func (*ExportAssetsRequest) Descriptor

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

func (*ExportAssetsRequest) GetAssetTypes

func (m *ExportAssetsRequest) GetAssetTypes() []string

func (*ExportAssetsRequest) GetContentType

func (m *ExportAssetsRequest) GetContentType() ContentType

func (*ExportAssetsRequest) GetOutputConfig

func (m *ExportAssetsRequest) GetOutputConfig() *OutputConfig

func (*ExportAssetsRequest) GetParent

func (m *ExportAssetsRequest) GetParent() string

func (*ExportAssetsRequest) GetReadTime

func (m *ExportAssetsRequest) GetReadTime() *timestamp.Timestamp

func (*ExportAssetsRequest) ProtoMessage

func (*ExportAssetsRequest) ProtoMessage()

func (*ExportAssetsRequest) Reset

func (m *ExportAssetsRequest) Reset()

func (*ExportAssetsRequest) String

func (m *ExportAssetsRequest) String() string

func (*ExportAssetsRequest) XXX_DiscardUnknown

func (m *ExportAssetsRequest) XXX_DiscardUnknown()

func (*ExportAssetsRequest) XXX_Marshal

func (m *ExportAssetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExportAssetsRequest) XXX_Merge

func (m *ExportAssetsRequest) XXX_Merge(src proto.Message)

func (*ExportAssetsRequest) XXX_Size

func (m *ExportAssetsRequest) XXX_Size() int

func (*ExportAssetsRequest) XXX_Unmarshal

func (m *ExportAssetsRequest) XXX_Unmarshal(b []byte) error

type ExportAssetsResponse

type ExportAssetsResponse struct {
	// Time the snapshot was taken.
	ReadTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
	// Output configuration indicating where the results were output to.
	// All results are in JSON format.
	OutputConfig         *OutputConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

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)

func (*ExportAssetsResponse) GetOutputConfig

func (m *ExportAssetsResponse) GetOutputConfig() *OutputConfig

func (*ExportAssetsResponse) GetReadTime

func (m *ExportAssetsResponse) GetReadTime() *timestamp.Timestamp

func (*ExportAssetsResponse) ProtoMessage

func (*ExportAssetsResponse) ProtoMessage()

func (*ExportAssetsResponse) Reset

func (m *ExportAssetsResponse) Reset()

func (*ExportAssetsResponse) String

func (m *ExportAssetsResponse) String() string

func (*ExportAssetsResponse) XXX_DiscardUnknown

func (m *ExportAssetsResponse) XXX_DiscardUnknown()

func (*ExportAssetsResponse) XXX_Marshal

func (m *ExportAssetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExportAssetsResponse) XXX_Merge

func (m *ExportAssetsResponse) XXX_Merge(src proto.Message)

func (*ExportAssetsResponse) XXX_Size

func (m *ExportAssetsResponse) XXX_Size() int

func (*ExportAssetsResponse) XXX_Unmarshal

func (m *ExportAssetsResponse) XXX_Unmarshal(b []byte) error

type Feed

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 and asset_types are exported to the feed. For
	// 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 info.
	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 and asset_types are exported to the feed.
	// For example: `"compute.googleapis.com/Disk"`
	//
	// See [this
	// topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
	// for a list of 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 and
	// type will be returned.
	ContentType ContentType `` /* 134-byte string literal not displayed */
	// 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"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

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

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

func (*Feed) GetAssetNames

func (m *Feed) GetAssetNames() []string

func (*Feed) GetAssetTypes

func (m *Feed) GetAssetTypes() []string

func (*Feed) GetContentType

func (m *Feed) GetContentType() ContentType

func (*Feed) GetFeedOutputConfig

func (m *Feed) GetFeedOutputConfig() *FeedOutputConfig

func (*Feed) GetName

func (m *Feed) GetName() string

func (*Feed) ProtoMessage

func (*Feed) ProtoMessage()

func (*Feed) Reset

func (m *Feed) Reset()

func (*Feed) String

func (m *Feed) String() string

func (*Feed) XXX_DiscardUnknown

func (m *Feed) XXX_DiscardUnknown()

func (*Feed) XXX_Marshal

func (m *Feed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Feed) XXX_Merge

func (m *Feed) XXX_Merge(src proto.Message)

func (*Feed) XXX_Size

func (m *Feed) XXX_Size() int

func (*Feed) XXX_Unmarshal

func (m *Feed) XXX_Unmarshal(b []byte) error

type FeedOutputConfig

type FeedOutputConfig struct {
	// Asset feed destination.
	//
	// Types that are valid to be assigned to Destination:
	//	*FeedOutputConfig_PubsubDestination
	Destination          isFeedOutputConfig_Destination `protobuf_oneof:"destination"`
	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
	XXX_unrecognized     []byte                         `json:"-"`
	XXX_sizecache        int32                          `json:"-"`
}

Output configuration for asset feed destination.

func (*FeedOutputConfig) Descriptor

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

func (*FeedOutputConfig) GetDestination

func (m *FeedOutputConfig) GetDestination() isFeedOutputConfig_Destination

func (*FeedOutputConfig) GetPubsubDestination

func (m *FeedOutputConfig) GetPubsubDestination() *PubsubDestination

func (*FeedOutputConfig) ProtoMessage

func (*FeedOutputConfig) ProtoMessage()

func (*FeedOutputConfig) Reset

func (m *FeedOutputConfig) Reset()

func (*FeedOutputConfig) String

func (m *FeedOutputConfig) String() string

func (*FeedOutputConfig) XXX_DiscardUnknown

func (m *FeedOutputConfig) XXX_DiscardUnknown()

func (*FeedOutputConfig) XXX_Marshal

func (m *FeedOutputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FeedOutputConfig) XXX_Merge

func (m *FeedOutputConfig) XXX_Merge(src proto.Message)

func (*FeedOutputConfig) XXX_OneofWrappers

func (*FeedOutputConfig) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*FeedOutputConfig) XXX_Size

func (m *FeedOutputConfig) XXX_Size() int

func (*FeedOutputConfig) XXX_Unmarshal

func (m *FeedOutputConfig) XXX_Unmarshal(b []byte) error

type FeedOutputConfig_PubsubDestination

type FeedOutputConfig_PubsubDestination struct {
	PubsubDestination *PubsubDestination `protobuf:"bytes,1,opt,name=pubsub_destination,json=pubsubDestination,proto3,oneof"`
}

type 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"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

A Cloud Storage location.

func (*GcsDestination) Descriptor

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

func (*GcsDestination) GetObjectUri

func (m *GcsDestination) GetObjectUri() isGcsDestination_ObjectUri

func (*GcsDestination) GetUri

func (m *GcsDestination) GetUri() string

func (*GcsDestination) GetUriPrefix

func (m *GcsDestination) GetUriPrefix() string

func (*GcsDestination) ProtoMessage

func (*GcsDestination) ProtoMessage()

func (*GcsDestination) Reset

func (m *GcsDestination) Reset()

func (*GcsDestination) String

func (m *GcsDestination) String() string

func (*GcsDestination) XXX_DiscardUnknown

func (m *GcsDestination) XXX_DiscardUnknown()

func (*GcsDestination) XXX_Marshal

func (m *GcsDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GcsDestination) XXX_Merge

func (m *GcsDestination) XXX_Merge(src proto.Message)

func (*GcsDestination) XXX_OneofWrappers

func (*GcsDestination) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*GcsDestination) XXX_Size

func (m *GcsDestination) XXX_Size() int

func (*GcsDestination) XXX_Unmarshal

func (m *GcsDestination) XXX_Unmarshal(b []byte) error

type GcsDestination_Uri

type GcsDestination_Uri struct {
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3,oneof"`
}

type GcsDestination_UriPrefix

type GcsDestination_UriPrefix struct {
	UriPrefix string `protobuf:"bytes,2,opt,name=uri_prefix,json=uriPrefix,proto3,oneof"`
}

type GetFeedRequest

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Get asset feed request.

func (*GetFeedRequest) Descriptor

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

func (*GetFeedRequest) GetName

func (m *GetFeedRequest) GetName() string

func (*GetFeedRequest) ProtoMessage

func (*GetFeedRequest) ProtoMessage()

func (*GetFeedRequest) Reset

func (m *GetFeedRequest) Reset()

func (*GetFeedRequest) String

func (m *GetFeedRequest) String() string

func (*GetFeedRequest) XXX_DiscardUnknown

func (m *GetFeedRequest) XXX_DiscardUnknown()

func (*GetFeedRequest) XXX_Marshal

func (m *GetFeedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetFeedRequest) XXX_Merge

func (m *GetFeedRequest) XXX_Merge(src proto.Message)

func (*GetFeedRequest) XXX_Size

func (m *GetFeedRequest) XXX_Size() int

func (*GetFeedRequest) XXX_Unmarshal

func (m *GetFeedRequest) XXX_Unmarshal(b []byte) error

type ListFeedsRequest

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

List asset feeds request.

func (*ListFeedsRequest) Descriptor

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

func (*ListFeedsRequest) GetParent

func (m *ListFeedsRequest) GetParent() string

func (*ListFeedsRequest) ProtoMessage

func (*ListFeedsRequest) ProtoMessage()

func (*ListFeedsRequest) Reset

func (m *ListFeedsRequest) Reset()

func (*ListFeedsRequest) String

func (m *ListFeedsRequest) String() string

func (*ListFeedsRequest) XXX_DiscardUnknown

func (m *ListFeedsRequest) XXX_DiscardUnknown()

func (*ListFeedsRequest) XXX_Marshal

func (m *ListFeedsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListFeedsRequest) XXX_Merge

func (m *ListFeedsRequest) XXX_Merge(src proto.Message)

func (*ListFeedsRequest) XXX_Size

func (m *ListFeedsRequest) XXX_Size() int

func (*ListFeedsRequest) XXX_Unmarshal

func (m *ListFeedsRequest) XXX_Unmarshal(b []byte) error

type ListFeedsResponse

type ListFeedsResponse struct {
	// A list of feeds.
	Feeds                []*Feed  `protobuf:"bytes,1,rep,name=feeds,proto3" json:"feeds,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListFeedsResponse) Descriptor

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

func (*ListFeedsResponse) GetFeeds

func (m *ListFeedsResponse) GetFeeds() []*Feed

func (*ListFeedsResponse) ProtoMessage

func (*ListFeedsResponse) ProtoMessage()

func (*ListFeedsResponse) Reset

func (m *ListFeedsResponse) Reset()

func (*ListFeedsResponse) String

func (m *ListFeedsResponse) String() string

func (*ListFeedsResponse) XXX_DiscardUnknown

func (m *ListFeedsResponse) XXX_DiscardUnknown()

func (*ListFeedsResponse) XXX_Marshal

func (m *ListFeedsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListFeedsResponse) XXX_Merge

func (m *ListFeedsResponse) XXX_Merge(src proto.Message)

func (*ListFeedsResponse) XXX_Size

func (m *ListFeedsResponse) XXX_Size() int

func (*ListFeedsResponse) XXX_Unmarshal

func (m *ListFeedsResponse) XXX_Unmarshal(b []byte) error

type OutputConfig

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"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

Output configuration for export assets destination.

func (*OutputConfig) Descriptor

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

func (*OutputConfig) GetBigqueryDestination

func (m *OutputConfig) GetBigqueryDestination() *BigQueryDestination

func (*OutputConfig) GetDestination

func (m *OutputConfig) GetDestination() isOutputConfig_Destination

func (*OutputConfig) GetGcsDestination

func (m *OutputConfig) GetGcsDestination() *GcsDestination

func (*OutputConfig) ProtoMessage

func (*OutputConfig) ProtoMessage()

func (*OutputConfig) Reset

func (m *OutputConfig) Reset()

func (*OutputConfig) String

func (m *OutputConfig) String() string

func (*OutputConfig) XXX_DiscardUnknown

func (m *OutputConfig) XXX_DiscardUnknown()

func (*OutputConfig) XXX_Marshal

func (m *OutputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OutputConfig) XXX_Merge

func (m *OutputConfig) XXX_Merge(src proto.Message)

func (*OutputConfig) XXX_OneofWrappers

func (*OutputConfig) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*OutputConfig) XXX_Size

func (m *OutputConfig) XXX_Size() int

func (*OutputConfig) XXX_Unmarshal

func (m *OutputConfig) XXX_Unmarshal(b []byte) error

type OutputConfig_BigqueryDestination

type OutputConfig_BigqueryDestination struct {
	BigqueryDestination *BigQueryDestination `protobuf:"bytes,2,opt,name=bigquery_destination,json=bigqueryDestination,proto3,oneof"`
}

type OutputConfig_GcsDestination

type OutputConfig_GcsDestination struct {
	GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
}

type PubsubDestination

type PubsubDestination struct {
	// The name of the Pub/Sub topic to publish to.
	// For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
	Topic                string   `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A Pub/Sub destination.

func (*PubsubDestination) Descriptor

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

func (*PubsubDestination) GetTopic

func (m *PubsubDestination) GetTopic() string

func (*PubsubDestination) ProtoMessage

func (*PubsubDestination) ProtoMessage()

func (*PubsubDestination) Reset

func (m *PubsubDestination) Reset()

func (*PubsubDestination) String

func (m *PubsubDestination) String() string

func (*PubsubDestination) XXX_DiscardUnknown

func (m *PubsubDestination) XXX_DiscardUnknown()

func (*PubsubDestination) XXX_Marshal

func (m *PubsubDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PubsubDestination) XXX_Merge

func (m *PubsubDestination) XXX_Merge(src proto.Message)

func (*PubsubDestination) XXX_Size

func (m *PubsubDestination) XXX_Size() int

func (*PubsubDestination) XXX_Unmarshal

func (m *PubsubDestination) XXX_Unmarshal(b []byte) error

type Resource

type Resource struct {
	// The API version. For 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.
	// For 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. For 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. For 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
	// [Cloud IAM policy
	// hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
	// For example:
	// "//cloudresourcemanager.googleapis.com/projects/my_project_123"
	//
	// For third-party assets, this field may be set differently.
	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                 *_struct.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

A representation of a Google Cloud resource.

func (*Resource) Descriptor

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

func (*Resource) GetData

func (m *Resource) GetData() *_struct.Struct

func (*Resource) GetDiscoveryDocumentUri

func (m *Resource) GetDiscoveryDocumentUri() string

func (*Resource) GetDiscoveryName

func (m *Resource) GetDiscoveryName() string

func (*Resource) GetParent

func (m *Resource) GetParent() string

func (*Resource) GetResourceUrl

func (m *Resource) GetResourceUrl() string

func (*Resource) GetVersion

func (m *Resource) GetVersion() string

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) Reset

func (m *Resource) Reset()

func (*Resource) String

func (m *Resource) String() string

func (*Resource) XXX_DiscardUnknown

func (m *Resource) XXX_DiscardUnknown()

func (*Resource) XXX_Marshal

func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Resource) XXX_Merge

func (m *Resource) XXX_Merge(src proto.Message)

func (*Resource) XXX_Size

func (m *Resource) XXX_Size() int

func (*Resource) XXX_Unmarshal

func (m *Resource) XXX_Unmarshal(b []byte) error

type 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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)

func (*TemporalAsset) GetAsset

func (m *TemporalAsset) GetAsset() *Asset

func (*TemporalAsset) GetDeleted

func (m *TemporalAsset) GetDeleted() bool

func (*TemporalAsset) GetWindow

func (m *TemporalAsset) GetWindow() *TimeWindow

func (*TemporalAsset) ProtoMessage

func (*TemporalAsset) ProtoMessage()

func (*TemporalAsset) Reset

func (m *TemporalAsset) Reset()

func (*TemporalAsset) String

func (m *TemporalAsset) String() string

func (*TemporalAsset) XXX_DiscardUnknown

func (m *TemporalAsset) XXX_DiscardUnknown()

func (*TemporalAsset) XXX_Marshal

func (m *TemporalAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TemporalAsset) XXX_Merge

func (m *TemporalAsset) XXX_Merge(src proto.Message)

func (*TemporalAsset) XXX_Size

func (m *TemporalAsset) XXX_Size() int

func (*TemporalAsset) XXX_Unmarshal

func (m *TemporalAsset) XXX_Unmarshal(b []byte) error

type TimeWindow

type TimeWindow struct {
	// Start time of the time window (exclusive).
	StartTime *timestamp.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              *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

A time window specified by its "start_time" and "end_time".

func (*TimeWindow) Descriptor

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

func (*TimeWindow) GetEndTime

func (m *TimeWindow) GetEndTime() *timestamp.Timestamp

func (*TimeWindow) GetStartTime

func (m *TimeWindow) GetStartTime() *timestamp.Timestamp

func (*TimeWindow) ProtoMessage

func (*TimeWindow) ProtoMessage()

func (*TimeWindow) Reset

func (m *TimeWindow) Reset()

func (*TimeWindow) String

func (m *TimeWindow) String() string

func (*TimeWindow) XXX_DiscardUnknown

func (m *TimeWindow) XXX_DiscardUnknown()

func (*TimeWindow) XXX_Marshal

func (m *TimeWindow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TimeWindow) XXX_Merge

func (m *TimeWindow) XXX_Merge(src proto.Message)

func (*TimeWindow) XXX_Size

func (m *TimeWindow) XXX_Size() int

func (*TimeWindow) XXX_Unmarshal

func (m *TimeWindow) XXX_Unmarshal(b []byte) error

type UnimplementedAssetServiceServer

type UnimplementedAssetServiceServer struct {
}

UnimplementedAssetServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAssetServiceServer) BatchGetAssetsHistory

func (*UnimplementedAssetServiceServer) CreateFeed

func (*UnimplementedAssetServiceServer) DeleteFeed

func (*UnimplementedAssetServiceServer) ExportAssets

func (*UnimplementedAssetServiceServer) GetFeed

func (*UnimplementedAssetServiceServer) ListFeeds

func (*UnimplementedAssetServiceServer) UpdateFeed

type 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           *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Update asset feed request.

func (*UpdateFeedRequest) Descriptor

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

func (*UpdateFeedRequest) GetFeed

func (m *UpdateFeedRequest) GetFeed() *Feed

func (*UpdateFeedRequest) GetUpdateMask

func (m *UpdateFeedRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateFeedRequest) ProtoMessage

func (*UpdateFeedRequest) ProtoMessage()

func (*UpdateFeedRequest) Reset

func (m *UpdateFeedRequest) Reset()

func (*UpdateFeedRequest) String

func (m *UpdateFeedRequest) String() string

func (*UpdateFeedRequest) XXX_DiscardUnknown

func (m *UpdateFeedRequest) XXX_DiscardUnknown()

func (*UpdateFeedRequest) XXX_Marshal

func (m *UpdateFeedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateFeedRequest) XXX_Merge

func (m *UpdateFeedRequest) XXX_Merge(src proto.Message)

func (*UpdateFeedRequest) XXX_Size

func (m *UpdateFeedRequest) XXX_Size() int

func (*UpdateFeedRequest) XXX_Unmarshal

func (m *UpdateFeedRequest) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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