Bumping k8s dependencies to 1.13
This commit is contained in:
664
vendor/google.golang.org/genproto/googleapis/cloud/asset/v1beta1/asset_service.pb.go
generated
vendored
Normal file
664
vendor/google.golang.org/genproto/googleapis/cloud/asset/v1beta1/asset_service.pb.go
generated
vendored
Normal file
@@ -0,0 +1,664 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/asset/v1beta1/asset_service.proto
|
||||
|
||||
package asset
|
||||
|
||||
import (
|
||||
context "context"
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
longrunning "google.golang.org/genproto/googleapis/longrunning"
|
||||
grpc "google.golang.org/grpc"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Asset content type.
|
||||
type ContentType int32
|
||||
|
||||
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
|
||||
)
|
||||
|
||||
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,
|
||||
}
|
||||
|
||||
func (x ContentType) String() string {
|
||||
return proto.EnumName(ContentType_name, int32(x))
|
||||
}
|
||||
|
||||
func (ContentType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_565cfbddaa85b7d6, []int{0}
|
||||
}
|
||||
|
||||
// Export asset request.
|
||||
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").
|
||||
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 in
|
||||
// the past or of the current time. 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:
|
||||
// "google.compute.disk". If specified, only matching assets will be returned.
|
||||
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.v1beta1.ContentType" json:"content_type,omitempty"`
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *ExportAssetsRequest) Reset() { *m = ExportAssetsRequest{} }
|
||||
func (m *ExportAssetsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ExportAssetsRequest) ProtoMessage() {}
|
||||
func (*ExportAssetsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_565cfbddaa85b7d6, []int{0}
|
||||
}
|
||||
|
||||
func (m *ExportAssetsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ExportAssetsRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ExportAssetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ExportAssetsRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ExportAssetsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ExportAssetsRequest.Merge(m, src)
|
||||
}
|
||||
func (m *ExportAssetsRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ExportAssetsRequest.Size(m)
|
||||
}
|
||||
func (m *ExportAssetsRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ExportAssetsRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ExportAssetsRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ExportAssetsRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ExportAssetsRequest) GetReadTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.ReadTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ExportAssetsRequest) GetAssetTypes() []string {
|
||||
if m != nil {
|
||||
return m.AssetTypes
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ExportAssetsRequest) GetContentType() ContentType {
|
||||
if m != nil {
|
||||
return m.ContentType
|
||||
}
|
||||
return ContentType_CONTENT_TYPE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *ExportAssetsRequest) GetOutputConfig() *OutputConfig {
|
||||
if m != nil {
|
||||
return m.OutputConfig
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 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.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *ExportAssetsResponse) Reset() { *m = ExportAssetsResponse{} }
|
||||
func (m *ExportAssetsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ExportAssetsResponse) ProtoMessage() {}
|
||||
func (*ExportAssetsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_565cfbddaa85b7d6, []int{1}
|
||||
}
|
||||
|
||||
func (m *ExportAssetsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ExportAssetsResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ExportAssetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ExportAssetsResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ExportAssetsResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ExportAssetsResponse.Merge(m, src)
|
||||
}
|
||||
func (m *ExportAssetsResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_ExportAssetsResponse.Size(m)
|
||||
}
|
||||
func (m *ExportAssetsResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ExportAssetsResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ExportAssetsResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *ExportAssetsResponse) GetReadTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.ReadTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ExportAssetsResponse) GetOutputConfig() *OutputConfig {
|
||||
if m != nil {
|
||||
return m.OutputConfig
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Batch get assets history request.
|
||||
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)
|
||||
// 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"`
|
||||
// Required. The content type.
|
||||
ContentType ContentType `protobuf:"varint,3,opt,name=content_type,json=contentType,proto3,enum=google.cloud.asset.v1beta1.ContentType" json:"content_type,omitempty"`
|
||||
// Required. The time window for the asset history. The start time is
|
||||
// required. 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:"-"`
|
||||
}
|
||||
|
||||
func (m *BatchGetAssetsHistoryRequest) Reset() { *m = BatchGetAssetsHistoryRequest{} }
|
||||
func (m *BatchGetAssetsHistoryRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*BatchGetAssetsHistoryRequest) ProtoMessage() {}
|
||||
func (*BatchGetAssetsHistoryRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_565cfbddaa85b7d6, []int{2}
|
||||
}
|
||||
|
||||
func (m *BatchGetAssetsHistoryRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_BatchGetAssetsHistoryRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *BatchGetAssetsHistoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_BatchGetAssetsHistoryRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *BatchGetAssetsHistoryRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_BatchGetAssetsHistoryRequest.Merge(m, src)
|
||||
}
|
||||
func (m *BatchGetAssetsHistoryRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_BatchGetAssetsHistoryRequest.Size(m)
|
||||
}
|
||||
func (m *BatchGetAssetsHistoryRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_BatchGetAssetsHistoryRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_BatchGetAssetsHistoryRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *BatchGetAssetsHistoryRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *BatchGetAssetsHistoryRequest) GetAssetNames() []string {
|
||||
if m != nil {
|
||||
return m.AssetNames
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *BatchGetAssetsHistoryRequest) GetContentType() ContentType {
|
||||
if m != nil {
|
||||
return m.ContentType
|
||||
}
|
||||
return ContentType_CONTENT_TYPE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *BatchGetAssetsHistoryRequest) GetReadTimeWindow() *TimeWindow {
|
||||
if m != nil {
|
||||
return m.ReadTimeWindow
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Batch get assets history response.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *BatchGetAssetsHistoryResponse) Reset() { *m = BatchGetAssetsHistoryResponse{} }
|
||||
func (m *BatchGetAssetsHistoryResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*BatchGetAssetsHistoryResponse) ProtoMessage() {}
|
||||
func (*BatchGetAssetsHistoryResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_565cfbddaa85b7d6, []int{3}
|
||||
}
|
||||
|
||||
func (m *BatchGetAssetsHistoryResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_BatchGetAssetsHistoryResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *BatchGetAssetsHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_BatchGetAssetsHistoryResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *BatchGetAssetsHistoryResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_BatchGetAssetsHistoryResponse.Merge(m, src)
|
||||
}
|
||||
func (m *BatchGetAssetsHistoryResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_BatchGetAssetsHistoryResponse.Size(m)
|
||||
}
|
||||
func (m *BatchGetAssetsHistoryResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_BatchGetAssetsHistoryResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_BatchGetAssetsHistoryResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *BatchGetAssetsHistoryResponse) GetAssets() []*TemporalAsset {
|
||||
if m != nil {
|
||||
return m.Assets
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Output configuration for export assets destination.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *OutputConfig) Reset() { *m = OutputConfig{} }
|
||||
func (m *OutputConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*OutputConfig) ProtoMessage() {}
|
||||
func (*OutputConfig) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_565cfbddaa85b7d6, []int{4}
|
||||
}
|
||||
|
||||
func (m *OutputConfig) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_OutputConfig.Unmarshal(m, b)
|
||||
}
|
||||
func (m *OutputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_OutputConfig.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *OutputConfig) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_OutputConfig.Merge(m, src)
|
||||
}
|
||||
func (m *OutputConfig) XXX_Size() int {
|
||||
return xxx_messageInfo_OutputConfig.Size(m)
|
||||
}
|
||||
func (m *OutputConfig) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_OutputConfig.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_OutputConfig proto.InternalMessageInfo
|
||||
|
||||
type isOutputConfig_Destination interface {
|
||||
isOutputConfig_Destination()
|
||||
}
|
||||
|
||||
type OutputConfig_GcsDestination struct {
|
||||
GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*OutputConfig_GcsDestination) isOutputConfig_Destination() {}
|
||||
|
||||
func (m *OutputConfig) GetDestination() isOutputConfig_Destination {
|
||||
if m != nil {
|
||||
return m.Destination
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *OutputConfig) GetGcsDestination() *GcsDestination {
|
||||
if x, ok := m.GetDestination().(*OutputConfig_GcsDestination); ok {
|
||||
return x.GcsDestination
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*OutputConfig) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _OutputConfig_OneofMarshaler, _OutputConfig_OneofUnmarshaler, _OutputConfig_OneofSizer, []interface{}{
|
||||
(*OutputConfig_GcsDestination)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _OutputConfig_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*OutputConfig)
|
||||
// destination
|
||||
switch x := m.Destination.(type) {
|
||||
case *OutputConfig_GcsDestination:
|
||||
b.EncodeVarint(1<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.GcsDestination); err != nil {
|
||||
return err
|
||||
}
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("OutputConfig.Destination has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _OutputConfig_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*OutputConfig)
|
||||
switch tag {
|
||||
case 1: // destination.gcs_destination
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(GcsDestination)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Destination = &OutputConfig_GcsDestination{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _OutputConfig_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*OutputConfig)
|
||||
// destination
|
||||
switch x := m.Destination.(type) {
|
||||
case *OutputConfig_GcsDestination:
|
||||
s := proto.Size(x.GcsDestination)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// A Cloud Storage location.
|
||||
type GcsDestination struct {
|
||||
// The path of the Cloud Storage objects. It's the same path that is used by
|
||||
// gsutil. For example: "gs://bucket_name/object_path". See [Viewing and Editing Object Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
|
||||
// for more information.
|
||||
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GcsDestination) Reset() { *m = GcsDestination{} }
|
||||
func (m *GcsDestination) String() string { return proto.CompactTextString(m) }
|
||||
func (*GcsDestination) ProtoMessage() {}
|
||||
func (*GcsDestination) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_565cfbddaa85b7d6, []int{5}
|
||||
}
|
||||
|
||||
func (m *GcsDestination) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GcsDestination.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GcsDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GcsDestination.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GcsDestination) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GcsDestination.Merge(m, src)
|
||||
}
|
||||
func (m *GcsDestination) XXX_Size() int {
|
||||
return xxx_messageInfo_GcsDestination.Size(m)
|
||||
}
|
||||
func (m *GcsDestination) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GcsDestination.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GcsDestination proto.InternalMessageInfo
|
||||
|
||||
func (m *GcsDestination) GetUri() string {
|
||||
if m != nil {
|
||||
return m.Uri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("google.cloud.asset.v1beta1.ContentType", ContentType_name, ContentType_value)
|
||||
proto.RegisterType((*ExportAssetsRequest)(nil), "google.cloud.asset.v1beta1.ExportAssetsRequest")
|
||||
proto.RegisterType((*ExportAssetsResponse)(nil), "google.cloud.asset.v1beta1.ExportAssetsResponse")
|
||||
proto.RegisterType((*BatchGetAssetsHistoryRequest)(nil), "google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest")
|
||||
proto.RegisterType((*BatchGetAssetsHistoryResponse)(nil), "google.cloud.asset.v1beta1.BatchGetAssetsHistoryResponse")
|
||||
proto.RegisterType((*OutputConfig)(nil), "google.cloud.asset.v1beta1.OutputConfig")
|
||||
proto.RegisterType((*GcsDestination)(nil), "google.cloud.asset.v1beta1.GcsDestination")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/asset/v1beta1/asset_service.proto", fileDescriptor_565cfbddaa85b7d6)
|
||||
}
|
||||
|
||||
var fileDescriptor_565cfbddaa85b7d6 = []byte{
|
||||
// 765 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xcd, 0x4e, 0xdb, 0x4a,
|
||||
0x14, 0xc6, 0xce, 0xbd, 0x08, 0x26, 0x21, 0x37, 0x77, 0xfa, 0x23, 0x2b, 0x82, 0x12, 0xb9, 0x52,
|
||||
0x09, 0x59, 0xd8, 0x22, 0x2c, 0x28, 0x54, 0x55, 0x45, 0x42, 0x0a, 0xa9, 0x4a, 0x12, 0x99, 0x40,
|
||||
0x05, 0x42, 0xb2, 0x1c, 0x67, 0x70, 0x5d, 0x25, 0x33, 0xae, 0x67, 0x0c, 0xa5, 0x55, 0x37, 0xed,
|
||||
0x23, 0x74, 0xdf, 0x45, 0x97, 0x5d, 0xf5, 0x35, 0xda, 0x6d, 0x5f, 0xa0, 0x8b, 0xbe, 0x42, 0xf7,
|
||||
0x95, 0x67, 0x6c, 0x70, 0x44, 0x30, 0x6a, 0xd9, 0xe5, 0xcc, 0x7c, 0xdf, 0x77, 0xe6, 0x7c, 0xe7,
|
||||
0xf8, 0x04, 0x68, 0x0e, 0x21, 0xce, 0x00, 0xe9, 0xf6, 0x80, 0x04, 0x7d, 0xdd, 0xa2, 0x14, 0x31,
|
||||
0xfd, 0x78, 0xa9, 0x87, 0x98, 0xb5, 0x24, 0x22, 0x93, 0x22, 0xff, 0xd8, 0xb5, 0x91, 0xe6, 0xf9,
|
||||
0x84, 0x11, 0x58, 0x14, 0x78, 0x8d, 0xe3, 0x35, 0x8e, 0xd0, 0x22, 0x7c, 0x71, 0x36, 0xd2, 0xb2,
|
||||
0x3c, 0x57, 0xb7, 0x30, 0x26, 0xcc, 0x62, 0x2e, 0xc1, 0x54, 0x30, 0x8b, 0x0b, 0x57, 0x65, 0x8a,
|
||||
0x81, 0x77, 0x23, 0xe0, 0x80, 0x60, 0xc7, 0x0f, 0x30, 0x76, 0xb1, 0xa3, 0x13, 0x0f, 0xf9, 0x23,
|
||||
0x6a, 0xf3, 0x11, 0x88, 0x47, 0xbd, 0xe0, 0x48, 0x67, 0xee, 0x10, 0x51, 0x66, 0x0d, 0x3d, 0x01,
|
||||
0x50, 0x3f, 0xc9, 0xe0, 0x46, 0xe3, 0x95, 0x47, 0x7c, 0xb6, 0xce, 0xc5, 0x0d, 0xf4, 0x32, 0x40,
|
||||
0x94, 0xc1, 0xdb, 0x60,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10, 0xf2, 0x2d,
|
||||
0xbe, 0x3c, 0xe4, 0x97, 0x87, 0xfc, 0xf2, 0x70, 0x4f, 0xf0, 0x7b, 0x93, 0x3c, 0xcb, 0xf2, 0xef,
|
||||
0x00, 0x00, 0x00, 0xff, 0xff, 0x53, 0x7f, 0x18, 0x6f, 0x7e, 0x07, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConn
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// 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 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.
|
||||
BatchGetAssetsHistory(ctx context.Context, in *BatchGetAssetsHistoryRequest, opts ...grpc.CallOption) (*BatchGetAssetsHistoryResponse, error)
|
||||
}
|
||||
|
||||
type assetServiceClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewAssetServiceClient(cc *grpc.ClientConn) AssetServiceClient {
|
||||
return &assetServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *assetServiceClient) ExportAssets(ctx context.Context, in *ExportAssetsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
|
||||
out := new(longrunning.Operation)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.asset.v1beta1.AssetService/ExportAssets", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *assetServiceClient) BatchGetAssetsHistory(ctx context.Context, in *BatchGetAssetsHistoryRequest, opts ...grpc.CallOption) (*BatchGetAssetsHistoryResponse, error) {
|
||||
out := new(BatchGetAssetsHistoryResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.asset.v1beta1.AssetService/BatchGetAssetsHistory", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// AssetServiceServer is the server API for AssetService service.
|
||||
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.
|
||||
BatchGetAssetsHistory(context.Context, *BatchGetAssetsHistoryRequest) (*BatchGetAssetsHistoryResponse, error)
|
||||
}
|
||||
|
||||
func RegisterAssetServiceServer(s *grpc.Server, srv AssetServiceServer) {
|
||||
s.RegisterService(&_AssetService_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _AssetService_ExportAssets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ExportAssetsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AssetServiceServer).ExportAssets(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.asset.v1beta1.AssetService/ExportAssets",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AssetServiceServer).ExportAssets(ctx, req.(*ExportAssetsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AssetService_BatchGetAssetsHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(BatchGetAssetsHistoryRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AssetServiceServer).BatchGetAssetsHistory(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.asset.v1beta1.AssetService/BatchGetAssetsHistory",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AssetServiceServer).BatchGetAssetsHistory(ctx, req.(*BatchGetAssetsHistoryRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _AssetService_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.cloud.asset.v1beta1.AssetService",
|
||||
HandlerType: (*AssetServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "ExportAssets",
|
||||
Handler: _AssetService_ExportAssets_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "BatchGetAssetsHistory",
|
||||
Handler: _AssetService_BatchGetAssetsHistory_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/cloud/asset/v1beta1/asset_service.proto",
|
||||
}
|
||||
364
vendor/google.golang.org/genproto/googleapis/cloud/asset/v1beta1/assets.pb.go
generated
vendored
Normal file
364
vendor/google.golang.org/genproto/googleapis/cloud/asset/v1beta1/assets.pb.go
generated
vendored
Normal file
@@ -0,0 +1,364 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/asset/v1beta1/assets.proto
|
||||
|
||||
package asset
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
_ "github.com/golang/protobuf/ptypes/any"
|
||||
_struct "github.com/golang/protobuf/ptypes/struct"
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
v1 "google.golang.org/genproto/googleapis/iam/v1"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Temporal asset. In addition to the asset, the temporal asset includes the
|
||||
// status of the asset and valid from and to time of it.
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
func (m *TemporalAsset) Reset() { *m = TemporalAsset{} }
|
||||
func (m *TemporalAsset) String() string { return proto.CompactTextString(m) }
|
||||
func (*TemporalAsset) ProtoMessage() {}
|
||||
func (*TemporalAsset) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2e0a79b6d8a101c1, []int{0}
|
||||
}
|
||||
|
||||
func (m *TemporalAsset) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TemporalAsset.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TemporalAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TemporalAsset.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *TemporalAsset) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TemporalAsset.Merge(m, src)
|
||||
}
|
||||
func (m *TemporalAsset) XXX_Size() int {
|
||||
return xxx_messageInfo_TemporalAsset.Size(m)
|
||||
}
|
||||
func (m *TemporalAsset) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TemporalAsset.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TemporalAsset proto.InternalMessageInfo
|
||||
|
||||
func (m *TemporalAsset) GetWindow() *TimeWindow {
|
||||
if m != nil {
|
||||
return m.Window
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TemporalAsset) GetDeleted() bool {
|
||||
if m != nil {
|
||||
return m.Deleted
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *TemporalAsset) GetAsset() *Asset {
|
||||
if m != nil {
|
||||
return m.Asset
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A time window of [start_time, end_time).
|
||||
type TimeWindow struct {
|
||||
// Start time of the time window (inclusive).
|
||||
StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
|
||||
// End time of the time window (exclusive).
|
||||
// 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:"-"`
|
||||
}
|
||||
|
||||
func (m *TimeWindow) Reset() { *m = TimeWindow{} }
|
||||
func (m *TimeWindow) String() string { return proto.CompactTextString(m) }
|
||||
func (*TimeWindow) ProtoMessage() {}
|
||||
func (*TimeWindow) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2e0a79b6d8a101c1, []int{1}
|
||||
}
|
||||
|
||||
func (m *TimeWindow) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TimeWindow.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TimeWindow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TimeWindow.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *TimeWindow) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TimeWindow.Merge(m, src)
|
||||
}
|
||||
func (m *TimeWindow) XXX_Size() int {
|
||||
return xxx_messageInfo_TimeWindow.Size(m)
|
||||
}
|
||||
func (m *TimeWindow) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TimeWindow.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TimeWindow proto.InternalMessageInfo
|
||||
|
||||
func (m *TimeWindow) GetStartTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.StartTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TimeWindow) GetEndTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.EndTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Cloud asset. This includes all Google Cloud Platform resources,
|
||||
// Cloud IAM policies, and other non-GCP assets.
|
||||
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: "google.compute.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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Asset) Reset() { *m = Asset{} }
|
||||
func (m *Asset) String() string { return proto.CompactTextString(m) }
|
||||
func (*Asset) ProtoMessage() {}
|
||||
func (*Asset) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2e0a79b6d8a101c1, []int{2}
|
||||
}
|
||||
|
||||
func (m *Asset) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Asset.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Asset.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Asset) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Asset.Merge(m, src)
|
||||
}
|
||||
func (m *Asset) XXX_Size() int {
|
||||
return xxx_messageInfo_Asset.Size(m)
|
||||
}
|
||||
func (m *Asset) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Asset.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Asset proto.InternalMessageInfo
|
||||
|
||||
func (m *Asset) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Asset) GetAssetType() string {
|
||||
if m != nil {
|
||||
return m.AssetType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Asset) GetResource() *Resource {
|
||||
if m != nil {
|
||||
return m.Resource
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Asset) GetIamPolicy() *v1.Policy {
|
||||
if m != nil {
|
||||
return m.IamPolicy
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Representation of a cloud 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:"-"`
|
||||
}
|
||||
|
||||
func (m *Resource) Reset() { *m = Resource{} }
|
||||
func (m *Resource) String() string { return proto.CompactTextString(m) }
|
||||
func (*Resource) ProtoMessage() {}
|
||||
func (*Resource) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2e0a79b6d8a101c1, []int{3}
|
||||
}
|
||||
|
||||
func (m *Resource) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Resource.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Resource.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Resource) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Resource.Merge(m, src)
|
||||
}
|
||||
func (m *Resource) XXX_Size() int {
|
||||
return xxx_messageInfo_Resource.Size(m)
|
||||
}
|
||||
func (m *Resource) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Resource.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Resource proto.InternalMessageInfo
|
||||
|
||||
func (m *Resource) GetVersion() string {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Resource) GetDiscoveryDocumentUri() string {
|
||||
if m != nil {
|
||||
return m.DiscoveryDocumentUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Resource) GetDiscoveryName() string {
|
||||
if m != nil {
|
||||
return m.DiscoveryName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Resource) GetResourceUrl() string {
|
||||
if m != nil {
|
||||
return m.ResourceUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Resource) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Resource) GetData() *_struct.Struct {
|
||||
if m != nil {
|
||||
return m.Data
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*TemporalAsset)(nil), "google.cloud.asset.v1beta1.TemporalAsset")
|
||||
proto.RegisterType((*TimeWindow)(nil), "google.cloud.asset.v1beta1.TimeWindow")
|
||||
proto.RegisterType((*Asset)(nil), "google.cloud.asset.v1beta1.Asset")
|
||||
proto.RegisterType((*Resource)(nil), "google.cloud.asset.v1beta1.Resource")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/asset/v1beta1/assets.proto", fileDescriptor_2e0a79b6d8a101c1)
|
||||
}
|
||||
|
||||
var fileDescriptor_2e0a79b6d8a101c1 = []byte{
|
||||
// 551 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0xdb, 0x6a, 0xd4, 0x40,
|
||||
0x18, 0x26, 0xed, 0xee, 0x76, 0xf3, 0xd7, 0x7a, 0x31, 0x68, 0x8d, 0x4b, 0xd5, 0x76, 0xf1, 0x50,
|
||||
0x10, 0x12, 0x56, 0x2b, 0x22, 0x82, 0x87, 0x55, 0xf0, 0x4e, 0x96, 0x71, 0x5b, 0x41, 0x16, 0xc2,
|
||||
0x6c, 0x32, 0x86, 0x81, 0x64, 0x26, 0x4c, 0x26, 0x29, 0x7b, 0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2, 0x14, 0xfa, 0xe8, 0x0e, 0xb6, 0x31, 0xf8, 0x68, 0x53,
|
||||
0x30, 0xce, 0x42, 0xad, 0x7e, 0xfc, 0x05, 0xe0, 0x62, 0x23, 0xf2, 0x0c, 0xa0, 0x32, 0x4c, 0x9b,
|
||||
0xb8, 0xed, 0xe2, 0x86, 0x1c, 0x75, 0x59, 0x5d, 0x51, 0x9c, 0x0c, 0x8b, 0x52, 0x1f, 0xd5, 0x2d,
|
||||
0x26, 0x4f, 0x60, 0xc8, 0x65, 0x6a, 0x8d, 0x5b, 0xff, 0x35, 0xee, 0x70, 0x99, 0xb6, 0x68, 0xfc,
|
||||
0xc3, 0x83, 0xbe, 0x3d, 0x1c, 0x02, 0x3d, 0xc9, 0xdc, 0xae, 0x3e, 0xc5, 0x6f, 0x72, 0x0b, 0x00,
|
||||
0xc7, 0x8c, 0xcd, 0xaa, 0xb4, 0xb1, 0x3e, 0xf5, 0x71, 0x65, 0xbe, 0x2a, 0x39, 0x79, 0x05, 0x43,
|
||||
0xcd, 0x2b, 0x55, 0xeb, 0x84, 0xbb, 0xe2, 0x77, 0x37, 0x15, 0xa7, 0x4e, 0x4b, 0xd7, 0x2e, 0x72,
|
||||
0x02, 0x20, 0x58, 0x11, 0xdb, 0x17, 0x11, 0xf4, 0x30, 0xe3, 0x7a, 0x97, 0x21, 0x58, 0x11, 0x36,
|
||||
0x93, 0x70, 0x86, 0x24, 0xf5, 0x05, 0x2b, 0xec, 0xe7, 0xf8, 0x97, 0x07, 0xc3, 0x2e, 0xac, 0xbd,
|
||||
0x94, 0x86, 0xeb, 0x4a, 0x28, 0xe9, 0x46, 0xef, 0x20, 0x39, 0x81, 0xfd, 0x54, 0x54, 0x89, 0x6a,
|
||||
0xb8, 0x5e, 0xc5, 0xa9, 0x4a, 0xea, 0x82, 0x4b, 0x13, 0xd7, 0x5a, 0xb8, 0x26, 0xd7, 0xd6, 0xec,
|
||||
0x5b, 0x47, 0x9e, 0x6a, 0x41, 0xee, 0xc1, 0xd5, 0x0b, 0x17, 0x9e, 0xc8, 0x36, 0xaa, 0xf7, 0xd6,
|
||||
0xab, 0xef, 0xdb, 0xa3, 0x39, 0x82, 0x2b, 0x5d, 0x8b, 0xb8, 0xd6, 0x39, 0xce, 0xee, 0xd3, 0xdd,
|
||||
0x6e, 0xed, 0x54, 0xe7, 0x64, 0x1f, 0x06, 0x25, 0xd3, 0x5c, 0x9a, 0xa0, 0x8f, 0xa4, 0x43, 0xe4,
|
||||
0x21, 0xf4, 0x52, 0x66, 0x58, 0x30, 0xc0, 0xba, 0x37, 0xfe, 0xb8, 0xa6, 0x0f, 0xf8, 0xcc, 0x29,
|
||||
0x8a, 0xa6, 0xdf, 0x3c, 0xb8, 0x9d, 0xa8, 0x62, 0xc3, 0xb9, 0x4e, 0x01, 0x2f, 0x70, 0xd6, 0xda,
|
||||
0x67, 0xde, 0xa7, 0x97, 0x4e, 0x99, 0xa9, 0x9c, 0xc9, 0x2c, 0x54, 0x3a, 0x8b, 0x32, 0x2e, 0x31,
|
||||
0x3c, 0xb2, 0x14, 0x2b, 0x45, 0xf5, 0xb7, 0xdf, 0xfd, 0x39, 0xa2, 0xef, 0x5b, 0xa3, 0x77, 0x36,
|
||||
0xe1, 0x0d, 0xee, 0x85, 0xe1, 0xe1, 0xd9, 0x64, 0xda, 0x4a, 0x7e, 0x76, 0xe4, 0x02, 0xc9, 0x05,
|
||||
0x92, 0x8b, 0x33, 0xeb, 0x5f, 0x0e, 0x70, 0x97, 0xc7, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x07,
|
||||
0x7f, 0x2e, 0x7b, 0x53, 0x04, 0x00, 0x00,
|
||||
}
|
||||
Reference in New Issue
Block a user