google-cloud-assured_workloads-v1 0.4.0 → 0.6.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/README.md +1 -1
- data/lib/google/cloud/assured_workloads/v1/assured_workloads_service/client.rb +15 -18
- data/lib/google/cloud/assured_workloads/v1/assured_workloads_service/operations.rb +12 -14
- data/lib/google/cloud/assured_workloads/v1/assured_workloads_service/rest/client.rb +754 -0
- data/lib/google/cloud/assured_workloads/v1/assured_workloads_service/rest/operations.rb +793 -0
- data/lib/google/cloud/assured_workloads/v1/assured_workloads_service/rest/service_stub.rb +405 -0
- data/lib/google/cloud/assured_workloads/v1/assured_workloads_service/rest.rb +53 -0
- data/lib/google/cloud/assured_workloads/v1/assured_workloads_service.rb +7 -1
- data/lib/google/cloud/assured_workloads/v1/rest.rb +37 -0
- data/lib/google/cloud/assured_workloads/v1/version.rb +1 -1
- data/lib/google/cloud/assured_workloads/v1.rb +7 -2
- data/lib/google/cloud/assuredworkloads/v1/assuredworkloads_pb.rb +2 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb +21 -7
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +14 -7
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: deb1fd78c957c6fcb2bf5ceddf29a0c03aedce4f16e055506447839d6982bea8
         | 
| 4 | 
            +
              data.tar.gz: fb286d8f9eaf16ef0058d64024c92f7d409f5449d76332d4cb379b10e02a6467
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: dc5fdbfae389b3f28db3db13d2067cf6bbbf69b6b0c2c3f3321d062f3b2060a21e47534d56b285d522de0a2cd8efd11f96c0c04a786512b81cd6bd5d949e4258
         | 
| 7 | 
            +
              data.tar.gz: a0ad39fd1bdc9e15489f0dc884f775c1e7907765dcda2134b2d2f64fb5a9a85066927c49393c759841c014513b7ab7ba19564d6e738e6d990dbba81b5cc82f71
         | 
    
        data/README.md
    CHANGED
    
    | @@ -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.
         | 
| @@ -208,14 +208,14 @@ module Google | |
| 208 208 | 
             
                        #   # Call the create_workload method.
         | 
| 209 209 | 
             
                        #   result = client.create_workload request
         | 
| 210 210 | 
             
                        #
         | 
| 211 | 
            -
                        #   # The returned object is of type Gapic::Operation. You can use  | 
| 212 | 
            -
                        #   #  | 
| 213 | 
            -
                        #   #  | 
| 211 | 
            +
                        #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 212 | 
            +
                        #   # check the status of an operation, cancel it, or wait for results.
         | 
| 213 | 
            +
                        #   # Here is how to wait for a response.
         | 
| 214 214 | 
             
                        #   result.wait_until_done! timeout: 60
         | 
| 215 215 | 
             
                        #   if result.response?
         | 
| 216 216 | 
             
                        #     p result.response
         | 
| 217 217 | 
             
                        #   else
         | 
| 218 | 
            -
                        #     puts " | 
| 218 | 
            +
                        #     puts "No response received."
         | 
| 219 219 | 
             
                        #   end
         | 
| 220 220 | 
             
                        #
         | 
| 221 221 | 
             
                        def create_workload request, options = nil
         | 
| @@ -560,7 +560,7 @@ module Google | |
| 560 560 | 
             
                        #   the default parameter values, pass an empty Hash as a request object (see above).
         | 
| 561 561 | 
             
                        #
         | 
| 562 562 | 
             
                        #   @param name [::String]
         | 
| 563 | 
            -
                        #     Required. The resource name of the Workload to fetch. This is the  | 
| 563 | 
            +
                        #     Required. The resource name of the Workload to fetch. This is the workload's
         | 
| 564 564 | 
             
                        #     relative path in the API, formatted as
         | 
| 565 565 | 
             
                        #     "organizations/\\{organization_id}/locations/\\{location_id}/workloads/\\{workload_id}".
         | 
| 566 566 | 
             
                        #     For example,
         | 
| @@ -681,13 +681,11 @@ module Google | |
| 681 681 | 
             
                        #   # Call the list_workloads method.
         | 
| 682 682 | 
             
                        #   result = client.list_workloads request
         | 
| 683 683 | 
             
                        #
         | 
| 684 | 
            -
                        #   # The returned object is of type Gapic::PagedEnumerable. You can
         | 
| 685 | 
            -
                        #   #  | 
| 686 | 
            -
                        #    | 
| 687 | 
            -
                        #   # methods are also available for managing paging directly.
         | 
| 688 | 
            -
                        #   result.each do |response|
         | 
| 684 | 
            +
                        #   # The returned object is of type Gapic::PagedEnumerable. You can iterate
         | 
| 685 | 
            +
                        #   # over elements, and API calls will be issued to fetch pages as needed.
         | 
| 686 | 
            +
                        #   result.each do |item|
         | 
| 689 687 | 
             
                        #     # Each element is of type ::Google::Cloud::AssuredWorkloads::V1::Workload.
         | 
| 690 | 
            -
                        #     p  | 
| 688 | 
            +
                        #     p item
         | 
| 691 689 | 
             
                        #   end
         | 
| 692 690 | 
             
                        #
         | 
| 693 691 | 
             
                        def list_workloads request, options = nil
         | 
| @@ -788,13 +786,11 @@ module Google | |
| 788 786 | 
             
                        #   # Call the list_violations method.
         | 
| 789 787 | 
             
                        #   result = client.list_violations request
         | 
| 790 788 | 
             
                        #
         | 
| 791 | 
            -
                        #   # The returned object is of type Gapic::PagedEnumerable. You can
         | 
| 792 | 
            -
                        #   #  | 
| 793 | 
            -
                        #    | 
| 794 | 
            -
                        #   # methods are also available for managing paging directly.
         | 
| 795 | 
            -
                        #   result.each do |response|
         | 
| 789 | 
            +
                        #   # The returned object is of type Gapic::PagedEnumerable. You can iterate
         | 
| 790 | 
            +
                        #   # over elements, and API calls will be issued to fetch pages as needed.
         | 
| 791 | 
            +
                        #   result.each do |item|
         | 
| 796 792 | 
             
                        #     # Each element is of type ::Google::Cloud::AssuredWorkloads::V1::Violation.
         | 
| 797 | 
            -
                        #     p  | 
| 793 | 
            +
                        #     p item
         | 
| 798 794 | 
             
                        #   end
         | 
| 799 795 | 
             
                        #
         | 
| 800 796 | 
             
                        def list_violations request, options = nil
         | 
| @@ -938,7 +934,8 @@ module Google | |
| 938 934 | 
             
                        #   @param comment [::String]
         | 
| 939 935 | 
             
                        #     Required. Business justification explaining the need for violation acknowledgement
         | 
| 940 936 | 
             
                        #   @param non_compliant_org_policy [::String]
         | 
| 941 | 
            -
                        #     Optional.  | 
| 937 | 
            +
                        #     Optional. This field is deprecated and will be removed in future version of the API.
         | 
| 938 | 
            +
                        #     Name of the OrgPolicy which was modified with non-compliant change and
         | 
| 942 939 | 
             
                        #     resulted in this violation.
         | 
| 943 940 | 
             
                        #     Format:
         | 
| 944 941 | 
             
                        #     projects/\\{project_number}/policies/\\{constraint_name}
         | 
| @@ -158,13 +158,11 @@ module Google | |
| 158 158 | 
             
                        #   # Call the list_operations method.
         | 
| 159 159 | 
             
                        #   result = client.list_operations request
         | 
| 160 160 | 
             
                        #
         | 
| 161 | 
            -
                        #   # The returned object is of type Gapic::PagedEnumerable. You can
         | 
| 162 | 
            -
                        #   #  | 
| 163 | 
            -
                        #    | 
| 164 | 
            -
                        #   # methods are also available for managing paging directly.
         | 
| 165 | 
            -
                        #   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|
         | 
| 166 164 | 
             
                        #     # Each element is of type ::Google::Longrunning::Operation.
         | 
| 167 | 
            -
                        #     p  | 
| 165 | 
            +
                        #     p item
         | 
| 168 166 | 
             
                        #   end
         | 
| 169 167 | 
             
                        #
         | 
| 170 168 | 
             
                        def list_operations request, options = nil
         | 
| @@ -253,14 +251,14 @@ module Google | |
| 253 251 | 
             
                        #   # Call the get_operation method.
         | 
| 254 252 | 
             
                        #   result = client.get_operation request
         | 
| 255 253 | 
             
                        #
         | 
| 256 | 
            -
                        #   # The returned object is of type Gapic::Operation. You can use  | 
| 257 | 
            -
                        #   #  | 
| 258 | 
            -
                        #   #  | 
| 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.
         | 
| 259 257 | 
             
                        #   result.wait_until_done! timeout: 60
         | 
| 260 258 | 
             
                        #   if result.response?
         | 
| 261 259 | 
             
                        #     p result.response
         | 
| 262 260 | 
             
                        #   else
         | 
| 263 | 
            -
                        #     puts " | 
| 261 | 
            +
                        #     puts "No response received."
         | 
| 264 262 | 
             
                        #   end
         | 
| 265 263 | 
             
                        #
         | 
| 266 264 | 
             
                        def get_operation request, options = nil
         | 
| @@ -540,14 +538,14 @@ module Google | |
| 540 538 | 
             
                        #   # Call the wait_operation method.
         | 
| 541 539 | 
             
                        #   result = client.wait_operation request
         | 
| 542 540 | 
             
                        #
         | 
| 543 | 
            -
                        #   # The returned object is of type Gapic::Operation. You can use  | 
| 544 | 
            -
                        #   #  | 
| 545 | 
            -
                        #   #  | 
| 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.
         | 
| 546 544 | 
             
                        #   result.wait_until_done! timeout: 60
         | 
| 547 545 | 
             
                        #   if result.response?
         | 
| 548 546 | 
             
                        #     p result.response
         | 
| 549 547 | 
             
                        #   else
         | 
| 550 | 
            -
                        #     puts " | 
| 548 | 
            +
                        #     puts "No response received."
         | 
| 551 549 | 
             
                        #   end
         | 
| 552 550 | 
             
                        #
         | 
| 553 551 | 
             
                        def wait_operation request, options = nil
         |