google-cloud-os_config-v1alpha 0.3.0 → 0.5.0

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.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +12 -7
  4. data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/client.rb +36 -48
  5. data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/operations.rb +15 -14
  6. data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/rest/client.rb +1444 -0
  7. data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/rest/operations.rb +793 -0
  8. data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/rest/service_stub.rb +876 -0
  9. data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/rest.rb +56 -0
  10. data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service.rb +7 -1
  11. data/lib/google/cloud/os_config/v1alpha/rest.rb +37 -0
  12. data/lib/google/cloud/os_config/v1alpha/version.rb +1 -1
  13. data/lib/google/cloud/os_config/v1alpha.rb +8 -1
  14. data/lib/google/cloud/osconfig/v1alpha/config_common_pb.rb +0 -1
  15. data/lib/google/cloud/osconfig/v1alpha/instance_os_policies_compliance_pb.rb +2 -2
  16. data/lib/google/cloud/osconfig/v1alpha/inventory_pb.rb +2 -2
  17. data/lib/google/cloud/osconfig/v1alpha/os_policy_assignment_reports_pb.rb +2 -2
  18. data/lib/google/cloud/osconfig/v1alpha/os_policy_assignments_pb.rb +2 -2
  19. data/lib/google/cloud/osconfig/v1alpha/os_policy_pb.rb +2 -2
  20. data/lib/google/cloud/osconfig/v1alpha/osconfig_common_pb.rb +0 -1
  21. data/lib/google/cloud/osconfig/v1alpha/osconfig_zonal_service_pb.rb +2 -1
  22. data/lib/google/cloud/osconfig/v1alpha/vulnerability_pb.rb +2 -2
  23. data/proto_docs/google/api/client.rb +318 -0
  24. data/proto_docs/google/api/launch_stage.rb +71 -0
  25. data/proto_docs/google/protobuf/any.rb +3 -3
  26. data/proto_docs/google/protobuf/empty.rb +0 -2
  27. data/proto_docs/google/rpc/status.rb +4 -2
  28. metadata +21 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1dab932136f9c5df0eb2edd784b359c2464bf23f363c123b708db0bc17fe3def
4
- data.tar.gz: 5e45c9b0af797fa25fbde8e73d45e42aae34d374573e9b340b3ad48d5cb3bc0b
3
+ metadata.gz: 9c295a20e69bc3d643e6b86d4cffc5e85871bbf626932c545dc45a82a415ba16
4
+ data.tar.gz: c97319603d7c8d9357237a654f69f903d91afb663998d15ec02e553a42e8c578
5
5
  SHA512:
6
- metadata.gz: 7264a5c47ad16a4b44aa471a97649799897bd3150b4ff407709b0daeb0b48ffe24e72dc941d2c5a802ab0c14f2bda4037747ef9302ed7358df59e2949f658811
7
- data.tar.gz: 4078b9a721a4f341fddb2bca8d1ec8f7f7ed2a83971c28027206bd98bf313ff159a96b3919a53ca16098ebc06e6184131094ee3d3a6b973b9c8c1ed3ff0dcbdb
6
+ metadata.gz: fbf3e79aff7aa38556be4d3005434696211fcc7e0b971890f95fa6e62ef881adcddaebe922d69bff6152c049a3473b63e2335cc170b518fc813d5477779c5b8e
7
+ data.tar.gz: 24c92a9f52f63b2f9ec1e52f79f11bb81aee86e57b2a38181fcd5d0c553f53f678aa117b91e7aa670b6fd67e59585a19c2b6992b0283dd31a05b6ddca13f9bdb
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Cloud OS Config V1alpha API
2
2
 
3
- API Client library for the Cloud OS Config V1alpha API
3
+ OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances.
4
4
 
5
5
  Cloud OS Config provides OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances.
6
6
 
@@ -46,7 +46,7 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
50
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -226,14 +226,14 @@ module Google
226
226
  # # Call the create_os_policy_assignment method.
227
227
  # result = client.create_os_policy_assignment request
228
228
  #
229
- # # The returned object is of type Gapic::Operation. You can use this
230
- # # object to check the status of an operation, cancel it, or wait
231
- # # for results. Here is how to block until completion:
229
+ # # The returned object is of type Gapic::Operation. You can use it to
230
+ # # check the status of an operation, cancel it, or wait for results.
231
+ # # Here is how to wait for a response.
232
232
  # result.wait_until_done! timeout: 60
233
233
  # if result.response?
234
234
  # p result.response
235
235
  # else
236
- # puts "Error!"
236
+ # puts "No response received."
237
237
  # end
238
238
  #
239
239
  def create_os_policy_assignment request, options = nil
@@ -329,14 +329,14 @@ module Google
329
329
  # # Call the update_os_policy_assignment method.
330
330
  # result = client.update_os_policy_assignment request
331
331
  #
332
- # # The returned object is of type Gapic::Operation. You can use this
333
- # # object to check the status of an operation, cancel it, or wait
334
- # # for results. Here is how to block until completion:
332
+ # # The returned object is of type Gapic::Operation. You can use it to
333
+ # # check the status of an operation, cancel it, or wait for results.
334
+ # # Here is how to wait for a response.
335
335
  # result.wait_until_done! timeout: 60
336
336
  # if result.response?
337
337
  # p result.response
338
338
  # else
339
- # puts "Error!"
339
+ # puts "No response received."
340
340
  # end
341
341
  #
342
342
  def update_os_policy_assignment request, options = nil
@@ -522,13 +522,11 @@ module Google
522
522
  # # Call the list_os_policy_assignments method.
523
523
  # result = client.list_os_policy_assignments request
524
524
  #
525
- # # The returned object is of type Gapic::PagedEnumerable. You can
526
- # # iterate over all elements by calling #each, and the enumerable
527
- # # will lazily make API calls to fetch subsequent pages. Other
528
- # # methods are also available for managing paging directly.
529
- # result.each do |response|
525
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
526
+ # # over elements, and API calls will be issued to fetch pages as needed.
527
+ # result.each do |item|
530
528
  # # Each element is of type ::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment.
531
- # p response
529
+ # p item
532
530
  # end
533
531
  #
534
532
  def list_os_policy_assignments request, options = nil
@@ -620,13 +618,11 @@ module Google
620
618
  # # Call the list_os_policy_assignment_revisions method.
621
619
  # result = client.list_os_policy_assignment_revisions request
622
620
  #
623
- # # The returned object is of type Gapic::PagedEnumerable. You can
624
- # # iterate over all elements by calling #each, and the enumerable
625
- # # will lazily make API calls to fetch subsequent pages. Other
626
- # # methods are also available for managing paging directly.
627
- # result.each do |response|
621
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
622
+ # # over elements, and API calls will be issued to fetch pages as needed.
623
+ # result.each do |item|
628
624
  # # Each element is of type ::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment.
629
- # p response
625
+ # p item
630
626
  # end
631
627
  #
632
628
  def list_os_policy_assignment_revisions request, options = nil
@@ -723,14 +719,14 @@ module Google
723
719
  # # Call the delete_os_policy_assignment method.
724
720
  # result = client.delete_os_policy_assignment request
725
721
  #
726
- # # The returned object is of type Gapic::Operation. You can use this
727
- # # object to check the status of an operation, cancel it, or wait
728
- # # for results. Here is how to block until completion:
722
+ # # The returned object is of type Gapic::Operation. You can use it to
723
+ # # check the status of an operation, cancel it, or wait for results.
724
+ # # Here is how to wait for a response.
729
725
  # result.wait_until_done! timeout: 60
730
726
  # if result.response?
731
727
  # p result.response
732
728
  # else
733
- # puts "Error!"
729
+ # puts "No response received."
734
730
  # end
735
731
  #
736
732
  def delete_os_policy_assignment request, options = nil
@@ -929,13 +925,11 @@ module Google
929
925
  # # Call the list_instance_os_policies_compliances method.
930
926
  # result = client.list_instance_os_policies_compliances request
931
927
  #
932
- # # The returned object is of type Gapic::PagedEnumerable. You can
933
- # # iterate over all elements by calling #each, and the enumerable
934
- # # will lazily make API calls to fetch subsequent pages. Other
935
- # # methods are also available for managing paging directly.
936
- # result.each do |response|
928
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
929
+ # # over elements, and API calls will be issued to fetch pages as needed.
930
+ # result.each do |item|
937
931
  # # Each element is of type ::Google::Cloud::OsConfig::V1alpha::InstanceOSPoliciesCompliance.
938
- # p response
932
+ # p item
939
933
  # end
940
934
  #
941
935
  def list_instance_os_policies_compliances request, options = nil
@@ -1145,13 +1139,11 @@ module Google
1145
1139
  # # Call the list_os_policy_assignment_reports method.
1146
1140
  # result = client.list_os_policy_assignment_reports request
1147
1141
  #
1148
- # # The returned object is of type Gapic::PagedEnumerable. You can
1149
- # # iterate over all elements by calling #each, and the enumerable
1150
- # # will lazily make API calls to fetch subsequent pages. Other
1151
- # # methods are also available for managing paging directly.
1152
- # result.each do |response|
1142
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1143
+ # # over elements, and API calls will be issued to fetch pages as needed.
1144
+ # result.each do |item|
1153
1145
  # # Each element is of type ::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignmentReport.
1154
- # p response
1146
+ # p item
1155
1147
  # end
1156
1148
  #
1157
1149
  def list_os_policy_assignment_reports request, options = nil
@@ -1349,13 +1341,11 @@ module Google
1349
1341
  # # Call the list_inventories method.
1350
1342
  # result = client.list_inventories request
1351
1343
  #
1352
- # # The returned object is of type Gapic::PagedEnumerable. You can
1353
- # # iterate over all elements by calling #each, and the enumerable
1354
- # # will lazily make API calls to fetch subsequent pages. Other
1355
- # # methods are also available for managing paging directly.
1356
- # result.each do |response|
1344
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1345
+ # # over elements, and API calls will be issued to fetch pages as needed.
1346
+ # result.each do |item|
1357
1347
  # # Each element is of type ::Google::Cloud::OsConfig::V1alpha::Inventory.
1358
- # p response
1348
+ # p item
1359
1349
  # end
1360
1350
  #
1361
1351
  def list_inventories request, options = nil
@@ -1547,13 +1537,11 @@ module Google
1547
1537
  # # Call the list_vulnerability_reports method.
1548
1538
  # result = client.list_vulnerability_reports request
1549
1539
  #
1550
- # # The returned object is of type Gapic::PagedEnumerable. You can
1551
- # # iterate over all elements by calling #each, and the enumerable
1552
- # # will lazily make API calls to fetch subsequent pages. Other
1553
- # # methods are also available for managing paging directly.
1554
- # result.each do |response|
1540
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1541
+ # # over elements, and API calls will be issued to fetch pages as needed.
1542
+ # result.each do |item|
1555
1543
  # # Each element is of type ::Google::Cloud::OsConfig::V1alpha::VulnerabilityReport.
1556
- # p response
1544
+ # p item
1557
1545
  # end
1558
1546
  #
1559
1547
  def list_vulnerability_reports request, options = nil
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -155,13 +158,11 @@ module Google
155
158
  # # Call the list_operations method.
156
159
  # result = client.list_operations request
157
160
  #
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|
161
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
162
+ # # over elements, and API calls will be issued to fetch pages as needed.
163
+ # result.each do |item|
163
164
  # # Each element is of type ::Google::Longrunning::Operation.
164
- # p response
165
+ # p item
165
166
  # end
166
167
  #
167
168
  def list_operations request, options = nil
@@ -250,14 +251,14 @@ module Google
250
251
  # # Call the get_operation method.
251
252
  # result = client.get_operation request
252
253
  #
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:
254
+ # # The returned object is of type Gapic::Operation. You can use it to
255
+ # # check the status of an operation, cancel it, or wait for results.
256
+ # # Here is how to wait for a response.
256
257
  # result.wait_until_done! timeout: 60
257
258
  # if result.response?
258
259
  # p result.response
259
260
  # else
260
- # puts "Error!"
261
+ # puts "No response received."
261
262
  # end
262
263
  #
263
264
  def get_operation request, options = nil
@@ -537,14 +538,14 @@ module Google
537
538
  # # Call the wait_operation method.
538
539
  # result = client.wait_operation request
539
540
  #
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:
541
+ # # The returned object is of type Gapic::Operation. You can use it to
542
+ # # check the status of an operation, cancel it, or wait for results.
543
+ # # Here is how to wait for a response.
543
544
  # result.wait_until_done! timeout: 60
544
545
  # if result.response?
545
546
  # p result.response
546
547
  # else
547
- # puts "Error!"
548
+ # puts "No response received."
548
549
  # end
549
550
  #
550
551
  def wait_operation request, options = nil