google-cloud-batch-v1 0.10.5 → 0.11.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/lib/google/cloud/batch/v1/batch_service/client.rb +10 -1
- data/lib/google/cloud/batch/v1/batch_service/operations.rb +10 -1
- data/lib/google/cloud/batch/v1/batch_service/rest/client.rb +111 -0
- data/lib/google/cloud/batch/v1/batch_service/rest/operations.rb +75 -0
- data/lib/google/cloud/batch/v1/version.rb +1 -1
- data/lib/google/iam/v1/iam_policy/client.rb +10 -1
- data/lib/google/iam/v1/iam_policy/rest/client.rb +48 -0
- metadata +4 -4
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: ae5ae618558337fbe208e96c2427f1929f593db3183dee60b801f2a15fde05f4
         | 
| 4 | 
            +
              data.tar.gz: 30837d2501752bc17fd04630095a79c773c46e8e0261f9b34af5abc14b5d63fc
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 21e3f68582f376db9bc20b492ed469f12a4053d1eef6d854af110a42556c62117639451b86a7337f6a1bce197c27f088ad09fcb0822f13a9f88b0f5618fa86c0
         | 
| 7 | 
            +
              data.tar.gz: 3263b79a126cd417a950f8958d485dc0b25450642e2932f0a558c02dc2ea24917e98c665df8b545220575eab95321ecbf8e7a2a858f8855b3efe15a919161d91
         | 
| @@ -177,7 +177,8 @@ module Google | |
| 177 177 | 
             
                            credentials:  credentials,
         | 
| 178 178 | 
             
                            endpoint:     @config.endpoint,
         | 
| 179 179 | 
             
                            channel_args: @config.channel_args,
         | 
| 180 | 
            -
                            interceptors: @config.interceptors
         | 
| 180 | 
            +
                            interceptors: @config.interceptors,
         | 
| 181 | 
            +
                            channel_pool_config: @config.channel_pool
         | 
| 181 182 | 
             
                          )
         | 
| 182 183 | 
             
                        end
         | 
| 183 184 |  | 
| @@ -906,6 +907,14 @@ module Google | |
| 906 907 | 
             
                            end
         | 
| 907 908 | 
             
                          end
         | 
| 908 909 |  | 
| 910 | 
            +
                          ##
         | 
| 911 | 
            +
                          # Configuration for the channel pool
         | 
| 912 | 
            +
                          # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
         | 
| 913 | 
            +
                          #
         | 
| 914 | 
            +
                          def channel_pool
         | 
| 915 | 
            +
                            @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
         | 
| 916 | 
            +
                          end
         | 
| 917 | 
            +
             | 
| 909 918 | 
             
                          ##
         | 
| 910 919 | 
             
                          # Configuration RPC class for the BatchService API.
         | 
| 911 920 | 
             
                          #
         | 
| @@ -93,7 +93,8 @@ module Google | |
| 93 93 | 
             
                            credentials:  credentials,
         | 
| 94 94 | 
             
                            endpoint:     @config.endpoint,
         | 
| 95 95 | 
             
                            channel_args: @config.channel_args,
         | 
| 96 | 
            -
                            interceptors: @config.interceptors
         | 
| 96 | 
            +
                            interceptors: @config.interceptors,
         | 
| 97 | 
            +
                            channel_pool_config: @config.channel_pool
         | 
| 97 98 | 
             
                          )
         | 
| 98 99 |  | 
| 99 100 | 
             
                          # Used by an LRO wrapper for some methods of this service
         | 
| @@ -701,6 +702,14 @@ module Google | |
| 701 702 | 
             
                            end
         | 
| 702 703 | 
             
                          end
         | 
| 703 704 |  | 
| 705 | 
            +
                          ##
         | 
| 706 | 
            +
                          # Configuration for the channel pool
         | 
| 707 | 
            +
                          # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
         | 
| 708 | 
            +
                          #
         | 
| 709 | 
            +
                          def channel_pool
         | 
| 710 | 
            +
                            @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
         | 
| 711 | 
            +
                          end
         | 
| 712 | 
            +
             | 
| 704 713 | 
             
                          ##
         | 
| 705 714 | 
             
                          # Configuration RPC class for the Operations API.
         | 
| 706 715 | 
             
                          #
         | 
| @@ -243,6 +243,22 @@ module Google | |
| 243 243 | 
             
                          # @return [::Google::Cloud::Batch::V1::Job]
         | 
| 244 244 | 
             
                          #
         | 
| 245 245 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 246 | 
            +
                          #
         | 
| 247 | 
            +
                          # @example Basic example
         | 
| 248 | 
            +
                          #   require "google/cloud/batch/v1"
         | 
| 249 | 
            +
                          #
         | 
| 250 | 
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         | 
| 251 | 
            +
                          #   client = Google::Cloud::Batch::V1::BatchService::Rest::Client.new
         | 
| 252 | 
            +
                          #
         | 
| 253 | 
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 254 | 
            +
                          #   request = Google::Cloud::Batch::V1::CreateJobRequest.new
         | 
| 255 | 
            +
                          #
         | 
| 256 | 
            +
                          #   # Call the create_job method.
         | 
| 257 | 
            +
                          #   result = client.create_job request
         | 
| 258 | 
            +
                          #
         | 
| 259 | 
            +
                          #   # The returned object is of type Google::Cloud::Batch::V1::Job.
         | 
| 260 | 
            +
                          #   p result
         | 
| 261 | 
            +
                          #
         | 
| 246 262 | 
             
                          def create_job request, options = nil
         | 
| 247 263 | 
             
                            raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 248 264 |  | 
| @@ -305,6 +321,22 @@ module Google | |
| 305 321 | 
             
                          # @return [::Google::Cloud::Batch::V1::Job]
         | 
| 306 322 | 
             
                          #
         | 
| 307 323 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 324 | 
            +
                          #
         | 
| 325 | 
            +
                          # @example Basic example
         | 
| 326 | 
            +
                          #   require "google/cloud/batch/v1"
         | 
| 327 | 
            +
                          #
         | 
| 328 | 
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         | 
| 329 | 
            +
                          #   client = Google::Cloud::Batch::V1::BatchService::Rest::Client.new
         | 
| 330 | 
            +
                          #
         | 
| 331 | 
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 332 | 
            +
                          #   request = Google::Cloud::Batch::V1::GetJobRequest.new
         | 
| 333 | 
            +
                          #
         | 
| 334 | 
            +
                          #   # Call the get_job method.
         | 
| 335 | 
            +
                          #   result = client.get_job request
         | 
| 336 | 
            +
                          #
         | 
| 337 | 
            +
                          #   # The returned object is of type Google::Cloud::Batch::V1::Job.
         | 
| 338 | 
            +
                          #   p result
         | 
| 339 | 
            +
                          #
         | 
| 308 340 | 
             
                          def get_job request, options = nil
         | 
| 309 341 | 
             
                            raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 310 342 |  | 
| @@ -383,6 +415,29 @@ module Google | |
| 383 415 | 
             
                          # @return [::Gapic::Operation]
         | 
| 384 416 | 
             
                          #
         | 
| 385 417 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 418 | 
            +
                          #
         | 
| 419 | 
            +
                          # @example Basic example
         | 
| 420 | 
            +
                          #   require "google/cloud/batch/v1"
         | 
| 421 | 
            +
                          #
         | 
| 422 | 
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         | 
| 423 | 
            +
                          #   client = Google::Cloud::Batch::V1::BatchService::Rest::Client.new
         | 
| 424 | 
            +
                          #
         | 
| 425 | 
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 426 | 
            +
                          #   request = Google::Cloud::Batch::V1::DeleteJobRequest.new
         | 
| 427 | 
            +
                          #
         | 
| 428 | 
            +
                          #   # Call the delete_job method.
         | 
| 429 | 
            +
                          #   result = client.delete_job request
         | 
| 430 | 
            +
                          #
         | 
| 431 | 
            +
                          #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 432 | 
            +
                          #   # check the status of an operation, cancel it, or wait for results.
         | 
| 433 | 
            +
                          #   # Here is how to wait for a response.
         | 
| 434 | 
            +
                          #   result.wait_until_done! timeout: 60
         | 
| 435 | 
            +
                          #   if result.response?
         | 
| 436 | 
            +
                          #     p result.response
         | 
| 437 | 
            +
                          #   else
         | 
| 438 | 
            +
                          #     puts "No response received."
         | 
| 439 | 
            +
                          #   end
         | 
| 440 | 
            +
                          #
         | 
| 386 441 | 
             
                          def delete_job request, options = nil
         | 
| 387 442 | 
             
                            raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 388 443 |  | 
| @@ -455,6 +510,26 @@ module Google | |
| 455 510 | 
             
                          # @return [::Google::Cloud::Batch::V1::ListJobsResponse]
         | 
| 456 511 | 
             
                          #
         | 
| 457 512 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 513 | 
            +
                          #
         | 
| 514 | 
            +
                          # @example Basic example
         | 
| 515 | 
            +
                          #   require "google/cloud/batch/v1"
         | 
| 516 | 
            +
                          #
         | 
| 517 | 
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         | 
| 518 | 
            +
                          #   client = Google::Cloud::Batch::V1::BatchService::Rest::Client.new
         | 
| 519 | 
            +
                          #
         | 
| 520 | 
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 521 | 
            +
                          #   request = Google::Cloud::Batch::V1::ListJobsRequest.new
         | 
| 522 | 
            +
                          #
         | 
| 523 | 
            +
                          #   # Call the list_jobs method.
         | 
| 524 | 
            +
                          #   result = client.list_jobs request
         | 
| 525 | 
            +
                          #
         | 
| 526 | 
            +
                          #   # The returned object is of type Gapic::PagedEnumerable. You can iterate
         | 
| 527 | 
            +
                          #   # over elements, and API calls will be issued to fetch pages as needed.
         | 
| 528 | 
            +
                          #   result.each do |item|
         | 
| 529 | 
            +
                          #     # Each element is of type ::Google::Cloud::Batch::V1::Job.
         | 
| 530 | 
            +
                          #     p item
         | 
| 531 | 
            +
                          #   end
         | 
| 532 | 
            +
                          #
         | 
| 458 533 | 
             
                          def list_jobs request, options = nil
         | 
| 459 534 | 
             
                            raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 460 535 |  | 
| @@ -517,6 +592,22 @@ module Google | |
| 517 592 | 
             
                          # @return [::Google::Cloud::Batch::V1::Task]
         | 
| 518 593 | 
             
                          #
         | 
| 519 594 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 595 | 
            +
                          #
         | 
| 596 | 
            +
                          # @example Basic example
         | 
| 597 | 
            +
                          #   require "google/cloud/batch/v1"
         | 
| 598 | 
            +
                          #
         | 
| 599 | 
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         | 
| 600 | 
            +
                          #   client = Google::Cloud::Batch::V1::BatchService::Rest::Client.new
         | 
| 601 | 
            +
                          #
         | 
| 602 | 
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 603 | 
            +
                          #   request = Google::Cloud::Batch::V1::GetTaskRequest.new
         | 
| 604 | 
            +
                          #
         | 
| 605 | 
            +
                          #   # Call the get_task method.
         | 
| 606 | 
            +
                          #   result = client.get_task request
         | 
| 607 | 
            +
                          #
         | 
| 608 | 
            +
                          #   # The returned object is of type Google::Cloud::Batch::V1::Task.
         | 
| 609 | 
            +
                          #   p result
         | 
| 610 | 
            +
                          #
         | 
| 520 611 | 
             
                          def get_task request, options = nil
         | 
| 521 612 | 
             
                            raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 522 613 |  | 
| @@ -589,6 +680,26 @@ module Google | |
| 589 680 | 
             
                          # @return [::Google::Cloud::Batch::V1::ListTasksResponse]
         | 
| 590 681 | 
             
                          #
         | 
| 591 682 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 683 | 
            +
                          #
         | 
| 684 | 
            +
                          # @example Basic example
         | 
| 685 | 
            +
                          #   require "google/cloud/batch/v1"
         | 
| 686 | 
            +
                          #
         | 
| 687 | 
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         | 
| 688 | 
            +
                          #   client = Google::Cloud::Batch::V1::BatchService::Rest::Client.new
         | 
| 689 | 
            +
                          #
         | 
| 690 | 
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 691 | 
            +
                          #   request = Google::Cloud::Batch::V1::ListTasksRequest.new
         | 
| 692 | 
            +
                          #
         | 
| 693 | 
            +
                          #   # Call the list_tasks method.
         | 
| 694 | 
            +
                          #   result = client.list_tasks request
         | 
| 695 | 
            +
                          #
         | 
| 696 | 
            +
                          #   # The returned object is of type Gapic::PagedEnumerable. You can iterate
         | 
| 697 | 
            +
                          #   # over elements, and API calls will be issued to fetch pages as needed.
         | 
| 698 | 
            +
                          #   result.each do |item|
         | 
| 699 | 
            +
                          #     # Each element is of type ::Google::Cloud::Batch::V1::Task.
         | 
| 700 | 
            +
                          #     p item
         | 
| 701 | 
            +
                          #   end
         | 
| 702 | 
            +
                          #
         | 
| 592 703 | 
             
                          def list_tasks request, options = nil
         | 
| 593 704 | 
             
                            raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 594 705 |  | 
| @@ -136,6 +136,26 @@ module Google | |
| 136 136 | 
             
                          # @return [::Gapic::Operation]
         | 
| 137 137 | 
             
                          #
         | 
| 138 138 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 139 | 
            +
                          #
         | 
| 140 | 
            +
                          # @example Basic example
         | 
| 141 | 
            +
                          #   require "google/longrunning"
         | 
| 142 | 
            +
                          #
         | 
| 143 | 
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         | 
| 144 | 
            +
                          #   client = Google::Longrunning::Operations::Rest::Client.new
         | 
| 145 | 
            +
                          #
         | 
| 146 | 
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 147 | 
            +
                          #   request = Google::Longrunning::ListOperationsRequest.new
         | 
| 148 | 
            +
                          #
         | 
| 149 | 
            +
                          #   # Call the list_operations method.
         | 
| 150 | 
            +
                          #   result = client.list_operations request
         | 
| 151 | 
            +
                          #
         | 
| 152 | 
            +
                          #   # The returned object is of type Gapic::PagedEnumerable. You can iterate
         | 
| 153 | 
            +
                          #   # over elements, and API calls will be issued to fetch pages as needed.
         | 
| 154 | 
            +
                          #   result.each do |item|
         | 
| 155 | 
            +
                          #     # Each element is of type ::Google::Longrunning::Operation.
         | 
| 156 | 
            +
                          #     p item
         | 
| 157 | 
            +
                          #   end
         | 
| 158 | 
            +
                          #
         | 
| 139 159 | 
             
                          def list_operations request, options = nil
         | 
| 140 160 | 
             
                            raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 141 161 |  | 
| @@ -201,6 +221,29 @@ module Google | |
| 201 221 | 
             
                          # @return [::Gapic::Operation]
         | 
| 202 222 | 
             
                          #
         | 
| 203 223 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 224 | 
            +
                          #
         | 
| 225 | 
            +
                          # @example Basic example
         | 
| 226 | 
            +
                          #   require "google/longrunning"
         | 
| 227 | 
            +
                          #
         | 
| 228 | 
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         | 
| 229 | 
            +
                          #   client = Google::Longrunning::Operations::Rest::Client.new
         | 
| 230 | 
            +
                          #
         | 
| 231 | 
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 232 | 
            +
                          #   request = Google::Longrunning::GetOperationRequest.new
         | 
| 233 | 
            +
                          #
         | 
| 234 | 
            +
                          #   # Call the get_operation method.
         | 
| 235 | 
            +
                          #   result = client.get_operation request
         | 
| 236 | 
            +
                          #
         | 
| 237 | 
            +
                          #   # The returned object is of type Gapic::Operation. You can use it to
         | 
| 238 | 
            +
                          #   # check the status of an operation, cancel it, or wait for results.
         | 
| 239 | 
            +
                          #   # Here is how to wait for a response.
         | 
| 240 | 
            +
                          #   result.wait_until_done! timeout: 60
         | 
| 241 | 
            +
                          #   if result.response?
         | 
| 242 | 
            +
                          #     p result.response
         | 
| 243 | 
            +
                          #   else
         | 
| 244 | 
            +
                          #     puts "No response received."
         | 
| 245 | 
            +
                          #   end
         | 
| 246 | 
            +
                          #
         | 
| 204 247 | 
             
                          def get_operation request, options = nil
         | 
| 205 248 | 
             
                            raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 206 249 |  | 
| @@ -267,6 +310,22 @@ module Google | |
| 267 310 | 
             
                          # @return [::Google::Protobuf::Empty]
         | 
| 268 311 | 
             
                          #
         | 
| 269 312 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 313 | 
            +
                          #
         | 
| 314 | 
            +
                          # @example Basic example
         | 
| 315 | 
            +
                          #   require "google/longrunning"
         | 
| 316 | 
            +
                          #
         | 
| 317 | 
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         | 
| 318 | 
            +
                          #   client = Google::Longrunning::Operations::Rest::Client.new
         | 
| 319 | 
            +
                          #
         | 
| 320 | 
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 321 | 
            +
                          #   request = Google::Longrunning::DeleteOperationRequest.new
         | 
| 322 | 
            +
                          #
         | 
| 323 | 
            +
                          #   # Call the delete_operation method.
         | 
| 324 | 
            +
                          #   result = client.delete_operation request
         | 
| 325 | 
            +
                          #
         | 
| 326 | 
            +
                          #   # The returned object is of type Google::Protobuf::Empty.
         | 
| 327 | 
            +
                          #   p result
         | 
| 328 | 
            +
                          #
         | 
| 270 329 | 
             
                          def delete_operation request, options = nil
         | 
| 271 330 | 
             
                            raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 272 331 |  | 
| @@ -338,6 +397,22 @@ module Google | |
| 338 397 | 
             
                          # @return [::Google::Protobuf::Empty]
         | 
| 339 398 | 
             
                          #
         | 
| 340 399 | 
             
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 400 | 
            +
                          #
         | 
| 401 | 
            +
                          # @example Basic example
         | 
| 402 | 
            +
                          #   require "google/longrunning"
         | 
| 403 | 
            +
                          #
         | 
| 404 | 
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         | 
| 405 | 
            +
                          #   client = Google::Longrunning::Operations::Rest::Client.new
         | 
| 406 | 
            +
                          #
         | 
| 407 | 
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 408 | 
            +
                          #   request = Google::Longrunning::CancelOperationRequest.new
         | 
| 409 | 
            +
                          #
         | 
| 410 | 
            +
                          #   # Call the cancel_operation method.
         | 
| 411 | 
            +
                          #   result = client.cancel_operation request
         | 
| 412 | 
            +
                          #
         | 
| 413 | 
            +
                          #   # The returned object is of type Google::Protobuf::Empty.
         | 
| 414 | 
            +
                          #   p result
         | 
| 415 | 
            +
                          #
         | 
| 341 416 | 
             
                          def cancel_operation request, options = nil
         | 
| 342 417 | 
             
                            raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 343 418 |  | 
| @@ -167,7 +167,8 @@ module Google | |
| 167 167 | 
             
                          credentials:  credentials,
         | 
| 168 168 | 
             
                          endpoint:     @config.endpoint,
         | 
| 169 169 | 
             
                          channel_args: @config.channel_args,
         | 
| 170 | 
            -
                          interceptors: @config.interceptors
         | 
| 170 | 
            +
                          interceptors: @config.interceptors,
         | 
| 171 | 
            +
                          channel_pool_config: @config.channel_pool
         | 
| 171 172 | 
             
                        )
         | 
| 172 173 | 
             
                      end
         | 
| 173 174 |  | 
| @@ -587,6 +588,14 @@ module Google | |
| 587 588 | 
             
                          end
         | 
| 588 589 | 
             
                        end
         | 
| 589 590 |  | 
| 591 | 
            +
                        ##
         | 
| 592 | 
            +
                        # Configuration for the channel pool
         | 
| 593 | 
            +
                        # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
         | 
| 594 | 
            +
                        #
         | 
| 595 | 
            +
                        def channel_pool
         | 
| 596 | 
            +
                          @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
         | 
| 597 | 
            +
                        end
         | 
| 598 | 
            +
             | 
| 590 599 | 
             
                        ##
         | 
| 591 600 | 
             
                        # Configuration RPC class for the IAMPolicy API.
         | 
| 592 601 | 
             
                        #
         | 
| @@ -214,6 +214,22 @@ module Google | |
| 214 214 | 
             
                        # @return [::Google::Iam::V1::Policy]
         | 
| 215 215 | 
             
                        #
         | 
| 216 216 | 
             
                        # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 217 | 
            +
                        #
         | 
| 218 | 
            +
                        # @example Basic example
         | 
| 219 | 
            +
                        #   require "google/iam/v1"
         | 
| 220 | 
            +
                        #
         | 
| 221 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 222 | 
            +
                        #   client = Google::Iam::V1::IAMPolicy::Rest::Client.new
         | 
| 223 | 
            +
                        #
         | 
| 224 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 225 | 
            +
                        #   request = Google::Iam::V1::SetIamPolicyRequest.new
         | 
| 226 | 
            +
                        #
         | 
| 227 | 
            +
                        #   # Call the set_iam_policy method.
         | 
| 228 | 
            +
                        #   result = client.set_iam_policy request
         | 
| 229 | 
            +
                        #
         | 
| 230 | 
            +
                        #   # The returned object is of type Google::Iam::V1::Policy.
         | 
| 231 | 
            +
                        #   p result
         | 
| 232 | 
            +
                        #
         | 
| 217 233 | 
             
                        def set_iam_policy request, options = nil
         | 
| 218 234 | 
             
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 219 235 |  | 
| @@ -282,6 +298,22 @@ module Google | |
| 282 298 | 
             
                        # @return [::Google::Iam::V1::Policy]
         | 
| 283 299 | 
             
                        #
         | 
| 284 300 | 
             
                        # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 301 | 
            +
                        #
         | 
| 302 | 
            +
                        # @example Basic example
         | 
| 303 | 
            +
                        #   require "google/iam/v1"
         | 
| 304 | 
            +
                        #
         | 
| 305 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 306 | 
            +
                        #   client = Google::Iam::V1::IAMPolicy::Rest::Client.new
         | 
| 307 | 
            +
                        #
         | 
| 308 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 309 | 
            +
                        #   request = Google::Iam::V1::GetIamPolicyRequest.new
         | 
| 310 | 
            +
                        #
         | 
| 311 | 
            +
                        #   # Call the get_iam_policy method.
         | 
| 312 | 
            +
                        #   result = client.get_iam_policy request
         | 
| 313 | 
            +
                        #
         | 
| 314 | 
            +
                        #   # The returned object is of type Google::Iam::V1::Policy.
         | 
| 315 | 
            +
                        #   p result
         | 
| 316 | 
            +
                        #
         | 
| 285 317 | 
             
                        def get_iam_policy request, options = nil
         | 
| 286 318 | 
             
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 287 319 |  | 
| @@ -356,6 +388,22 @@ module Google | |
| 356 388 | 
             
                        # @return [::Google::Iam::V1::TestIamPermissionsResponse]
         | 
| 357 389 | 
             
                        #
         | 
| 358 390 | 
             
                        # @raise [::Google::Cloud::Error] if the REST call is aborted.
         | 
| 391 | 
            +
                        #
         | 
| 392 | 
            +
                        # @example Basic example
         | 
| 393 | 
            +
                        #   require "google/iam/v1"
         | 
| 394 | 
            +
                        #
         | 
| 395 | 
            +
                        #   # Create a client object. The client can be reused for multiple calls.
         | 
| 396 | 
            +
                        #   client = Google::Iam::V1::IAMPolicy::Rest::Client.new
         | 
| 397 | 
            +
                        #
         | 
| 398 | 
            +
                        #   # Create a request. To set request fields, pass in keyword arguments.
         | 
| 399 | 
            +
                        #   request = Google::Iam::V1::TestIamPermissionsRequest.new
         | 
| 400 | 
            +
                        #
         | 
| 401 | 
            +
                        #   # Call the test_iam_permissions method.
         | 
| 402 | 
            +
                        #   result = client.test_iam_permissions request
         | 
| 403 | 
            +
                        #
         | 
| 404 | 
            +
                        #   # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
         | 
| 405 | 
            +
                        #   p result
         | 
| 406 | 
            +
                        #
         | 
| 359 407 | 
             
                        def test_iam_permissions request, options = nil
         | 
| 360 408 | 
             
                          raise ::ArgumentError, "request must be provided" if request.nil?
         | 
| 361 409 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: google-cloud-batch-v1
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.11.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Google LLC
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2023-09- | 
| 11 | 
            +
            date: 2023-09-12 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: gapic-common
         | 
| @@ -16,7 +16,7 @@ dependencies: | |
| 16 16 | 
             
                requirements:
         | 
| 17 17 | 
             
                - - ">="
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version: 0. | 
| 19 | 
            +
                    version: 0.20.0
         | 
| 20 20 | 
             
                - - "<"
         | 
| 21 21 | 
             
                  - !ruby/object:Gem::Version
         | 
| 22 22 | 
             
                    version: 2.a
         | 
| @@ -26,7 +26,7 @@ dependencies: | |
| 26 26 | 
             
                requirements:
         | 
| 27 27 | 
             
                - - ">="
         | 
| 28 28 | 
             
                  - !ruby/object:Gem::Version
         | 
| 29 | 
            -
                    version: 0. | 
| 29 | 
            +
                    version: 0.20.0
         | 
| 30 30 | 
             
                - - "<"
         | 
| 31 31 | 
             
                  - !ruby/object:Gem::Version
         | 
| 32 32 | 
             
                    version: 2.a
         |