google-cloud-asset-v1 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f29a81a5b81ba9a18fdb3445dbc93abb5943acd5d28e9b27bd566c4f74605388
4
- data.tar.gz: 632943db028e6ee69455f7063a017e4297e2e555a677d3ffec2eab38250559a6
3
+ metadata.gz: 98adb2fc4b495b4bca2ad43531660863a86d733fce232f217925c78f9447deb5
4
+ data.tar.gz: 109f49972ba2e2e58a0f47305b6d3407d9e047f0576d1091bb53a0b5d59e6a31
5
5
  SHA512:
6
- metadata.gz: 87e8b83b57a2259b714d839cd5be408a291c894ce3cfd64f0e22982d61ec18aee3fffac59315ae682dc4608ac81a5da394b0ce7510815ab99875f07871b94d5c
7
- data.tar.gz: 3e8de05638b3fbb2ac37185fca93fc4a8d1ea155457e58037038877336e78ca85f52f534ef624578b0a6137c84061d9ff8b5ebd1cf9af3b1d181660ce4286619
6
+ metadata.gz: 8bede6032b4791f915f3c6f02d550ccc07eaa84e877686fe63c7e3f1d0353c510bd095f3cd8b3b4fddb874cb4f06df1ae0b8431864c8c1cde0b490635a847bfc
7
+ data.tar.gz: cb41ea1649363ac87e09cec5df8582a4307327f745b966bf036c8c324a27dd662a70499c2366138d750bfba2336c6f404258697d0eedb596c5bd39c0ebb1b7ea
@@ -94,6 +94,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
94
94
  optional :parent_full_resource_name, :string, 19
95
95
  repeated :versioned_resources, :message, 16, "google.cloud.asset.v1.VersionedResource"
96
96
  repeated :attached_resources, :message, 20, "google.cloud.asset.v1.AttachedResource"
97
+ map :relationships, :string, :message, 21, "google.cloud.asset.v1.RelatedResources"
97
98
  optional :parent_asset_type, :string, 103
98
99
  end
99
100
  add_message "google.cloud.asset.v1.VersionedResource" do
@@ -104,6 +105,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
104
105
  optional :asset_type, :string, 1
105
106
  repeated :versioned_resources, :message, 3, "google.cloud.asset.v1.VersionedResource"
106
107
  end
108
+ add_message "google.cloud.asset.v1.RelatedResources" do
109
+ repeated :related_resources, :message, 1, "google.cloud.asset.v1.RelatedResource"
110
+ end
111
+ add_message "google.cloud.asset.v1.RelatedResource" do
112
+ optional :asset_type, :string, 1
113
+ optional :full_resource_name, :string, 2
114
+ end
107
115
  add_message "google.cloud.asset.v1.IamPolicySearchResult" do
108
116
  optional :resource, :string, 1
109
117
  optional :asset_type, :string, 5
@@ -186,6 +194,8 @@ module Google
186
194
  ResourceSearchResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.ResourceSearchResult").msgclass
187
195
  VersionedResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.VersionedResource").msgclass
188
196
  AttachedResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.AttachedResource").msgclass
197
+ RelatedResources = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.RelatedResources").msgclass
198
+ RelatedResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.RelatedResource").msgclass
189
199
  IamPolicySearchResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.IamPolicySearchResult").msgclass
190
200
  IamPolicySearchResult::Explanation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.IamPolicySearchResult.Explanation").msgclass
191
201
  IamPolicySearchResult::Explanation::Permissions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions").msgclass
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Asset
23
23
  module V1
24
- VERSION = "0.16.0"
24
+ VERSION = "0.17.0"
25
25
  end
26
26
  end
27
27
  end
@@ -3,13 +3,17 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
6
8
  require 'google/protobuf/timestamp_pb'
7
9
  require 'google/type/date_pb'
8
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
11
  add_file("google/cloud/osconfig/v1/inventory.proto", :syntax => :proto3) do
10
12
  add_message "google.cloud.osconfig.v1.Inventory" do
13
+ optional :name, :string, 3
11
14
  optional :os_info, :message, 1, "google.cloud.osconfig.v1.Inventory.OsInfo"
12
15
  map :items, :string, :message, 2, "google.cloud.osconfig.v1.Inventory.Item"
16
+ optional :update_time, :message, 4, "google.protobuf.Timestamp"
13
17
  end
14
18
  add_message "google.cloud.osconfig.v1.Inventory.OsInfo" do
15
19
  optional :hostname, :string, 9
@@ -59,6 +63,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
59
63
  optional :architecture, :string, 2
60
64
  optional :version, :string, 3
61
65
  end
66
+ add_message "google.cloud.osconfig.v1.Inventory.ZypperPatch" do
67
+ optional :patch_name, :string, 5
68
+ optional :category, :string, 2
69
+ optional :severity, :string, 3
70
+ optional :summary, :string, 4
71
+ end
62
72
  add_message "google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage" do
63
73
  optional :title, :string, 1
64
74
  optional :description, :string, 2
@@ -74,12 +84,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
74
84
  optional :id, :string, 1
75
85
  optional :name, :string, 2
76
86
  end
77
- add_message "google.cloud.osconfig.v1.Inventory.ZypperPatch" do
78
- optional :patch_name, :string, 5
79
- optional :category, :string, 2
80
- optional :severity, :string, 3
81
- optional :summary, :string, 4
82
- end
83
87
  add_message "google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage" do
84
88
  optional :caption, :string, 1
85
89
  optional :description, :string, 2
@@ -93,6 +97,26 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
93
97
  optional :install_date, :message, 4, "google.type.Date"
94
98
  optional :help_link, :string, 5
95
99
  end
100
+ add_message "google.cloud.osconfig.v1.GetInventoryRequest" do
101
+ optional :name, :string, 1
102
+ optional :view, :enum, 2, "google.cloud.osconfig.v1.InventoryView"
103
+ end
104
+ add_message "google.cloud.osconfig.v1.ListInventoriesRequest" do
105
+ optional :parent, :string, 1
106
+ optional :view, :enum, 2, "google.cloud.osconfig.v1.InventoryView"
107
+ optional :page_size, :int32, 3
108
+ optional :page_token, :string, 4
109
+ optional :filter, :string, 5
110
+ end
111
+ add_message "google.cloud.osconfig.v1.ListInventoriesResponse" do
112
+ repeated :inventories, :message, 1, "google.cloud.osconfig.v1.Inventory"
113
+ optional :next_page_token, :string, 2
114
+ end
115
+ add_enum "google.cloud.osconfig.v1.InventoryView" do
116
+ value :INVENTORY_VIEW_UNSPECIFIED, 0
117
+ value :BASIC, 1
118
+ value :FULL, 2
119
+ end
96
120
  end
97
121
  end
98
122
 
@@ -107,11 +131,15 @@ module Google
107
131
  Inventory::Item::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.Item.Type").enummodule
108
132
  Inventory::SoftwarePackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.SoftwarePackage").msgclass
109
133
  Inventory::VersionedPackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.VersionedPackage").msgclass
134
+ Inventory::ZypperPatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.ZypperPatch").msgclass
110
135
  Inventory::WindowsUpdatePackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage").msgclass
111
136
  Inventory::WindowsUpdatePackage::WindowsUpdateCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory").msgclass
112
- Inventory::ZypperPatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.ZypperPatch").msgclass
113
137
  Inventory::WindowsQuickFixEngineeringPackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage").msgclass
114
138
  Inventory::WindowsApplication = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.WindowsApplication").msgclass
139
+ GetInventoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.GetInventoryRequest").msgclass
140
+ ListInventoriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListInventoriesRequest").msgclass
141
+ ListInventoriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListInventoriesResponse").msgclass
142
+ InventoryView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.InventoryView").enummodule
115
143
  end
116
144
  end
117
145
  end
@@ -496,6 +496,14 @@ module Google
496
496
  # This `attached_resources` field is not searchable. Some attributes
497
497
  # of the attached resources are exposed in `additional_attributes` field, so
498
498
  # as to allow users to search on them.
499
+ # @!attribute [rw] relationships
500
+ # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Asset::V1::RelatedResources}]
501
+ # A map of related resources of this resource, keyed by the
502
+ # relationship type. A relationship type is in the format of
503
+ # \\{SourceType}_\\{ACTION}_\\{DestType}. Example: `DISK_TO_INSTANCE`,
504
+ # `DISK_TO_NETWORK`, `INSTANCE_TO_INSTANCEGROUP`.
505
+ # See [supported relationship
506
+ # types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#supported_relationship_types).
499
507
  # @!attribute [rw] parent_asset_type
500
508
  # @return [::String]
501
509
  # The type of this resource's immediate parent, if there is one.
@@ -518,6 +526,15 @@ module Google
518
526
  include ::Google::Protobuf::MessageExts
519
527
  extend ::Google::Protobuf::MessageExts::ClassMethods
520
528
  end
529
+
530
+ # @!attribute [rw] key
531
+ # @return [::String]
532
+ # @!attribute [rw] value
533
+ # @return [::Google::Cloud::Asset::V1::RelatedResources]
534
+ class RelationshipsEntry
535
+ include ::Google::Protobuf::MessageExts
536
+ extend ::Google::Protobuf::MessageExts::ClassMethods
537
+ end
521
538
  end
522
539
 
523
540
  # Resource representation as defined by the corresponding service providing the
@@ -570,6 +587,28 @@ module Google
570
587
  extend ::Google::Protobuf::MessageExts::ClassMethods
571
588
  end
572
589
 
590
+ # The related resources of the primary resource.
591
+ # @!attribute [rw] related_resources
592
+ # @return [::Array<::Google::Cloud::Asset::V1::RelatedResource>]
593
+ # The detailed related resources of the primary resource.
594
+ class RelatedResources
595
+ include ::Google::Protobuf::MessageExts
596
+ extend ::Google::Protobuf::MessageExts::ClassMethods
597
+ end
598
+
599
+ # The detailed related resource.
600
+ # @!attribute [rw] asset_type
601
+ # @return [::String]
602
+ # The type of the asset. Example: `compute.googleapis.com/Instance`
603
+ # @!attribute [rw] full_resource_name
604
+ # @return [::String]
605
+ # The full resource name of the related resource. Example:
606
+ # `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
607
+ class RelatedResource
608
+ include ::Google::Protobuf::MessageExts
609
+ extend ::Google::Protobuf::MessageExts::ClassMethods
610
+ end
611
+
573
612
  # A result of IAM Policy search, containing information of an IAM policy.
574
613
  # @!attribute [rw] resource
575
614
  # @return [::String]
@@ -21,7 +21,19 @@ module Google
21
21
  module Cloud
22
22
  module OsConfig
23
23
  module V1
24
- # The inventory details of a VM.
24
+ # This API resource represents the available inventory data for a
25
+ # Compute Engine virtual machine (VM) instance at a given point in time.
26
+ #
27
+ # You can use this API resource to determine the inventory data of your VM.
28
+ #
29
+ # For more information, see [Information provided by OS inventory
30
+ # management](https://cloud.google.com/compute/docs/instances/os-inventory-management#data-collected).
31
+ # @!attribute [r] name
32
+ # @return [::String]
33
+ # Output only. The `Inventory` API resource name.
34
+ #
35
+ # Format:
36
+ # `projects/{project_number}/locations/{location}/instances/{instance_id}/inventory`
25
37
  # @!attribute [rw] os_info
26
38
  # @return [::Google::Cloud::OsConfig::V1::Inventory::OsInfo]
27
39
  # Base level operating system information for the VM.
@@ -31,6 +43,9 @@ module Google
31
43
  # each inventory item. The identifier is unique to each distinct and
32
44
  # addressable inventory item and will change, when there is a new package
33
45
  # version.
46
+ # @!attribute [r] update_time
47
+ # @return [::Google::Protobuf::Timestamp]
48
+ # Output only. Timestamp of the last reported inventory for the VM.
34
49
  class Inventory
35
50
  include ::Google::Protobuf::MessageExts
36
51
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -159,7 +174,7 @@ module Google
159
174
  # Details of a COS package.
160
175
  # @!attribute [rw] windows_application
161
176
  # @return [::Google::Cloud::OsConfig::V1::Inventory::WindowsApplication]
162
- # Details of a Windows Application
177
+ # Details of Windows Application.
163
178
  class SoftwarePackage
164
179
  include ::Google::Protobuf::MessageExts
165
180
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -181,6 +196,24 @@ module Google
181
196
  extend ::Google::Protobuf::MessageExts::ClassMethods
182
197
  end
183
198
 
199
+ # Details related to a Zypper Patch.
200
+ # @!attribute [rw] patch_name
201
+ # @return [::String]
202
+ # The name of the patch.
203
+ # @!attribute [rw] category
204
+ # @return [::String]
205
+ # The category of the patch.
206
+ # @!attribute [rw] severity
207
+ # @return [::String]
208
+ # The severity specified for this patch
209
+ # @!attribute [rw] summary
210
+ # @return [::String]
211
+ # Any summary information provided about this patch.
212
+ class ZypperPatch
213
+ include ::Google::Protobuf::MessageExts
214
+ extend ::Google::Protobuf::MessageExts::ClassMethods
215
+ end
216
+
184
217
  # Details related to a Windows Update package.
185
218
  # Field data and names are taken from Windows Update API IUpdate Interface:
186
219
  # https://docs.microsoft.com/en-us/windows/win32/api/_wua/
@@ -233,24 +266,6 @@ module Google
233
266
  end
234
267
  end
235
268
 
236
- # Details related to a Zypper Patch.
237
- # @!attribute [rw] patch_name
238
- # @return [::String]
239
- # The name of the patch.
240
- # @!attribute [rw] category
241
- # @return [::String]
242
- # The category of the patch.
243
- # @!attribute [rw] severity
244
- # @return [::String]
245
- # The severity specified for this patch
246
- # @!attribute [rw] summary
247
- # @return [::String]
248
- # Any summary information provided about this patch.
249
- class ZypperPatch
250
- include ::Google::Protobuf::MessageExts
251
- extend ::Google::Protobuf::MessageExts::ClassMethods
252
- end
253
-
254
269
  # Information related to a Quick Fix Engineering package.
255
270
  # Fields are taken from Windows QuickFixEngineering Interface and match
256
271
  # the source names:
@@ -309,6 +324,82 @@ module Google
309
324
  extend ::Google::Protobuf::MessageExts::ClassMethods
310
325
  end
311
326
  end
327
+
328
+ # A request message for getting inventory data for the specified VM.
329
+ # @!attribute [rw] name
330
+ # @return [::String]
331
+ # Required. API resource name for inventory resource.
332
+ #
333
+ # Format:
334
+ # `projects/{project}/locations/{location}/instances/{instance}/inventory`
335
+ #
336
+ # For `{project}`, either `project-number` or `project-id` can be provided.
337
+ # For `{instance}`, either Compute Engine `instance-id` or `instance-name`
338
+ # can be provided.
339
+ # @!attribute [rw] view
340
+ # @return [::Google::Cloud::OsConfig::V1::InventoryView]
341
+ # Inventory view indicating what information should be included in the
342
+ # inventory resource. If unspecified, the default view is BASIC.
343
+ class GetInventoryRequest
344
+ include ::Google::Protobuf::MessageExts
345
+ extend ::Google::Protobuf::MessageExts::ClassMethods
346
+ end
347
+
348
+ # A request message for listing inventory data for all VMs in the specified
349
+ # location.
350
+ # @!attribute [rw] parent
351
+ # @return [::String]
352
+ # Required. The parent resource name.
353
+ #
354
+ # Format: `projects/{project}/locations/{location}/instances/-`
355
+ #
356
+ # For `{project}`, either `project-number` or `project-id` can be provided.
357
+ # @!attribute [rw] view
358
+ # @return [::Google::Cloud::OsConfig::V1::InventoryView]
359
+ # Inventory view indicating what information should be included in the
360
+ # inventory resource. If unspecified, the default view is BASIC.
361
+ # @!attribute [rw] page_size
362
+ # @return [::Integer]
363
+ # The maximum number of results to return.
364
+ # @!attribute [rw] page_token
365
+ # @return [::String]
366
+ # A pagination token returned from a previous call to
367
+ # `ListInventories` that indicates where this listing
368
+ # should continue from.
369
+ # @!attribute [rw] filter
370
+ # @return [::String]
371
+ # If provided, this field specifies the criteria that must be met by a
372
+ # `Inventory` API resource to be included in the response.
373
+ class ListInventoriesRequest
374
+ include ::Google::Protobuf::MessageExts
375
+ extend ::Google::Protobuf::MessageExts::ClassMethods
376
+ end
377
+
378
+ # A response message for listing inventory data for all VMs in a specified
379
+ # location.
380
+ # @!attribute [rw] inventories
381
+ # @return [::Array<::Google::Cloud::OsConfig::V1::Inventory>]
382
+ # List of inventory objects.
383
+ # @!attribute [rw] next_page_token
384
+ # @return [::String]
385
+ # The pagination token to retrieve the next page of inventory objects.
386
+ class ListInventoriesResponse
387
+ include ::Google::Protobuf::MessageExts
388
+ extend ::Google::Protobuf::MessageExts::ClassMethods
389
+ end
390
+
391
+ # The view for inventory objects.
392
+ module InventoryView
393
+ # The default value.
394
+ # The API defaults to the BASIC view.
395
+ INVENTORY_VIEW_UNSPECIFIED = 0
396
+
397
+ # Returns the basic inventory information that includes `os_info`.
398
+ BASIC = 1
399
+
400
+ # Returns all fields.
401
+ FULL = 2
402
+ end
312
403
  end
313
404
  end
314
405
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-asset-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-31 00:00:00.000000000 Z
11
+ date: 2021-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common