You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

249 lines
11 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/securitycenter/v1beta1/asset.proto
  3. package securitycenter // import "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _struct "github.com/golang/protobuf/ptypes/struct"
  8. import timestamp "github.com/golang/protobuf/ptypes/timestamp"
  9. import _ "google.golang.org/genproto/googleapis/api/annotations"
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. // This is a compile-time assertion to ensure that this generated file
  15. // is compatible with the proto package it is being compiled against.
  16. // A compilation error at this line likely means your copy of the
  17. // proto package needs to be updated.
  18. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  19. // Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
  20. // Platform (GCP) resource.
  21. //
  22. // The Asset is a Cloud SCC resource that captures information about a single
  23. // GCP resource. All modifications to an Asset are only within the context of
  24. // Cloud SCC and don't affect the referenced GCP resource.
  25. type Asset struct {
  26. // The relative resource name of this asset. See:
  27. // https://cloud.google.com/apis/design/resource_names#relative_resource_name
  28. // Example:
  29. // "organizations/123/assets/456".
  30. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  31. // Cloud SCC managed properties. These properties are managed by
  32. // Cloud SCC and cannot be modified by the user.
  33. SecurityCenterProperties *Asset_SecurityCenterProperties `protobuf:"bytes,2,opt,name=security_center_properties,json=securityCenterProperties,proto3" json:"security_center_properties,omitempty"`
  34. // Resource managed properties. These properties are managed and defined by
  35. // the GCP resource and cannot be modified by the user.
  36. 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"`
  37. // User specified security marks. These marks are entirely managed by the user
  38. // and come from the SecurityMarks resource that belongs to the asset.
  39. SecurityMarks *SecurityMarks `protobuf:"bytes,8,opt,name=security_marks,json=securityMarks,proto3" json:"security_marks,omitempty"`
  40. // The time at which the asset was created in Cloud SCC.
  41. CreateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
  42. // The time at which the asset was last updated, added, or deleted in Cloud
  43. // SCC.
  44. UpdateTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
  45. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  46. XXX_unrecognized []byte `json:"-"`
  47. XXX_sizecache int32 `json:"-"`
  48. }
  49. func (m *Asset) Reset() { *m = Asset{} }
  50. func (m *Asset) String() string { return proto.CompactTextString(m) }
  51. func (*Asset) ProtoMessage() {}
  52. func (*Asset) Descriptor() ([]byte, []int) {
  53. return fileDescriptor_asset_43df7b06a0eb9ff3, []int{0}
  54. }
  55. func (m *Asset) XXX_Unmarshal(b []byte) error {
  56. return xxx_messageInfo_Asset.Unmarshal(m, b)
  57. }
  58. func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  59. return xxx_messageInfo_Asset.Marshal(b, m, deterministic)
  60. }
  61. func (dst *Asset) XXX_Merge(src proto.Message) {
  62. xxx_messageInfo_Asset.Merge(dst, src)
  63. }
  64. func (m *Asset) XXX_Size() int {
  65. return xxx_messageInfo_Asset.Size(m)
  66. }
  67. func (m *Asset) XXX_DiscardUnknown() {
  68. xxx_messageInfo_Asset.DiscardUnknown(m)
  69. }
  70. var xxx_messageInfo_Asset proto.InternalMessageInfo
  71. func (m *Asset) GetName() string {
  72. if m != nil {
  73. return m.Name
  74. }
  75. return ""
  76. }
  77. func (m *Asset) GetSecurityCenterProperties() *Asset_SecurityCenterProperties {
  78. if m != nil {
  79. return m.SecurityCenterProperties
  80. }
  81. return nil
  82. }
  83. func (m *Asset) GetResourceProperties() map[string]*_struct.Value {
  84. if m != nil {
  85. return m.ResourceProperties
  86. }
  87. return nil
  88. }
  89. func (m *Asset) GetSecurityMarks() *SecurityMarks {
  90. if m != nil {
  91. return m.SecurityMarks
  92. }
  93. return nil
  94. }
  95. func (m *Asset) GetCreateTime() *timestamp.Timestamp {
  96. if m != nil {
  97. return m.CreateTime
  98. }
  99. return nil
  100. }
  101. func (m *Asset) GetUpdateTime() *timestamp.Timestamp {
  102. if m != nil {
  103. return m.UpdateTime
  104. }
  105. return nil
  106. }
  107. // Cloud SCC managed properties. These properties are managed by Cloud SCC and
  108. // cannot be modified by the user.
  109. type Asset_SecurityCenterProperties struct {
  110. // The full resource name of the GCP resource this asset
  111. // represents. This field is immutable after create time. See:
  112. // https://cloud.google.com/apis/design/resource_names#full_resource_name
  113. ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  114. // The type of the GCP resource. Examples include: APPLICATION,
  115. // PROJECT, and ORGANIZATION. This is a case insensitive field defined by
  116. // Cloud SCC and/or the producer of the resource and is immutable
  117. // after create time.
  118. ResourceType string `protobuf:"bytes,2,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
  119. // The full resource name of the immediate parent of the resource. See:
  120. // https://cloud.google.com/apis/design/resource_names#full_resource_name
  121. ResourceParent string `protobuf:"bytes,3,opt,name=resource_parent,json=resourceParent,proto3" json:"resource_parent,omitempty"`
  122. // The full resource name of the project the resource belongs to. See:
  123. // https://cloud.google.com/apis/design/resource_names#full_resource_name
  124. ResourceProject string `protobuf:"bytes,4,opt,name=resource_project,json=resourceProject,proto3" json:"resource_project,omitempty"`
  125. // Owners of the Google Cloud resource.
  126. ResourceOwners []string `protobuf:"bytes,5,rep,name=resource_owners,json=resourceOwners,proto3" json:"resource_owners,omitempty"`
  127. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  128. XXX_unrecognized []byte `json:"-"`
  129. XXX_sizecache int32 `json:"-"`
  130. }
  131. func (m *Asset_SecurityCenterProperties) Reset() { *m = Asset_SecurityCenterProperties{} }
  132. func (m *Asset_SecurityCenterProperties) String() string { return proto.CompactTextString(m) }
  133. func (*Asset_SecurityCenterProperties) ProtoMessage() {}
  134. func (*Asset_SecurityCenterProperties) Descriptor() ([]byte, []int) {
  135. return fileDescriptor_asset_43df7b06a0eb9ff3, []int{0, 0}
  136. }
  137. func (m *Asset_SecurityCenterProperties) XXX_Unmarshal(b []byte) error {
  138. return xxx_messageInfo_Asset_SecurityCenterProperties.Unmarshal(m, b)
  139. }
  140. func (m *Asset_SecurityCenterProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  141. return xxx_messageInfo_Asset_SecurityCenterProperties.Marshal(b, m, deterministic)
  142. }
  143. func (dst *Asset_SecurityCenterProperties) XXX_Merge(src proto.Message) {
  144. xxx_messageInfo_Asset_SecurityCenterProperties.Merge(dst, src)
  145. }
  146. func (m *Asset_SecurityCenterProperties) XXX_Size() int {
  147. return xxx_messageInfo_Asset_SecurityCenterProperties.Size(m)
  148. }
  149. func (m *Asset_SecurityCenterProperties) XXX_DiscardUnknown() {
  150. xxx_messageInfo_Asset_SecurityCenterProperties.DiscardUnknown(m)
  151. }
  152. var xxx_messageInfo_Asset_SecurityCenterProperties proto.InternalMessageInfo
  153. func (m *Asset_SecurityCenterProperties) GetResourceName() string {
  154. if m != nil {
  155. return m.ResourceName
  156. }
  157. return ""
  158. }
  159. func (m *Asset_SecurityCenterProperties) GetResourceType() string {
  160. if m != nil {
  161. return m.ResourceType
  162. }
  163. return ""
  164. }
  165. func (m *Asset_SecurityCenterProperties) GetResourceParent() string {
  166. if m != nil {
  167. return m.ResourceParent
  168. }
  169. return ""
  170. }
  171. func (m *Asset_SecurityCenterProperties) GetResourceProject() string {
  172. if m != nil {
  173. return m.ResourceProject
  174. }
  175. return ""
  176. }
  177. func (m *Asset_SecurityCenterProperties) GetResourceOwners() []string {
  178. if m != nil {
  179. return m.ResourceOwners
  180. }
  181. return nil
  182. }
  183. func init() {
  184. proto.RegisterType((*Asset)(nil), "google.cloud.securitycenter.v1beta1.Asset")
  185. proto.RegisterMapType((map[string]*_struct.Value)(nil), "google.cloud.securitycenter.v1beta1.Asset.ResourcePropertiesEntry")
  186. proto.RegisterType((*Asset_SecurityCenterProperties)(nil), "google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties")
  187. }
  188. func init() {
  189. proto.RegisterFile("google/cloud/securitycenter/v1beta1/asset.proto", fileDescriptor_asset_43df7b06a0eb9ff3)
  190. }
  191. var fileDescriptor_asset_43df7b06a0eb9ff3 = []byte{
  192. // 490 bytes of a gzipped FileDescriptorProto
  193. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x5d, 0x6b, 0xd4, 0x40,
  194. 0x14, 0x25, 0xdd, 0x6e, 0xb5, 0x77, 0xed, 0x07, 0x23, 0xe8, 0x10, 0x04, 0x17, 0xfb, 0xd0, 0x15,
  195. 0x64, 0x42, 0xd7, 0x97, 0x62, 0x9f, 0x6c, 0xf1, 0x51, 0xad, 0xb1, 0x08, 0x0a, 0xb2, 0xcc, 0xa6,
  196. 0xd7, 0x10, 0xbb, 0x99, 0x19, 0x66, 0x26, 0x95, 0xbc, 0x08, 0xfe, 0x1f, 0xff, 0x94, 0xff, 0x44,
  197. 0x66, 0x32, 0x49, 0xb3, 0x96, 0xd5, 0xf5, 0x2d, 0x39, 0xf7, 0x9c, 0x73, 0x73, 0xef, 0xb9, 0xbb,
  198. 0x90, 0xe4, 0x52, 0xe6, 0x0b, 0x4c, 0xb2, 0x85, 0xac, 0x2e, 0x13, 0x83, 0x59, 0xa5, 0x0b, 0x5b,
  199. 0x67, 0x28, 0x2c, 0xea, 0xe4, 0xfa, 0x68, 0x8e, 0x96, 0x1f, 0x25, 0xdc, 0x18, 0xb4, 0x4c, 0x69,
  200. 0x69, 0x25, 0x39, 0x68, 0x04, 0xcc, 0x0b, 0xd8, 0xb2, 0x80, 0x05, 0x41, 0xfc, 0x28, 0xb8, 0x72,
  201. 0x55, 0x24, 0x5c, 0x08, 0x69, 0xb9, 0x2d, 0xa4, 0x30, 0x8d, 0x45, 0x7c, 0xbc, 0x4e, 0xcf, 0x16,
  202. 0x9e, 0x95, 0x5c, 0x5f, 0xb5, 0xca, 0xd6, 0xd7, 0xbf, 0xcd, 0xab, 0x2f, 0x89, 0xb1, 0xba, 0xca,
  203. 0xc2, 0xa7, 0xc5, 0x8f, 0xff, 0xac, 0xda, 0xa2, 0x44, 0x63, 0x79, 0xa9, 0x1a, 0xc2, 0x93, 0x9f,
  204. 0x5b, 0x30, 0x7c, 0xe9, 0x66, 0x21, 0x04, 0x36, 0x05, 0x2f, 0x91, 0x46, 0xe3, 0x68, 0xb2, 0x9d,
  205. 0xfa, 0x67, 0xf2, 0x23, 0x82, 0xb8, 0xeb, 0xda, 0x7c, 0xcd, 0x4c, 0x69, 0xa9, 0x50, 0xdb, 0x02,
  206. 0x0d, 0xdd, 0x18, 0x47, 0x93, 0xd1, 0xf4, 0x8c, 0xad, 0x31, 0x3f, 0xf3, 0x4d, 0xd8, 0xfb, 0x50,
  207. 0x3c, 0xf3, 0xc5, 0xf3, 0xce, 0x2a, 0xa5, 0x66, 0x45, 0x85, 0x18, 0xb8, 0xaf, 0xd1, 0xc8, 0x4a,
  208. 0x67, 0xd8, 0xef, 0x7d, 0x67, 0x3c, 0x98, 0x8c, 0xa6, 0xa7, 0xff, 0xd1, 0x3b, 0x0d, 0x2e, 0x37,
  209. 0xde, 0xaf, 0x84, 0xd5, 0x75, 0x4a, 0xf4, 0xad, 0x02, 0xf9, 0x08, 0xbb, 0xcb, 0xdb, 0xa6, 0x77,
  210. 0xfd, 0xac, 0xd3, 0xb5, 0xfa, 0xb5, 0x53, 0xbe, 0x76, 0xca, 0x74, 0xc7, 0xf4, 0x5f, 0xc9, 0x09,
  211. 0x8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
  222. 0x61, 0xfe, 0xfa, 0x9b, 0x3f, 0x59, 0x86, 0xe7, 0x5b, 0x5e, 0xfd, 0xfc, 0x77, 0x00, 0x00, 0x00,
  223. 0xff, 0xff, 0xd3, 0x05, 0x13, 0x94, 0xa4, 0x04, 0x00, 0x00,
  224. }