Documentation ¶
Index ¶
- Variables
- func RegisterAssetServiceServer(s *grpc.Server, srv AssetServiceServer)
- type Asset
- func (*Asset) Descriptor() ([]byte, []int)
- func (m *Asset) GetAncestors() []string
- func (m *Asset) GetAssetType() string
- func (m *Asset) GetIamPolicy() *v1.Policy
- func (m *Asset) GetName() string
- func (m *Asset) GetResource() *Resource
- func (*Asset) ProtoMessage()
- func (m *Asset) Reset()
- func (m *Asset) String() string
- func (m *Asset) XXX_DiscardUnknown()
- func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Asset) XXX_Merge(src proto.Message)
- func (m *Asset) XXX_Size() int
- func (m *Asset) XXX_Unmarshal(b []byte) error
- type AssetServiceClient
- type AssetServiceServer
- type ContentType
- type CreateFeedRequest
- func (*CreateFeedRequest) Descriptor() ([]byte, []int)
- func (m *CreateFeedRequest) GetFeed() *Feed
- func (m *CreateFeedRequest) GetFeedId() string
- func (m *CreateFeedRequest) GetParent() string
- func (*CreateFeedRequest) ProtoMessage()
- func (m *CreateFeedRequest) Reset()
- func (m *CreateFeedRequest) String() string
- func (m *CreateFeedRequest) XXX_DiscardUnknown()
- func (m *CreateFeedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateFeedRequest) XXX_Merge(src proto.Message)
- func (m *CreateFeedRequest) XXX_Size() int
- func (m *CreateFeedRequest) XXX_Unmarshal(b []byte) error
- type DeleteFeedRequest
- func (*DeleteFeedRequest) Descriptor() ([]byte, []int)
- func (m *DeleteFeedRequest) GetName() string
- func (*DeleteFeedRequest) ProtoMessage()
- func (m *DeleteFeedRequest) Reset()
- func (m *DeleteFeedRequest) String() string
- func (m *DeleteFeedRequest) XXX_DiscardUnknown()
- func (m *DeleteFeedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteFeedRequest) XXX_Merge(src proto.Message)
- func (m *DeleteFeedRequest) XXX_Size() int
- func (m *DeleteFeedRequest) XXX_Unmarshal(b []byte) error
- type Feed
- func (*Feed) Descriptor() ([]byte, []int)
- func (m *Feed) GetAssetNames() []string
- func (m *Feed) GetAssetTypes() []string
- func (m *Feed) GetContentType() ContentType
- func (m *Feed) GetFeedOutputConfig() *FeedOutputConfig
- func (m *Feed) GetName() string
- func (*Feed) ProtoMessage()
- func (m *Feed) Reset()
- func (m *Feed) String() string
- func (m *Feed) XXX_DiscardUnknown()
- func (m *Feed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Feed) XXX_Merge(src proto.Message)
- func (m *Feed) XXX_Size() int
- func (m *Feed) XXX_Unmarshal(b []byte) error
- type FeedOutputConfig
- func (*FeedOutputConfig) Descriptor() ([]byte, []int)
- func (m *FeedOutputConfig) GetDestination() isFeedOutputConfig_Destination
- func (m *FeedOutputConfig) GetPubsubDestination() *PubsubDestination
- func (*FeedOutputConfig) ProtoMessage()
- func (m *FeedOutputConfig) Reset()
- func (m *FeedOutputConfig) String() string
- func (m *FeedOutputConfig) XXX_DiscardUnknown()
- func (m *FeedOutputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FeedOutputConfig) XXX_Merge(src proto.Message)
- func (*FeedOutputConfig) XXX_OneofWrappers() []interface{}
- func (m *FeedOutputConfig) XXX_Size() int
- func (m *FeedOutputConfig) XXX_Unmarshal(b []byte) error
- type FeedOutputConfig_PubsubDestination
- type GcsDestination
- func (*GcsDestination) Descriptor() ([]byte, []int)
- func (m *GcsDestination) GetObjectUri() isGcsDestination_ObjectUri
- func (m *GcsDestination) GetUri() string
- func (*GcsDestination) ProtoMessage()
- func (m *GcsDestination) Reset()
- func (m *GcsDestination) String() string
- func (m *GcsDestination) XXX_DiscardUnknown()
- func (m *GcsDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GcsDestination) XXX_Merge(src proto.Message)
- func (*GcsDestination) XXX_OneofWrappers() []interface{}
- func (m *GcsDestination) XXX_Size() int
- func (m *GcsDestination) XXX_Unmarshal(b []byte) error
- type GcsDestination_Uri
- type GetFeedRequest
- func (*GetFeedRequest) Descriptor() ([]byte, []int)
- func (m *GetFeedRequest) GetName() string
- func (*GetFeedRequest) ProtoMessage()
- func (m *GetFeedRequest) Reset()
- func (m *GetFeedRequest) String() string
- func (m *GetFeedRequest) XXX_DiscardUnknown()
- func (m *GetFeedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetFeedRequest) XXX_Merge(src proto.Message)
- func (m *GetFeedRequest) XXX_Size() int
- func (m *GetFeedRequest) XXX_Unmarshal(b []byte) error
- type ListFeedsRequest
- func (*ListFeedsRequest) Descriptor() ([]byte, []int)
- func (m *ListFeedsRequest) GetParent() string
- func (*ListFeedsRequest) ProtoMessage()
- func (m *ListFeedsRequest) Reset()
- func (m *ListFeedsRequest) String() string
- func (m *ListFeedsRequest) XXX_DiscardUnknown()
- func (m *ListFeedsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListFeedsRequest) XXX_Merge(src proto.Message)
- func (m *ListFeedsRequest) XXX_Size() int
- func (m *ListFeedsRequest) XXX_Unmarshal(b []byte) error
- type ListFeedsResponse
- func (*ListFeedsResponse) Descriptor() ([]byte, []int)
- func (m *ListFeedsResponse) GetFeeds() []*Feed
- func (*ListFeedsResponse) ProtoMessage()
- func (m *ListFeedsResponse) Reset()
- func (m *ListFeedsResponse) String() string
- func (m *ListFeedsResponse) XXX_DiscardUnknown()
- func (m *ListFeedsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListFeedsResponse) XXX_Merge(src proto.Message)
- func (m *ListFeedsResponse) XXX_Size() int
- func (m *ListFeedsResponse) XXX_Unmarshal(b []byte) error
- type OutputConfig
- func (*OutputConfig) Descriptor() ([]byte, []int)
- func (m *OutputConfig) GetDestination() isOutputConfig_Destination
- func (m *OutputConfig) GetGcsDestination() *GcsDestination
- func (*OutputConfig) ProtoMessage()
- func (m *OutputConfig) Reset()
- func (m *OutputConfig) String() string
- func (m *OutputConfig) XXX_DiscardUnknown()
- func (m *OutputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OutputConfig) XXX_Merge(src proto.Message)
- func (*OutputConfig) XXX_OneofWrappers() []interface{}
- func (m *OutputConfig) XXX_Size() int
- func (m *OutputConfig) XXX_Unmarshal(b []byte) error
- type OutputConfig_GcsDestination
- type PubsubDestination
- func (*PubsubDestination) Descriptor() ([]byte, []int)
- func (m *PubsubDestination) GetTopic() string
- func (*PubsubDestination) ProtoMessage()
- func (m *PubsubDestination) Reset()
- func (m *PubsubDestination) String() string
- func (m *PubsubDestination) XXX_DiscardUnknown()
- func (m *PubsubDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubsubDestination) XXX_Merge(src proto.Message)
- func (m *PubsubDestination) XXX_Size() int
- func (m *PubsubDestination) XXX_Unmarshal(b []byte) error
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)
- func (m *Resource) GetData() *_struct.Struct
- func (m *Resource) GetDiscoveryDocumentUri() string
- func (m *Resource) GetDiscoveryName() string
- func (m *Resource) GetParent() string
- func (m *Resource) GetResourceUrl() string
- func (m *Resource) GetVersion() string
- func (*Resource) ProtoMessage()
- func (m *Resource) Reset()
- func (m *Resource) String() string
- func (m *Resource) XXX_DiscardUnknown()
- func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Resource) XXX_Merge(src proto.Message)
- func (m *Resource) XXX_Size() int
- func (m *Resource) XXX_Unmarshal(b []byte) error
- type TemporalAsset
- func (*TemporalAsset) Descriptor() ([]byte, []int)
- func (m *TemporalAsset) GetAsset() *Asset
- func (m *TemporalAsset) GetDeleted() bool
- func (m *TemporalAsset) GetWindow() *TimeWindow
- func (*TemporalAsset) ProtoMessage()
- func (m *TemporalAsset) Reset()
- func (m *TemporalAsset) String() string
- func (m *TemporalAsset) XXX_DiscardUnknown()
- func (m *TemporalAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TemporalAsset) XXX_Merge(src proto.Message)
- func (m *TemporalAsset) XXX_Size() int
- func (m *TemporalAsset) XXX_Unmarshal(b []byte) error
- type TimeWindow
- func (*TimeWindow) Descriptor() ([]byte, []int)
- func (m *TimeWindow) GetEndTime() *timestamp.Timestamp
- func (m *TimeWindow) GetStartTime() *timestamp.Timestamp
- func (*TimeWindow) ProtoMessage()
- func (m *TimeWindow) Reset()
- func (m *TimeWindow) String() string
- func (m *TimeWindow) XXX_DiscardUnknown()
- func (m *TimeWindow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TimeWindow) XXX_Merge(src proto.Message)
- func (m *TimeWindow) XXX_Size() int
- func (m *TimeWindow) XXX_Unmarshal(b []byte) error
- type UnimplementedAssetServiceServer
- func (*UnimplementedAssetServiceServer) CreateFeed(ctx context.Context, req *CreateFeedRequest) (*Feed, error)
- func (*UnimplementedAssetServiceServer) DeleteFeed(ctx context.Context, req *DeleteFeedRequest) (*empty.Empty, error)
- func (*UnimplementedAssetServiceServer) GetFeed(ctx context.Context, req *GetFeedRequest) (*Feed, error)
- func (*UnimplementedAssetServiceServer) ListFeeds(ctx context.Context, req *ListFeedsRequest) (*ListFeedsResponse, error)
- func (*UnimplementedAssetServiceServer) UpdateFeed(ctx context.Context, req *UpdateFeedRequest) (*Feed, error)
- type UpdateFeedRequest
- func (*UpdateFeedRequest) Descriptor() ([]byte, []int)
- func (m *UpdateFeedRequest) GetFeed() *Feed
- func (m *UpdateFeedRequest) GetUpdateMask() *field_mask.FieldMask
- func (*UpdateFeedRequest) ProtoMessage()
- func (m *UpdateFeedRequest) Reset()
- func (m *UpdateFeedRequest) String() string
- func (m *UpdateFeedRequest) XXX_DiscardUnknown()
- func (m *UpdateFeedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateFeedRequest) XXX_Merge(src proto.Message)
- func (m *UpdateFeedRequest) XXX_Size() int
- func (m *UpdateFeedRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ContentType_name = map[int32]string{
0: "CONTENT_TYPE_UNSPECIFIED",
1: "RESOURCE",
2: "IAM_POLICY",
}
var ContentType_value = map[string]int32{
"CONTENT_TYPE_UNSPECIFIED": 0,
"RESOURCE": 1,
"IAM_POLICY": 2,
}
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"` // Type of the asset. Example: "compute.googleapis.com/Disk". AssetType string `protobuf:"bytes,2,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"` // Representation of the resource. Resource *Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"` // Representation of the actual Cloud IAM policy set on a cloud resource. For // each resource, there must be at most one Cloud IAM policy set on it. IamPolicy *v1.Policy `protobuf:"bytes,4,opt,name=iam_policy,json=iamPolicy,proto3" json:"iam_policy,omitempty"` // Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, // represented as a list of relative resource names. Ancestry path starts with // the closest CRM ancestor and ends at root. If the asset is a CRM // project/folder/organization, this starts from the asset itself. // // Example: ["projects/123456789", "folders/5432", "organizations/1234"] Ancestors []string `protobuf:"bytes,6,rep,name=ancestors,proto3" json:"ancestors,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Cloud asset. This includes all Google Cloud Platform resources, Cloud IAM policies, and other non-GCP assets.
func (*Asset) Descriptor ¶
func (*Asset) GetAncestors ¶
func (*Asset) GetAssetType ¶
func (*Asset) GetIamPolicy ¶
func (*Asset) GetResource ¶
func (*Asset) ProtoMessage ¶
func (*Asset) ProtoMessage()
func (*Asset) XXX_DiscardUnknown ¶
func (m *Asset) XXX_DiscardUnknown()
func (*Asset) XXX_Marshal ¶
func (*Asset) XXX_Unmarshal ¶
type AssetServiceClient ¶
type AssetServiceClient interface { // 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.
func NewAssetServiceClient ¶
func NewAssetServiceClient(cc grpc.ClientConnInterface) AssetServiceClient
type AssetServiceServer ¶
type AssetServiceServer interface { // 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 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 )
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 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 [Introduction to Cloud Asset // Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/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 and // type will be returned. ContentType ContentType `` /* 141-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: Cloud Pub/Sub topics.
func (*Feed) Descriptor ¶
func (*Feed) GetAssetNames ¶
func (*Feed) GetAssetTypes ¶
func (*Feed) GetContentType ¶
func (m *Feed) GetContentType() ContentType
func (*Feed) GetFeedOutputConfig ¶
func (m *Feed) GetFeedOutputConfig() *FeedOutputConfig
func (*Feed) ProtoMessage ¶
func (*Feed) ProtoMessage()
func (*Feed) XXX_DiscardUnknown ¶
func (m *Feed) XXX_DiscardUnknown()
func (*Feed) XXX_Unmarshal ¶
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 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) 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 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 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) 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_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 Cloud 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 Cloud Pubsub 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. 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"`. // It will be left unspecified for resources without a discovery-based API, // 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". It will be left unspecified for resources (such as // Cloud Bigtable) without a discovery-based API. 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 operation using this // URL returns the resource itself. // Example: // `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`. // It will be left 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 GCP assets, it 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, it is up to the users to define. Parent string `protobuf:"bytes,5,opt,name=parent,proto3" json:"parent,omitempty"` // The content of the resource, in which some sensitive fields are scrubbed // away 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:"-"` }
Representation of a cloud resource.
func (*Resource) Descriptor ¶
func (*Resource) GetDiscoveryDocumentUri ¶
func (*Resource) GetDiscoveryName ¶
func (*Resource) GetResourceUrl ¶
func (*Resource) GetVersion ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) XXX_DiscardUnknown ¶
func (m *Resource) XXX_DiscardUnknown()
func (*Resource) XXX_Marshal ¶
func (*Resource) XXX_Unmarshal ¶
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"` // If the asset is deleted or not. Deleted bool `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"` // Asset. Asset *Asset `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Temporal asset. In addition to the asset, the temporal asset includes the status of the asset and valid from and to time of it.
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). // Current timestamp if not specified. 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 of (start_time, 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) CreateFeed ¶
func (*UnimplementedAssetServiceServer) CreateFeed(ctx context.Context, req *CreateFeedRequest) (*Feed, error)
func (*UnimplementedAssetServiceServer) DeleteFeed ¶
func (*UnimplementedAssetServiceServer) DeleteFeed(ctx context.Context, req *DeleteFeedRequest) (*empty.Empty, error)
func (*UnimplementedAssetServiceServer) GetFeed ¶
func (*UnimplementedAssetServiceServer) GetFeed(ctx context.Context, req *GetFeedRequest) (*Feed, error)
func (*UnimplementedAssetServiceServer) ListFeeds ¶
func (*UnimplementedAssetServiceServer) ListFeeds(ctx context.Context, req *ListFeedsRequest) (*ListFeedsResponse, error)
func (*UnimplementedAssetServiceServer) UpdateFeed ¶
func (*UnimplementedAssetServiceServer) UpdateFeed(ctx context.Context, req *UpdateFeedRequest) (*Feed, error)
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