google-cloud-os_config-v1 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/os_config/v1/os_config_service/client.rb +6 -4
  4. data/lib/google/cloud/os_config/v1/os_config_service/rest/client.rb +6 -4
  5. data/lib/google/cloud/os_config/v1/os_config_service/rest/service_stub.rb +12 -12
  6. data/lib/google/cloud/os_config/v1/os_config_zonal_service/client.rb +6 -4
  7. data/lib/google/cloud/os_config/v1/os_config_zonal_service/operations.rb +5 -3
  8. data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest/client.rb +6 -4
  9. data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest/operations.rb +9 -7
  10. data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest/service_stub.rb +12 -12
  11. data/lib/google/cloud/os_config/v1/version.rb +1 -1
  12. data/lib/google/cloud/osconfig/v1/inventory_pb.rb +26 -109
  13. data/lib/google/cloud/osconfig/v1/os_policy_assignment_reports_pb.rb +25 -61
  14. data/lib/google/cloud/osconfig/v1/os_policy_assignments_pb.rb +29 -93
  15. data/lib/google/cloud/osconfig/v1/os_policy_pb.rb +24 -158
  16. data/lib/google/cloud/osconfig/v1/osconfig_common_pb.rb +24 -7
  17. data/lib/google/cloud/osconfig/v1/osconfig_service_pb.rb +25 -2
  18. data/lib/google/cloud/osconfig/v1/osconfig_zonal_service_pb.rb +25 -2
  19. data/lib/google/cloud/osconfig/v1/patch_deployments_pb.rb +30 -88
  20. data/lib/google/cloud/osconfig/v1/patch_jobs_pb.rb +27 -209
  21. data/lib/google/cloud/osconfig/v1/vulnerability_pb.rb +25 -92
  22. data/proto_docs/google/api/client.rb +67 -4
  23. data/proto_docs/google/protobuf/any.rb +7 -4
  24. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  25. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9afe499fe8391116d334232b83af7b982c695f0875c49402b604907a6a5f01f2
4
- data.tar.gz: 647d10b6a59fb778e9bb060b19e148aa64716108123bb18ebce4015cb035cc23
3
+ metadata.gz: 225aed013ae0f215d256ad32a39a6d2e206b6d1bebb3f83dca5a606422bd8ae8
4
+ data.tar.gz: 181bbd650bb8b779b186e7e24607a55a2a87c289d849c71e94043cded1f50c08
5
5
  SHA512:
6
- metadata.gz: 1c9e1181ed87020efd253d2eadeca515847f24fc05d989407b2a61d5adc0f3586b2fd4124044ed75a097038c7772c691413fa95cf76cd95753bc944c3752e40c
7
- data.tar.gz: 30c44abc16663db2da447deb8d92078817ff6fc4fd38602ece15580e661d6e8e94b891861ee65e8f2c8c4104b471e07bbb8e27fded78bca0ecfd5dad7b098eda
6
+ metadata.gz: 9b7bbc5c74fcc8209fe404e8f3df9a9419fea97ab7c6c953dd9f2fe464417f4b3f8dd9737ea1bb5c2e90e5126cc5866271fc828849850c1bc75dde31f8f6686f
7
+ data.tar.gz: 36dccc76c76f08142bce862f9bf1fc2e719944fe70d709e6b6fc8c92a5c80c8390bcbc758dfbd2dd8f41a9a1224c1d4eb37921a828b5b326d8721b380379b009
data/README.md CHANGED
@@ -47,7 +47,7 @@ for general usage information.
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
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
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/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.
53
53
 
@@ -131,7 +131,7 @@ module Google
131
131
  credentials = @config.credentials
132
132
  # Use self-signed JWT if the endpoint is unchanged from default,
133
133
  # but only if the default endpoint does not have a region prefix.
134
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
134
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
135
135
  !@config.endpoint.split(".").first.include?("-")
136
136
  credentials ||= Credentials.default scope: @config.scope,
137
137
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1292,9 +1292,9 @@ module Google
1292
1292
  # * (`String`) The path to a service account key file in JSON format
1293
1293
  # * (`Hash`) A service account key as a Hash
1294
1294
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1295
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1295
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1296
1296
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1297
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1297
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1298
1298
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1299
1299
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1300
1300
  # * (`nil`) indicating no credentials
@@ -1336,7 +1336,9 @@ module Google
1336
1336
  class Configuration
1337
1337
  extend ::Gapic::Config
1338
1338
 
1339
- config_attr :endpoint, "osconfig.googleapis.com", ::String
1339
+ DEFAULT_ENDPOINT = "osconfig.googleapis.com"
1340
+
1341
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1340
1342
  config_attr :credentials, nil do |value|
1341
1343
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1342
1344
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -127,7 +127,7 @@ module Google
127
127
  credentials = @config.credentials
128
128
  # Use self-signed JWT if the endpoint is unchanged from default,
129
129
  # but only if the default endpoint does not have a region prefix.
130
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
130
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
131
131
  !@config.endpoint.split(".").first.include?("-")
132
132
  credentials ||= Credentials.default scope: @config.scope,
133
133
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -995,9 +995,9 @@ module Google
995
995
  # * (`String`) The path to a service account key file in JSON format
996
996
  # * (`Hash`) A service account key as a Hash
997
997
  # * (`Google::Auth::Credentials`) A googleauth credentials object
998
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
998
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
999
999
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1000
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1000
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1001
1001
  # * (`nil`) indicating no credentials
1002
1002
  # @return [::Object]
1003
1003
  # @!attribute [rw] scope
@@ -1030,7 +1030,9 @@ module Google
1030
1030
  class Configuration
1031
1031
  extend ::Gapic::Config
1032
1032
 
1033
- config_attr :endpoint, "osconfig.googleapis.com", ::String
1033
+ DEFAULT_ENDPOINT = "osconfig.googleapis.com"
1034
+
1035
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1034
1036
  config_attr :credentials, nil do |value|
1035
1037
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1036
1038
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_execute_patch_job_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_patch_job_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_cancel_patch_job_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_list_patch_jobs_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_list_patch_job_instance_details_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_create_patch_deployment_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_get_patch_deployment_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_list_patch_deployments_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -363,7 +363,7 @@ module Google
363
363
 
364
364
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_patch_deployment_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -401,7 +401,7 @@ module Google
401
401
 
402
402
  verb, uri, query_string_params, body = ServiceStub.transcode_update_patch_deployment_request request_pb
403
403
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
404
+ query_string_params.to_h { |p| p.split "=", 2 }
405
405
  else
406
406
  {}
407
407
  end
@@ -439,7 +439,7 @@ module Google
439
439
 
440
440
  verb, uri, query_string_params, body = ServiceStub.transcode_pause_patch_deployment_request request_pb
441
441
  query_string_params = if query_string_params.any?
442
- query_string_params.to_h { |p| p.split("=", 2) }
442
+ query_string_params.to_h { |p| p.split "=", 2 }
443
443
  else
444
444
  {}
445
445
  end
@@ -477,7 +477,7 @@ module Google
477
477
 
478
478
  verb, uri, query_string_params, body = ServiceStub.transcode_resume_patch_deployment_request request_pb
479
479
  query_string_params = if query_string_params.any?
480
- query_string_params.to_h { |p| p.split("=", 2) }
480
+ query_string_params.to_h { |p| p.split "=", 2 }
481
481
  else
482
482
  {}
483
483
  end
@@ -131,7 +131,7 @@ module Google
131
131
  credentials = @config.credentials
132
132
  # Use self-signed JWT if the endpoint is unchanged from default,
133
133
  # but only if the default endpoint does not have a region prefix.
134
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
134
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
135
135
  !@config.endpoint.split(".").first.include?("-")
136
136
  credentials ||= Credentials.default scope: @config.scope,
137
137
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1422,9 +1422,9 @@ module Google
1422
1422
  # * (`String`) The path to a service account key file in JSON format
1423
1423
  # * (`Hash`) A service account key as a Hash
1424
1424
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1425
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1425
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1426
1426
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1427
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1427
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1428
1428
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1429
1429
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1430
1430
  # * (`nil`) indicating no credentials
@@ -1466,7 +1466,9 @@ module Google
1466
1466
  class Configuration
1467
1467
  extend ::Gapic::Config
1468
1468
 
1469
- config_attr :endpoint, "osconfig.googleapis.com", ::String
1469
+ DEFAULT_ENDPOINT = "osconfig.googleapis.com"
1470
+
1471
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1470
1472
  config_attr :credentials, nil do |value|
1471
1473
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1472
1474
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -664,7 +664,9 @@ module Google
664
664
  class Configuration
665
665
  extend ::Gapic::Config
666
666
 
667
- config_attr :endpoint, "osconfig.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "osconfig.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
670
  config_attr :credentials, nil do |value|
669
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -127,7 +127,7 @@ module Google
127
127
  credentials = @config.credentials
128
128
  # Use self-signed JWT if the endpoint is unchanged from default,
129
129
  # but only if the default endpoint does not have a region prefix.
130
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
130
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
131
131
  !@config.endpoint.split(".").first.include?("-")
132
132
  credentials ||= Credentials.default scope: @config.scope,
133
133
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1096,9 +1096,9 @@ module Google
1096
1096
  # * (`String`) The path to a service account key file in JSON format
1097
1097
  # * (`Hash`) A service account key as a Hash
1098
1098
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1099
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1099
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1100
1100
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1101
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1101
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1102
1102
  # * (`nil`) indicating no credentials
1103
1103
  # @return [::Object]
1104
1104
  # @!attribute [rw] scope
@@ -1131,7 +1131,9 @@ module Google
1131
1131
  class Configuration
1132
1132
  extend ::Gapic::Config
1133
1133
 
1134
- config_attr :endpoint, "osconfig.googleapis.com", ::String
1134
+ DEFAULT_ENDPOINT = "osconfig.googleapis.com"
1135
+
1136
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1135
1137
  config_attr :credentials, nil do |value|
1136
1138
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1137
1139
  allowed.any? { |klass| klass === value }
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope
@@ -446,7 +446,9 @@ module Google
446
446
  class Configuration
447
447
  extend ::Gapic::Config
448
448
 
449
- config_attr :endpoint, "osconfig.googleapis.com", ::String
449
+ DEFAULT_ENDPOINT = "osconfig.googleapis.com"
450
+
451
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
452
  config_attr :credentials, nil do |value|
451
453
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
454
  allowed.any? { |klass| klass === value }
@@ -567,7 +569,7 @@ module Google
567
569
 
568
570
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
571
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
572
+ query_string_params.to_h { |p| p.split "=", 2 }
571
573
  else
572
574
  {}
573
575
  end
@@ -605,7 +607,7 @@ module Google
605
607
 
606
608
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
609
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
610
+ query_string_params.to_h { |p| p.split "=", 2 }
609
611
  else
610
612
  {}
611
613
  end
@@ -643,7 +645,7 @@ module Google
643
645
 
644
646
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
647
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
648
+ query_string_params.to_h { |p| p.split "=", 2 }
647
649
  else
648
650
  {}
649
651
  end
@@ -681,7 +683,7 @@ module Google
681
683
 
682
684
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
685
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
686
+ query_string_params.to_h { |p| p.split "=", 2 }
685
687
  else
686
688
  {}
687
689
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_create_os_policy_assignment_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_update_os_policy_assignment_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_get_os_policy_assignment_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_list_os_policy_assignments_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_list_os_policy_assignment_revisions_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_os_policy_assignment_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_get_os_policy_assignment_report_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_list_os_policy_assignment_reports_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -363,7 +363,7 @@ module Google
363
363
 
364
364
  verb, uri, query_string_params, body = ServiceStub.transcode_get_inventory_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -401,7 +401,7 @@ module Google
401
401
 
402
402
  verb, uri, query_string_params, body = ServiceStub.transcode_list_inventories_request request_pb
403
403
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
404
+ query_string_params.to_h { |p| p.split "=", 2 }
405
405
  else
406
406
  {}
407
407
  end
@@ -439,7 +439,7 @@ module Google
439
439
 
440
440
  verb, uri, query_string_params, body = ServiceStub.transcode_get_vulnerability_report_request request_pb
441
441
  query_string_params = if query_string_params.any?
442
- query_string_params.to_h { |p| p.split("=", 2) }
442
+ query_string_params.to_h { |p| p.split "=", 2 }
443
443
  else
444
444
  {}
445
445
  end
@@ -477,7 +477,7 @@ module Google
477
477
 
478
478
  verb, uri, query_string_params, body = ServiceStub.transcode_list_vulnerability_reports_request request_pb
479
479
  query_string_params = if query_string_params.any?
480
- query_string_params.to_h { |p| p.split("=", 2) }
480
+ query_string_params.to_h { |p| p.split "=", 2 }
481
481
  else
482
482
  {}
483
483
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module OsConfig
23
23
  module V1
24
- VERSION = "0.12.0"
24
+ VERSION = "0.13.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/osconfig/v1/inventory.proto
3
4
 
@@ -8,117 +9,33 @@ require 'google/api/resource_pb'
8
9
  require 'google/protobuf/timestamp_pb'
9
10
  require 'google/type/date_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/osconfig/v1/inventory.proto", :syntax => :proto3) do
13
- add_message "google.cloud.osconfig.v1.Inventory" do
14
- optional :name, :string, 3
15
- optional :os_info, :message, 1, "google.cloud.osconfig.v1.Inventory.OsInfo"
16
- map :items, :string, :message, 2, "google.cloud.osconfig.v1.Inventory.Item"
17
- optional :update_time, :message, 4, "google.protobuf.Timestamp"
18
- end
19
- add_message "google.cloud.osconfig.v1.Inventory.OsInfo" do
20
- optional :hostname, :string, 9
21
- optional :long_name, :string, 2
22
- optional :short_name, :string, 3
23
- optional :version, :string, 4
24
- optional :architecture, :string, 5
25
- optional :kernel_version, :string, 6
26
- optional :kernel_release, :string, 7
27
- optional :osconfig_agent_version, :string, 8
28
- end
29
- add_message "google.cloud.osconfig.v1.Inventory.Item" do
30
- optional :id, :string, 1
31
- optional :origin_type, :enum, 2, "google.cloud.osconfig.v1.Inventory.Item.OriginType"
32
- optional :create_time, :message, 8, "google.protobuf.Timestamp"
33
- optional :update_time, :message, 9, "google.protobuf.Timestamp"
34
- optional :type, :enum, 5, "google.cloud.osconfig.v1.Inventory.Item.Type"
35
- oneof :details do
36
- optional :installed_package, :message, 6, "google.cloud.osconfig.v1.Inventory.SoftwarePackage"
37
- optional :available_package, :message, 7, "google.cloud.osconfig.v1.Inventory.SoftwarePackage"
38
- end
39
- end
40
- add_enum "google.cloud.osconfig.v1.Inventory.Item.OriginType" do
41
- value :ORIGIN_TYPE_UNSPECIFIED, 0
42
- value :INVENTORY_REPORT, 1
43
- end
44
- add_enum "google.cloud.osconfig.v1.Inventory.Item.Type" do
45
- value :TYPE_UNSPECIFIED, 0
46
- value :INSTALLED_PACKAGE, 1
47
- value :AVAILABLE_PACKAGE, 2
48
- end
49
- add_message "google.cloud.osconfig.v1.Inventory.SoftwarePackage" do
50
- oneof :details do
51
- optional :yum_package, :message, 1, "google.cloud.osconfig.v1.Inventory.VersionedPackage"
52
- optional :apt_package, :message, 2, "google.cloud.osconfig.v1.Inventory.VersionedPackage"
53
- optional :zypper_package, :message, 3, "google.cloud.osconfig.v1.Inventory.VersionedPackage"
54
- optional :googet_package, :message, 4, "google.cloud.osconfig.v1.Inventory.VersionedPackage"
55
- optional :zypper_patch, :message, 5, "google.cloud.osconfig.v1.Inventory.ZypperPatch"
56
- optional :wua_package, :message, 6, "google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage"
57
- optional :qfe_package, :message, 7, "google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage"
58
- optional :cos_package, :message, 8, "google.cloud.osconfig.v1.Inventory.VersionedPackage"
59
- optional :windows_application, :message, 9, "google.cloud.osconfig.v1.Inventory.WindowsApplication"
60
- end
61
- end
62
- add_message "google.cloud.osconfig.v1.Inventory.VersionedPackage" do
63
- optional :package_name, :string, 4
64
- optional :architecture, :string, 2
65
- optional :version, :string, 3
66
- end
67
- add_message "google.cloud.osconfig.v1.Inventory.ZypperPatch" do
68
- optional :patch_name, :string, 5
69
- optional :category, :string, 2
70
- optional :severity, :string, 3
71
- optional :summary, :string, 4
72
- end
73
- add_message "google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage" do
74
- optional :title, :string, 1
75
- optional :description, :string, 2
76
- repeated :categories, :message, 3, "google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory"
77
- repeated :kb_article_ids, :string, 4
78
- optional :support_url, :string, 11
79
- repeated :more_info_urls, :string, 5
80
- optional :update_id, :string, 6
81
- optional :revision_number, :int32, 7
82
- optional :last_deployment_change_time, :message, 10, "google.protobuf.Timestamp"
83
- end
84
- add_message "google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory" do
85
- optional :id, :string, 1
86
- optional :name, :string, 2
87
- end
88
- add_message "google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage" do
89
- optional :caption, :string, 1
90
- optional :description, :string, 2
91
- optional :hot_fix_id, :string, 3
92
- optional :install_time, :message, 5, "google.protobuf.Timestamp"
93
- end
94
- add_message "google.cloud.osconfig.v1.Inventory.WindowsApplication" do
95
- optional :display_name, :string, 1
96
- optional :display_version, :string, 2
97
- optional :publisher, :string, 3
98
- optional :install_date, :message, 4, "google.type.Date"
99
- optional :help_link, :string, 5
100
- end
101
- add_message "google.cloud.osconfig.v1.GetInventoryRequest" do
102
- optional :name, :string, 1
103
- optional :view, :enum, 2, "google.cloud.osconfig.v1.InventoryView"
104
- end
105
- add_message "google.cloud.osconfig.v1.ListInventoriesRequest" do
106
- optional :parent, :string, 1
107
- optional :view, :enum, 2, "google.cloud.osconfig.v1.InventoryView"
108
- optional :page_size, :int32, 3
109
- optional :page_token, :string, 4
110
- optional :filter, :string, 5
111
- end
112
- add_message "google.cloud.osconfig.v1.ListInventoriesResponse" do
113
- repeated :inventories, :message, 1, "google.cloud.osconfig.v1.Inventory"
114
- optional :next_page_token, :string, 2
115
- end
116
- add_enum "google.cloud.osconfig.v1.InventoryView" do
117
- value :INVENTORY_VIEW_UNSPECIFIED, 0
118
- value :BASIC, 1
119
- value :FULL, 2
12
+
13
+ descriptor_data = "\n(google/cloud/osconfig/v1/inventory.proto\x12\x18google.cloud.osconfig.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/date.proto\"\xd8\x15\n\tInventory\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12;\n\x07os_info\x18\x01 \x01(\x0b\x32*.google.cloud.osconfig.v1.Inventory.OsInfo\x12=\n\x05items\x18\x02 \x03(\x0b\x32..google.cloud.osconfig.v1.Inventory.ItemsEntry\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a\xb8\x01\n\x06OsInfo\x12\x10\n\x08hostname\x18\t \x01(\t\x12\x11\n\tlong_name\x18\x02 \x01(\t\x12\x12\n\nshort_name\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\x12\x14\n\x0c\x61rchitecture\x18\x05 \x01(\t\x12\x16\n\x0ekernel_version\x18\x06 \x01(\t\x12\x16\n\x0ekernel_release\x18\x07 \x01(\t\x12\x1e\n\x16osconfig_agent_version\x18\x08 \x01(\t\x1a\xb7\x04\n\x04Item\x12\n\n\x02id\x18\x01 \x01(\t\x12H\n\x0borigin_type\x18\x02 \x01(\x0e\x32\x33.google.cloud.osconfig.v1.Inventory.Item.OriginType\x12/\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x04type\x18\x05 \x01(\x0e\x32-.google.cloud.osconfig.v1.Inventory.Item.Type\x12P\n\x11installed_package\x18\x06 \x01(\x0b\x32\x33.google.cloud.osconfig.v1.Inventory.SoftwarePackageH\x00\x12P\n\x11\x61vailable_package\x18\x07 \x01(\x0b\x32\x33.google.cloud.osconfig.v1.Inventory.SoftwarePackageH\x00\"?\n\nOriginType\x12\x1b\n\x17ORIGIN_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10INVENTORY_REPORT\x10\x01\"J\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11INSTALLED_PACKAGE\x10\x01\x12\x15\n\x11\x41VAILABLE_PACKAGE\x10\x02\x42\t\n\x07\x64\x65tails\x1a\xf2\x05\n\x0fSoftwarePackage\x12K\n\x0byum_package\x18\x01 \x01(\x0b\x32\x34.google.cloud.osconfig.v1.Inventory.VersionedPackageH\x00\x12K\n\x0b\x61pt_package\x18\x02 \x01(\x0b\x32\x34.google.cloud.osconfig.v1.Inventory.VersionedPackageH\x00\x12N\n\x0ezypper_package\x18\x03 \x01(\x0b\x32\x34.google.cloud.osconfig.v1.Inventory.VersionedPackageH\x00\x12N\n\x0egooget_package\x18\x04 \x01(\x0b\x32\x34.google.cloud.osconfig.v1.Inventory.VersionedPackageH\x00\x12G\n\x0czypper_patch\x18\x05 \x01(\x0b\x32/.google.cloud.osconfig.v1.Inventory.ZypperPatchH\x00\x12O\n\x0bwua_package\x18\x06 \x01(\x0b\x32\x38.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackageH\x00\x12\\\n\x0bqfe_package\x18\x07 \x01(\x0b\x32\x45.google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackageH\x00\x12K\n\x0b\x63os_package\x18\x08 \x01(\x0b\x32\x34.google.cloud.osconfig.v1.Inventory.VersionedPackageH\x00\x12U\n\x13windows_application\x18\t \x01(\x0b\x32\x36.google.cloud.osconfig.v1.Inventory.WindowsApplicationH\x00\x42\t\n\x07\x64\x65tails\x1aO\n\x10VersionedPackage\x12\x14\n\x0cpackage_name\x18\x04 \x01(\t\x12\x14\n\x0c\x61rchitecture\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x1aV\n\x0bZypperPatch\x12\x12\n\npatch_name\x18\x05 \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\x02 \x01(\t\x12\x10\n\x08severity\x18\x03 \x01(\t\x12\x0f\n\x07summary\x18\x04 \x01(\t\x1a\x83\x03\n\x14WindowsUpdatePackage\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x62\n\ncategories\x18\x03 \x03(\x0b\x32N.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory\x12\x16\n\x0ekb_article_ids\x18\x04 \x03(\t\x12\x13\n\x0bsupport_url\x18\x0b \x01(\t\x12\x16\n\x0emore_info_urls\x18\x05 \x03(\t\x12\x11\n\tupdate_id\x18\x06 \x01(\t\x12\x17\n\x0frevision_number\x18\x07 \x01(\x05\x12?\n\x1blast_deployment_change_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x31\n\x15WindowsUpdateCategory\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x1a\x8f\x01\n!WindowsQuickFixEngineeringPackage\x12\x0f\n\x07\x63\x61ption\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x12\n\nhot_fix_id\x18\x03 \x01(\t\x12\x30\n\x0cinstall_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x92\x01\n\x12WindowsApplication\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x17\n\x0f\x64isplay_version\x18\x02 \x01(\t\x12\x11\n\tpublisher\x18\x03 \x01(\t\x12\'\n\x0cinstall_date\x18\x04 \x01(\x0b\x32\x11.google.type.Date\x12\x11\n\thelp_link\x18\x05 \x01(\t\x1aV\n\nItemsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.google.cloud.osconfig.v1.Inventory.Item:\x02\x38\x01:n\xea\x41k\n!osconfig.googleapis.com/Inventory\x12\x46projects/{project}/locations/{location}/instances/{instance}/inventory\"\x85\x01\n\x13GetInventoryRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!osconfig.googleapis.com/Inventory\x12\x35\n\x04view\x18\x02 \x01(\x0e\x32\'.google.cloud.osconfig.v1.InventoryView\"\xbf\x01\n\x16ListInventoriesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63ompute.googleapis.com/Instance\x12\x35\n\x04view\x18\x02 \x01(\x0e\x32\'.google.cloud.osconfig.v1.InventoryView\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\"l\n\x17ListInventoriesResponse\x12\x38\n\x0binventories\x18\x01 \x03(\x0b\x32#.google.cloud.osconfig.v1.Inventory\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t*D\n\rInventoryView\x12\x1e\n\x1aINVENTORY_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x42\xbb\x01\n\x1c\x63om.google.cloud.osconfig.v1B\x0bInventoriesP\x01Z8cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb\xaa\x02\x18Google.Cloud.OsConfig.V1\xca\x02\x18Google\\Cloud\\OsConfig\\V1\xea\x02\x1bGoogle::Cloud::OsConfig::V1b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ["google.type.Date", "google/type/date.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
120
35
  end
121
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
122
39
  end
123
40
 
124
41
  module Google