google-cloud-asset-v1 0.15.0 → 0.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -143,6 +143,27 @@ module Google
143
143
  #
144
144
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
145
145
  #
146
+ # @example Basic example
147
+ # require "google/longrunning"
148
+ #
149
+ # # Create a client object. The client can be reused for multiple calls.
150
+ # client = Google::Longrunning::Operations::Client.new
151
+ #
152
+ # # Create a request. To set request fields, pass in keyword arguments.
153
+ # request = Google::Longrunning::ListOperationsRequest.new
154
+ #
155
+ # # Call the list_operations method.
156
+ # result = client.list_operations request
157
+ #
158
+ # # The returned object is of type Gapic::PagedEnumerable. You can
159
+ # # iterate over all elements by calling #each, and the enumerable
160
+ # # will lazily make API calls to fetch subsequent pages. Other
161
+ # # methods are also available for managing paging directly.
162
+ # result.each do |response|
163
+ # # Each element is of type ::Google::Longrunning::Operation.
164
+ # p response
165
+ # end
166
+ #
146
167
  def list_operations request, options = nil
147
168
  raise ::ArgumentError, "request must be provided" if request.nil?
148
169
 
@@ -160,9 +181,11 @@ module Google
160
181
  gapic_version: ::Google::Cloud::Asset::V1::VERSION
161
182
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
183
 
163
- header_params = {
164
- "name" => request.name
165
- }
184
+ header_params = {}
185
+ if request.name
186
+ header_params["name"] = request.name
187
+ end
188
+
166
189
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
190
  metadata[:"x-goog-request-params"] ||= request_params_header
168
191
 
@@ -215,6 +238,28 @@ module Google
215
238
  #
216
239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
217
240
  #
241
+ # @example Basic example
242
+ # require "google/longrunning"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Longrunning::Operations::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Longrunning::GetOperationRequest.new
249
+ #
250
+ # # Call the get_operation method.
251
+ # result = client.get_operation request
252
+ #
253
+ # # The returned object is of type Gapic::Operation. You can use this
254
+ # # object to check the status of an operation, cancel it, or wait
255
+ # # for results. Here is how to block until completion:
256
+ # result.wait_until_done! timeout: 60
257
+ # if result.response?
258
+ # p result.response
259
+ # else
260
+ # puts "Error!"
261
+ # end
262
+ #
218
263
  def get_operation request, options = nil
219
264
  raise ::ArgumentError, "request must be provided" if request.nil?
220
265
 
@@ -232,9 +277,11 @@ module Google
232
277
  gapic_version: ::Google::Cloud::Asset::V1::VERSION
233
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
279
 
235
- header_params = {
236
- "name" => request.name
237
- }
280
+ header_params = {}
281
+ if request.name
282
+ header_params["name"] = request.name
283
+ end
284
+
238
285
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
239
286
  metadata[:"x-goog-request-params"] ||= request_params_header
240
287
 
@@ -287,6 +334,21 @@ module Google
287
334
  #
288
335
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
289
336
  #
337
+ # @example Basic example
338
+ # require "google/longrunning"
339
+ #
340
+ # # Create a client object. The client can be reused for multiple calls.
341
+ # client = Google::Longrunning::Operations::Client.new
342
+ #
343
+ # # Create a request. To set request fields, pass in keyword arguments.
344
+ # request = Google::Longrunning::DeleteOperationRequest.new
345
+ #
346
+ # # Call the delete_operation method.
347
+ # result = client.delete_operation request
348
+ #
349
+ # # The returned object is of type Google::Protobuf::Empty.
350
+ # p result
351
+ #
290
352
  def delete_operation request, options = nil
291
353
  raise ::ArgumentError, "request must be provided" if request.nil?
292
354
 
@@ -304,9 +366,11 @@ module Google
304
366
  gapic_version: ::Google::Cloud::Asset::V1::VERSION
305
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
368
 
307
- header_params = {
308
- "name" => request.name
309
- }
369
+ header_params = {}
370
+ if request.name
371
+ header_params["name"] = request.name
372
+ end
373
+
310
374
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
311
375
  metadata[:"x-goog-request-params"] ||= request_params_header
312
376
 
@@ -364,6 +428,21 @@ module Google
364
428
  #
365
429
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
366
430
  #
431
+ # @example Basic example
432
+ # require "google/longrunning"
433
+ #
434
+ # # Create a client object. The client can be reused for multiple calls.
435
+ # client = Google::Longrunning::Operations::Client.new
436
+ #
437
+ # # Create a request. To set request fields, pass in keyword arguments.
438
+ # request = Google::Longrunning::CancelOperationRequest.new
439
+ #
440
+ # # Call the cancel_operation method.
441
+ # result = client.cancel_operation request
442
+ #
443
+ # # The returned object is of type Google::Protobuf::Empty.
444
+ # p result
445
+ #
367
446
  def cancel_operation request, options = nil
368
447
  raise ::ArgumentError, "request must be provided" if request.nil?
369
448
 
@@ -381,9 +460,11 @@ module Google
381
460
  gapic_version: ::Google::Cloud::Asset::V1::VERSION
382
461
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
462
 
384
- header_params = {
385
- "name" => request.name
386
- }
463
+ header_params = {}
464
+ if request.name
465
+ header_params["name"] = request.name
466
+ end
467
+
387
468
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
388
469
  metadata[:"x-goog-request-params"] ||= request_params_header
389
470
 
@@ -404,9 +485,9 @@ module Google
404
485
  end
405
486
 
406
487
  ##
407
- # Waits for the specified long-running operation until it is done or reaches
408
- # at most a specified timeout, returning the latest state. If the operation
409
- # is already done, the latest state is immediately returned. If the timeout
488
+ # Waits until the specified long-running operation is done or reaches at most
489
+ # a specified timeout, returning the latest state. If the operation is
490
+ # already done, the latest state is immediately returned. If the timeout
410
491
  # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
411
492
  # timeout is used. If the server does not support this method, it returns
412
493
  # `google.rpc.Code.UNIMPLEMENTED`.
@@ -444,6 +525,28 @@ module Google
444
525
  #
445
526
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
446
527
  #
528
+ # @example Basic example
529
+ # require "google/longrunning"
530
+ #
531
+ # # Create a client object. The client can be reused for multiple calls.
532
+ # client = Google::Longrunning::Operations::Client.new
533
+ #
534
+ # # Create a request. To set request fields, pass in keyword arguments.
535
+ # request = Google::Longrunning::WaitOperationRequest.new
536
+ #
537
+ # # Call the wait_operation method.
538
+ # result = client.wait_operation request
539
+ #
540
+ # # The returned object is of type Gapic::Operation. You can use this
541
+ # # object to check the status of an operation, cancel it, or wait
542
+ # # for results. Here is how to block until completion:
543
+ # result.wait_until_done! timeout: 60
544
+ # if result.response?
545
+ # p result.response
546
+ # else
547
+ # puts "Error!"
548
+ # end
549
+ #
447
550
  def wait_operation request, options = nil
448
551
  raise ::ArgumentError, "request must be provided" if request.nil?
449
552
 
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/asset/v1/asset_service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -16,6 +14,8 @@ require 'google/protobuf/struct_pb'
16
14
  require 'google/protobuf/timestamp_pb'
17
15
  require 'google/rpc/status_pb'
18
16
  require 'google/type/expr_pb'
17
+ require 'google/protobuf'
18
+
19
19
  Google::Protobuf::DescriptorPool.generated_pool.build do
20
20
  add_file("google/cloud/asset/v1/asset_service.proto", :syntax => :proto3) do
21
21
  add_message "google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata" do
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/asset/v1/assets.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/resource_pb'
7
5
  require 'google/cloud/orgpolicy/v1/orgpolicy_pb'
8
6
  require 'google/iam/v1/policy_pb'
@@ -15,6 +13,8 @@ require 'google/protobuf/struct_pb'
15
13
  require 'google/protobuf/timestamp_pb'
16
14
  require 'google/rpc/code_pb'
17
15
  require 'google/api/annotations_pb'
16
+ require 'google/protobuf'
17
+
18
18
  Google::Protobuf::DescriptorPool.generated_pool.build do
19
19
  add_file("google/cloud/asset/v1/assets.proto", :syntax => :proto3) do
20
20
  add_message "google.cloud.asset.v1.TemporalAsset" do
@@ -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.15.0"
24
+ VERSION = "0.17.2"
25
25
  end
26
26
  end
27
27
  end
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/orgpolicy/v1/orgpolicy.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/protobuf/empty_pb'
7
5
  require 'google/protobuf/timestamp_pb'
8
6
  require 'google/api/annotations_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/cloud/orgpolicy/v1/orgpolicy.proto", :syntax => :proto3) do
11
11
  add_message "google.cloud.orgpolicy.v1.Policy" do
@@ -57,9 +57,15 @@ module Google
57
57
 
58
58
  # Denotes that a (repeated) field is an unordered list.
59
59
  # This indicates that the service may provide the elements of the list
60
- # in any arbitrary order, rather than the order the user originally
60
+ # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  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
@@ -157,6 +172,9 @@ module Google
157
172
  # @!attribute [rw] cos_package
158
173
  # @return [::Google::Cloud::OsConfig::V1::Inventory::VersionedPackage]
159
174
  # Details of a COS package.
175
+ # @!attribute [rw] windows_application
176
+ # @return [::Google::Cloud::OsConfig::V1::Inventory::WindowsApplication]
177
+ # Details of Windows Application.
160
178
  class SoftwarePackage
161
179
  include ::Google::Protobuf::MessageExts
162
180
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -178,6 +196,24 @@ module Google
178
196
  extend ::Google::Protobuf::MessageExts::ClassMethods
179
197
  end
180
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
+
181
217
  # Details related to a Windows Update package.
182
218
  # Field data and names are taken from Windows Update API IUpdate Interface:
183
219
  # https://docs.microsoft.com/en-us/windows/win32/api/_wua/
@@ -230,24 +266,6 @@ module Google
230
266
  end
231
267
  end
232
268
 
233
- # Details related to a Zypper Patch.
234
- # @!attribute [rw] patch_name
235
- # @return [::String]
236
- # The name of the patch.
237
- # @!attribute [rw] category
238
- # @return [::String]
239
- # The category of the patch.
240
- # @!attribute [rw] severity
241
- # @return [::String]
242
- # The severity specified for this patch
243
- # @!attribute [rw] summary
244
- # @return [::String]
245
- # Any summary information provided about this patch.
246
- class ZypperPatch
247
- include ::Google::Protobuf::MessageExts
248
- extend ::Google::Protobuf::MessageExts::ClassMethods
249
- end
250
-
251
269
  # Information related to a Quick Fix Engineering package.
252
270
  # Fields are taken from Windows QuickFixEngineering Interface and match
253
271
  # the source names:
@@ -269,6 +287,34 @@ module Google
269
287
  extend ::Google::Protobuf::MessageExts::ClassMethods
270
288
  end
271
289
 
290
+ # Contains information about a Windows application as retrieved from the
291
+ # Windows Registry. For more information about these fields, see
292
+ #
293
+ # [Windows Installer Properties for the Uninstall
294
+ # Registry](https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key){:
295
+ # class="external" }
296
+ # @!attribute [rw] display_name
297
+ # @return [::String]
298
+ # The name of the application or product.
299
+ # @!attribute [rw] display_version
300
+ # @return [::String]
301
+ # The version of the product or application in string format.
302
+ # @!attribute [rw] publisher
303
+ # @return [::String]
304
+ # The name of the manufacturer for the product or application.
305
+ # @!attribute [rw] install_date
306
+ # @return [::Google::Type::Date]
307
+ # The last time this product received service. The value of this property
308
+ # is replaced each time a patch is applied or removed from the product or
309
+ # the command-line option is used to repair the product.
310
+ # @!attribute [rw] help_link
311
+ # @return [::String]
312
+ # The internet address for technical support.
313
+ class WindowsApplication
314
+ include ::Google::Protobuf::MessageExts
315
+ extend ::Google::Protobuf::MessageExts::ClassMethods
316
+ end
317
+
272
318
  # @!attribute [rw] key
273
319
  # @return [::String]
274
320
  # @!attribute [rw] value
@@ -278,6 +324,82 @@ module Google
278
324
  extend ::Google::Protobuf::MessageExts::ClassMethods
279
325
  end
280
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
281
403
  end
282
404
  end
283
405
  end
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Type
22
+ # Represents a whole or partial calendar date, such as a birthday. The time of
23
+ # day and time zone are either specified elsewhere or are insignificant. The
24
+ # date is relative to the Gregorian Calendar. This can represent one of the
25
+ # following:
26
+ #
27
+ # * A full date, with non-zero year, month, and day values
28
+ # * A month and day value, with a zero year, such as an anniversary
29
+ # * A year on its own, with zero month and day values
30
+ # * A year and month value, with a zero day, such as a credit card expiration
31
+ # date
32
+ #
33
+ # Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and
34
+ # `google.protobuf.Timestamp`.
35
+ # @!attribute [rw] year
36
+ # @return [::Integer]
37
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without
38
+ # a year.
39
+ # @!attribute [rw] month
40
+ # @return [::Integer]
41
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a
42
+ # month and day.
43
+ # @!attribute [rw] day
44
+ # @return [::Integer]
45
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
46
+ # to specify a year by itself or a year and month where the day isn't
47
+ # significant.
48
+ class Date
49
+ include ::Google::Protobuf::MessageExts
50
+ extend ::Google::Protobuf::MessageExts::ClassMethods
51
+ end
52
+ end
53
+ end