google-cloud-os_config-v1 0.11.0 → 0.13.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 +3 -3
 - data/lib/google/cloud/os_config/v1/os_config_service/client.rb +18 -22
 - data/lib/google/cloud/os_config/v1/os_config_service/rest/client.rb +1183 -0
 - data/lib/google/cloud/os_config/v1/os_config_service/rest/service_stub.rb +762 -0
 - data/lib/google/cloud/os_config/v1/os_config_service/rest.rb +55 -0
 - data/lib/google/cloud/os_config/v1/os_config_service.rb +7 -1
 - data/lib/google/cloud/os_config/v1/os_config_zonal_service/client.rb +38 -46
 - data/lib/google/cloud/os_config/v1/os_config_zonal_service/operations.rb +17 -17
 - data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest/client.rb +1284 -0
 - data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest/operations.rb +795 -0
 - data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest/service_stub.rb +758 -0
 - data/lib/google/cloud/os_config/v1/os_config_zonal_service/rest.rb +56 -0
 - data/lib/google/cloud/os_config/v1/os_config_zonal_service.rb +7 -1
 - data/lib/google/cloud/os_config/v1/rest.rb +38 -0
 - data/lib/google/cloud/os_config/v1/version.rb +1 -1
 - data/lib/google/cloud/os_config/v1.rb +7 -2
 - data/lib/google/cloud/osconfig/v1/inventory_pb.rb +26 -109
 - data/lib/google/cloud/osconfig/v1/os_policy_assignment_reports_pb.rb +25 -61
 - data/lib/google/cloud/osconfig/v1/os_policy_assignments_pb.rb +29 -93
 - data/lib/google/cloud/osconfig/v1/os_policy_pb.rb +24 -158
 - data/lib/google/cloud/osconfig/v1/osconfig_common_pb.rb +24 -7
 - data/lib/google/cloud/osconfig/v1/osconfig_service_pb.rb +25 -2
 - data/lib/google/cloud/osconfig/v1/osconfig_zonal_service_pb.rb +25 -2
 - data/lib/google/cloud/osconfig/v1/patch_deployments_pb.rb +30 -88
 - data/lib/google/cloud/osconfig/v1/patch_jobs_pb.rb +27 -209
 - data/lib/google/cloud/osconfig/v1/vulnerability_pb.rb +25 -92
 - data/proto_docs/google/api/client.rb +381 -0
 - data/proto_docs/google/api/launch_stage.rb +71 -0
 - data/proto_docs/google/protobuf/any.rb +7 -4
 - data/proto_docs/google/protobuf/empty.rb +0 -2
 - data/proto_docs/google/protobuf/timestamp.rb +1 -3
 - data/proto_docs/google/rpc/status.rb +4 -2
 - metadata +19 -8
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 225aed013ae0f215d256ad32a39a6d2e206b6d1bebb3f83dca5a606422bd8ae8
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 181bbd650bb8b779b186e7e24607a55a2a87c289d849c71e94043cded1f50c08
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
      
 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/ 
     | 
| 
       50 
     | 
    
         
            -
            or a [`Google::Cloud::Logging::Logger`](https:// 
     | 
| 
      
 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 ==  
     | 
| 
      
 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 
     | 
    
         
            -
                        #   #  
     | 
| 
       483 
     | 
    
         
            -
                        #    
     | 
| 
       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  
     | 
| 
      
 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 
     | 
    
         
            -
                        #   #  
     | 
| 
       585 
     | 
    
         
            -
                        #    
     | 
| 
       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  
     | 
| 
      
 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 
     | 
    
         
            -
                        #   #  
     | 
| 
       866 
     | 
    
         
            -
                        #    
     | 
| 
       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  
     | 
| 
      
 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:// 
     | 
| 
      
 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:// 
     | 
| 
      
 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 
     | 
    
         
            -
                           
     | 
| 
      
 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
         
     |