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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +12 -7
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/client.rb +36 -48
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/operations.rb +15 -14
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/rest/client.rb +1444 -0
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/rest/operations.rb +793 -0
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/rest/service_stub.rb +876 -0
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/rest.rb +56 -0
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service.rb +7 -1
- data/lib/google/cloud/os_config/v1alpha/rest.rb +37 -0
- data/lib/google/cloud/os_config/v1alpha/version.rb +1 -1
- data/lib/google/cloud/os_config/v1alpha.rb +8 -1
- data/lib/google/cloud/osconfig/v1alpha/config_common_pb.rb +0 -1
- data/lib/google/cloud/osconfig/v1alpha/instance_os_policies_compliance_pb.rb +2 -2
- data/lib/google/cloud/osconfig/v1alpha/inventory_pb.rb +2 -2
- data/lib/google/cloud/osconfig/v1alpha/os_policy_assignment_reports_pb.rb +2 -2
- data/lib/google/cloud/osconfig/v1alpha/os_policy_assignments_pb.rb +2 -2
- data/lib/google/cloud/osconfig/v1alpha/os_policy_pb.rb +2 -2
- data/lib/google/cloud/osconfig/v1alpha/osconfig_common_pb.rb +0 -1
- data/lib/google/cloud/osconfig/v1alpha/osconfig_zonal_service_pb.rb +2 -1
- data/lib/google/cloud/osconfig/v1alpha/vulnerability_pb.rb +2 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +21 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c295a20e69bc3d643e6b86d4cffc5e85871bbf626932c545dc45a82a415ba16
|
4
|
+
data.tar.gz: c97319603d7c8d9357237a654f69f903d91afb663998d15ec02e553a42e8c578
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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/
|
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.
|
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.
|
79
|
-
|
80
|
-
|
81
|
-
|
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
|
230
|
-
# #
|
231
|
-
# #
|
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 "
|
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
|
333
|
-
# #
|
334
|
-
# #
|
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 "
|
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
|
-
# #
|
527
|
-
#
|
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
|
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
|
-
# #
|
625
|
-
#
|
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
|
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
|
727
|
-
# #
|
728
|
-
# #
|
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 "
|
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
|
-
# #
|
934
|
-
#
|
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
|
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
|
-
# #
|
1150
|
-
#
|
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
|
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
|
-
# #
|
1354
|
-
#
|
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
|
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
|
-
# #
|
1552
|
-
#
|
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
|
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
|
-
# #
|
160
|
-
#
|
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
|
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
|
254
|
-
# #
|
255
|
-
# #
|
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 "
|
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
|
541
|
-
# #
|
542
|
-
# #
|
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 "
|
548
|
+
# puts "No response received."
|
548
549
|
# end
|
549
550
|
#
|
550
551
|
def wait_operation request, options = nil
|