| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/cloud/securitycenter/v1/asset.proto |
| |
| package securitycenter |
| |
| import ( |
| fmt "fmt" |
| math "math" |
| |
| proto "github.com/golang/protobuf/proto" |
| _struct "github.com/golang/protobuf/ptypes/struct" |
| timestamp "github.com/golang/protobuf/ptypes/timestamp" |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| ) |
| |
| // 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.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud |
| // Platform (GCP) resource. |
| // |
| // The Asset is a Cloud SCC resource that captures information about a single |
| // GCP resource. All modifications to an Asset are only within the context of |
| // Cloud SCC and don't affect the referenced GCP resource. |
| type Asset struct { |
| // The relative resource name of this asset. See: |
| // https://cloud.google.com/apis/design/resource_names#relative_resource_name |
| // Example: |
| // "organizations/{organization_id}/assets/{asset_id}". |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Cloud SCC managed properties. These properties are managed by |
| // Cloud SCC and cannot be modified by the user. |
| SecurityCenterProperties *Asset_SecurityCenterProperties `protobuf:"bytes,2,opt,name=security_center_properties,json=securityCenterProperties,proto3" json:"security_center_properties,omitempty"` |
| // Resource managed properties. These properties are managed and defined by |
| // the GCP resource and cannot be modified by the user. |
| ResourceProperties map[string]*_struct.Value `protobuf:"bytes,7,rep,name=resource_properties,json=resourceProperties,proto3" json:"resource_properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| // User specified security marks. These marks are entirely managed by the user |
| // and come from the SecurityMarks resource that belongs to the asset. |
| SecurityMarks *SecurityMarks `protobuf:"bytes,8,opt,name=security_marks,json=securityMarks,proto3" json:"security_marks,omitempty"` |
| // The time at which the asset was created in Cloud SCC. |
| CreateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` |
| // The time at which the asset was last updated, added, or deleted in Cloud |
| // SCC. |
| UpdateTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` |
| // IAM Policy information associated with the GCP resource described by the |
| // Cloud SCC asset. This information is managed and defined by the GCP |
| // resource and cannot be modified by the user. |
| IamPolicy *Asset_IamPolicy `protobuf:"bytes,11,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_8afac45fcf79e390, []int{0} |
| } |
| |
| 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) GetSecurityCenterProperties() *Asset_SecurityCenterProperties { |
| if m != nil { |
| return m.SecurityCenterProperties |
| } |
| return nil |
| } |
| |
| func (m *Asset) GetResourceProperties() map[string]*_struct.Value { |
| if m != nil { |
| return m.ResourceProperties |
| } |
| return nil |
| } |
| |
| func (m *Asset) GetSecurityMarks() *SecurityMarks { |
| if m != nil { |
| return m.SecurityMarks |
| } |
| return nil |
| } |
| |
| func (m *Asset) GetCreateTime() *timestamp.Timestamp { |
| if m != nil { |
| return m.CreateTime |
| } |
| return nil |
| } |
| |
| func (m *Asset) GetUpdateTime() *timestamp.Timestamp { |
| if m != nil { |
| return m.UpdateTime |
| } |
| return nil |
| } |
| |
| func (m *Asset) GetIamPolicy() *Asset_IamPolicy { |
| if m != nil { |
| return m.IamPolicy |
| } |
| return nil |
| } |
| |
| // Cloud SCC managed properties. These properties are managed by Cloud SCC and |
| // cannot be modified by the user. |
| type Asset_SecurityCenterProperties struct { |
| // The full resource name of the GCP resource this asset |
| // represents. This field is immutable after create time. See: |
| // https://cloud.google.com/apis/design/resource_names#full_resource_name |
| ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` |
| // The type of the GCP resource. Examples include: APPLICATION, |
| // PROJECT, and ORGANIZATION. This is a case insensitive field defined by |
| // Cloud SCC and/or the producer of the resource and is immutable |
| // after create time. |
| ResourceType string `protobuf:"bytes,2,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` |
| // The full resource name of the immediate parent of the resource. See: |
| // https://cloud.google.com/apis/design/resource_names#full_resource_name |
| ResourceParent string `protobuf:"bytes,3,opt,name=resource_parent,json=resourceParent,proto3" json:"resource_parent,omitempty"` |
| // The full resource name of the project the resource belongs to. See: |
| // https://cloud.google.com/apis/design/resource_names#full_resource_name |
| ResourceProject string `protobuf:"bytes,4,opt,name=resource_project,json=resourceProject,proto3" json:"resource_project,omitempty"` |
| // Owners of the Google Cloud resource. |
| ResourceOwners []string `protobuf:"bytes,5,rep,name=resource_owners,json=resourceOwners,proto3" json:"resource_owners,omitempty"` |
| // The user defined display name for this resource. |
| ResourceDisplayName string `protobuf:"bytes,6,opt,name=resource_display_name,json=resourceDisplayName,proto3" json:"resource_display_name,omitempty"` |
| // The user defined display name for the parent of this resource. |
| ResourceParentDisplayName string `protobuf:"bytes,7,opt,name=resource_parent_display_name,json=resourceParentDisplayName,proto3" json:"resource_parent_display_name,omitempty"` |
| // The user defined display name for the project of this resource. |
| ResourceProjectDisplayName string `protobuf:"bytes,8,opt,name=resource_project_display_name,json=resourceProjectDisplayName,proto3" json:"resource_project_display_name,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Asset_SecurityCenterProperties) Reset() { *m = Asset_SecurityCenterProperties{} } |
| func (m *Asset_SecurityCenterProperties) String() string { return proto.CompactTextString(m) } |
| func (*Asset_SecurityCenterProperties) ProtoMessage() {} |
| func (*Asset_SecurityCenterProperties) Descriptor() ([]byte, []int) { |
| return fileDescriptor_8afac45fcf79e390, []int{0, 0} |
| } |
| |
| func (m *Asset_SecurityCenterProperties) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Asset_SecurityCenterProperties.Unmarshal(m, b) |
| } |
| func (m *Asset_SecurityCenterProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Asset_SecurityCenterProperties.Marshal(b, m, deterministic) |
| } |
| func (m *Asset_SecurityCenterProperties) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Asset_SecurityCenterProperties.Merge(m, src) |
| } |
| func (m *Asset_SecurityCenterProperties) XXX_Size() int { |
| return xxx_messageInfo_Asset_SecurityCenterProperties.Size(m) |
| } |
| func (m *Asset_SecurityCenterProperties) XXX_DiscardUnknown() { |
| xxx_messageInfo_Asset_SecurityCenterProperties.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Asset_SecurityCenterProperties proto.InternalMessageInfo |
| |
| func (m *Asset_SecurityCenterProperties) GetResourceName() string { |
| if m != nil { |
| return m.ResourceName |
| } |
| return "" |
| } |
| |
| func (m *Asset_SecurityCenterProperties) GetResourceType() string { |
| if m != nil { |
| return m.ResourceType |
| } |
| return "" |
| } |
| |
| func (m *Asset_SecurityCenterProperties) GetResourceParent() string { |
| if m != nil { |
| return m.ResourceParent |
| } |
| return "" |
| } |
| |
| func (m *Asset_SecurityCenterProperties) GetResourceProject() string { |
| if m != nil { |
| return m.ResourceProject |
| } |
| return "" |
| } |
| |
| func (m *Asset_SecurityCenterProperties) GetResourceOwners() []string { |
| if m != nil { |
| return m.ResourceOwners |
| } |
| return nil |
| } |
| |
| func (m *Asset_SecurityCenterProperties) GetResourceDisplayName() string { |
| if m != nil { |
| return m.ResourceDisplayName |
| } |
| return "" |
| } |
| |
| func (m *Asset_SecurityCenterProperties) GetResourceParentDisplayName() string { |
| if m != nil { |
| return m.ResourceParentDisplayName |
| } |
| return "" |
| } |
| |
| func (m *Asset_SecurityCenterProperties) GetResourceProjectDisplayName() string { |
| if m != nil { |
| return m.ResourceProjectDisplayName |
| } |
| return "" |
| } |
| |
| // IAM Policy information associated with the GCP resource described by the |
| // Cloud SCC asset. This information is managed and defined by the GCP |
| // resource and cannot be modified by the user. |
| type Asset_IamPolicy struct { |
| // The JSON representation of the Policy associated with the asset. |
| // See https://cloud.google.com/iam/reference/rest/v1/Policy for format |
| // details. |
| PolicyBlob string `protobuf:"bytes,1,opt,name=policy_blob,json=policyBlob,proto3" json:"policy_blob,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Asset_IamPolicy) Reset() { *m = Asset_IamPolicy{} } |
| func (m *Asset_IamPolicy) String() string { return proto.CompactTextString(m) } |
| func (*Asset_IamPolicy) ProtoMessage() {} |
| func (*Asset_IamPolicy) Descriptor() ([]byte, []int) { |
| return fileDescriptor_8afac45fcf79e390, []int{0, 1} |
| } |
| |
| func (m *Asset_IamPolicy) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Asset_IamPolicy.Unmarshal(m, b) |
| } |
| func (m *Asset_IamPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Asset_IamPolicy.Marshal(b, m, deterministic) |
| } |
| func (m *Asset_IamPolicy) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Asset_IamPolicy.Merge(m, src) |
| } |
| func (m *Asset_IamPolicy) XXX_Size() int { |
| return xxx_messageInfo_Asset_IamPolicy.Size(m) |
| } |
| func (m *Asset_IamPolicy) XXX_DiscardUnknown() { |
| xxx_messageInfo_Asset_IamPolicy.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Asset_IamPolicy proto.InternalMessageInfo |
| |
| func (m *Asset_IamPolicy) GetPolicyBlob() string { |
| if m != nil { |
| return m.PolicyBlob |
| } |
| return "" |
| } |
| |
| func init() { |
| proto.RegisterType((*Asset)(nil), "google.cloud.securitycenter.v1.Asset") |
| proto.RegisterMapType((map[string]*_struct.Value)(nil), "google.cloud.securitycenter.v1.Asset.ResourcePropertiesEntry") |
| proto.RegisterType((*Asset_SecurityCenterProperties)(nil), "google.cloud.securitycenter.v1.Asset.SecurityCenterProperties") |
| proto.RegisterType((*Asset_IamPolicy)(nil), "google.cloud.securitycenter.v1.Asset.IamPolicy") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/cloud/securitycenter/v1/asset.proto", fileDescriptor_8afac45fcf79e390) |
| } |
| |
| var fileDescriptor_8afac45fcf79e390 = []byte{ |
| // 678 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdd, 0x4e, 0xd4, 0x4c, |
| 0x18, 0x4e, 0x77, 0xf9, 0xdb, 0x77, 0x3f, 0x7e, 0x32, 0x5f, 0xd4, 0xd2, 0x20, 0xac, 0x70, 0x20, |
| 0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