google-cloud-os_config-v1 0.11.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +3 -3
  4. data/lib/google/cloud/os_config/v1/os_config_service/client.rb +18 -22
  5. data/lib/google/cloud/os_config/v1/os_config_service/rest/client.rb +1183 -0
  6. data/lib/google/cloud/os_config/v1/os_config_service/rest/service_stub.rb +762 -0
  7. data/lib/google/cloud/os_config/v1/os_config_service/rest.rb +55 -0
  8. data/lib/google/cloud/os_config/v1/os_config_service.rb +7 -1
  9. data/lib/google/cloud/os_config/v1/os_config_zonal_service/client.rb +38 -46
  10. data/lib/google/cloud/os_config/v1/os_config_zonal_service/operations.rb +17 -17
  11. data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest/client.rb +1284 -0
  12. data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest/operations.rb +795 -0
  13. data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest/service_stub.rb +758 -0
  14. data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest.rb +56 -0
  15. data/lib/google/cloud/os_config/v1/os_config_zonal_service.rb +7 -1
  16. data/lib/google/cloud/os_config/v1/rest.rb +38 -0
  17. data/lib/google/cloud/os_config/v1/version.rb +1 -1
  18. data/lib/google/cloud/os_config/v1.rb +7 -2
  19. data/lib/google/cloud/osconfig/v1/inventory_pb.rb +26 -109
  20. data/lib/google/cloud/osconfig/v1/os_policy_assignment_reports_pb.rb +25 -61
  21. data/lib/google/cloud/osconfig/v1/os_policy_assignments_pb.rb +29 -93
  22. data/lib/google/cloud/osconfig/v1/os_policy_pb.rb +24 -158
  23. data/lib/google/cloud/osconfig/v1/osconfig_common_pb.rb +24 -7
  24. data/lib/google/cloud/osconfig/v1/osconfig_service_pb.rb +25 -2
  25. data/lib/google/cloud/osconfig/v1/osconfig_zonal_service_pb.rb +25 -2
  26. data/lib/google/cloud/osconfig/v1/patch_deployments_pb.rb +30 -88
  27. data/lib/google/cloud/osconfig/v1/patch_jobs_pb.rb +27 -209
  28. data/lib/google/cloud/osconfig/v1/vulnerability_pb.rb +25 -92
  29. data/proto_docs/google/api/client.rb +381 -0
  30. data/proto_docs/google/api/launch_stage.rb +71 -0
  31. data/proto_docs/google/protobuf/any.rb +7 -4
  32. data/proto_docs/google/protobuf/empty.rb +0 -2
  33. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  34. data/proto_docs/google/rpc/status.rb +4 -2
  35. metadata +19 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43c96fbc5e3d020687360ae59c2ff38a32c10a14ee90f8fa53017007bb4cc045
4
- data.tar.gz: 50c33395c8d67b9c8e7442a189114dda0651f2283b0c279ecbd118cb048be1fa
3
+ metadata.gz: 225aed013ae0f215d256ad32a39a6d2e206b6d1bebb3f83dca5a606422bd8ae8
4
+ data.tar.gz: 181bbd650bb8b779b186e7e24607a55a2a87c289d849c71e94043cded1f50c08
5
5
  SHA512:
6
- metadata.gz: 36557b065d676fe52755da9b55c0457a5c2a1339154a0c1419543b90e26fc30434e48ec093edbf21c2cf5f0b8660bbe106e57ff1ef648a176e343a2d762d9cf7
7
- data.tar.gz: 5f2f538cb809a7bbccb64007ad2cfadde60bece2a48f1e9fff965f1cc721bb76c3cf2ffbf1812aa6148855e44c48f17b76333e84037446cca02d7246939c376e
6
+ metadata.gz: 9b7bbc5c74fcc8209fe404e8f3df9a9419fea97ab7c6c953dd9f2fe464417f4b3f8dd9737ea1bb5c2e90e5126cc5866271fc828849850c1bc75dde31f8f6686f
7
+ data.tar.gz: 36dccc76c76f08142bce862f9bf1fc2e719944fe70d709e6b6fc8c92a5c80c8390bcbc758dfbd2dd8f41a9a1224c1d4eb37921a828b5b326d8721b380379b009
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 V1 API
2
2
 
3
- API Client library for the Cloud OS Config V1 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,8 +46,8 @@ 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,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
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://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
@@ -478,13 +478,11 @@ module Google
478
478
  # # Call the list_patch_jobs method.
479
479
  # result = client.list_patch_jobs request
480
480
  #
481
- # # The returned object is of type Gapic::PagedEnumerable. You can
482
- # # iterate over all elements by calling #each, and the enumerable
483
- # # will lazily make API calls to fetch subsequent pages. Other
484
- # # methods are also available for managing paging directly.
485
- # result.each do |response|
481
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
482
+ # # over elements, and API calls will be issued to fetch pages as needed.
483
+ # result.each do |item|
486
484
  # # Each element is of type ::Google::Cloud::OsConfig::V1::PatchJob.
487
- # p response
485
+ # p item
488
486
  # end
489
487
  #
490
488
  def list_patch_jobs request, options = nil
@@ -580,13 +578,11 @@ module Google
580
578
  # # Call the list_patch_job_instance_details method.
581
579
  # result = client.list_patch_job_instance_details request
582
580
  #
583
- # # The returned object is of type Gapic::PagedEnumerable. You can
584
- # # iterate over all elements by calling #each, and the enumerable
585
- # # will lazily make API calls to fetch subsequent pages. Other
586
- # # methods are also available for managing paging directly.
587
- # result.each do |response|
581
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
582
+ # # over elements, and API calls will be issued to fetch pages as needed.
583
+ # result.each do |item|
588
584
  # # Each element is of type ::Google::Cloud::OsConfig::V1::PatchJobInstanceDetails.
589
- # p response
585
+ # p item
590
586
  # end
591
587
  #
592
588
  def list_patch_job_instance_details request, options = nil
@@ -861,13 +857,11 @@ module Google
861
857
  # # Call the list_patch_deployments method.
862
858
  # result = client.list_patch_deployments request
863
859
  #
864
- # # The returned object is of type Gapic::PagedEnumerable. You can
865
- # # iterate over all elements by calling #each, and the enumerable
866
- # # will lazily make API calls to fetch subsequent pages. Other
867
- # # methods are also available for managing paging directly.
868
- # result.each do |response|
860
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
861
+ # # over elements, and API calls will be issued to fetch pages as needed.
862
+ # result.each do |item|
869
863
  # # Each element is of type ::Google::Cloud::OsConfig::V1::PatchDeployment.
870
- # p response
864
+ # p item
871
865
  # end
872
866
  #
873
867
  def list_patch_deployments request, options = nil
@@ -1298,9 +1292,9 @@ module Google
1298
1292
  # * (`String`) The path to a service account key file in JSON format
1299
1293
  # * (`Hash`) A service account key as a Hash
1300
1294
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1301
- # (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))
1302
1296
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1303
- # (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))
1304
1298
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1305
1299
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1306
1300
  # * (`nil`) indicating no credentials
@@ -1342,7 +1336,9 @@ module Google
1342
1336
  class Configuration
1343
1337
  extend ::Gapic::Config
1344
1338
 
1345
- config_attr :endpoint, "osconfig.googleapis.com", ::String
1339
+ DEFAULT_ENDPOINT = "osconfig.googleapis.com"
1340
+
1341
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1346
1342
  config_attr :credentials, nil do |value|
1347
1343
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1348
1344
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC