google-apis-run_v1 0.97.0 → 0.98.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89d9ef129932e654e74b79f6f8204cc710232032ecdebcef854515daebc58b52
4
- data.tar.gz: f2106d41db469bfa89b9bedb7f2c1c5302fba477ab4dad17c1eb4908a9678cff
3
+ metadata.gz: 900ac0445155ed2cb5fd3c3e4fd7068fcde9e1e2c2699eda0ebb18678e99f6f5
4
+ data.tar.gz: 6cdf2d9f65e5a648165a4313af4b96a6118dbf39b66e4cc817a801a1887ac8ef
5
5
  SHA512:
6
- metadata.gz: 946f4cc8fae45e583ce810263ec9622eec5f2e0920125b79e10ff460f60a83ea2d4570f42465171605d0d1c6f0849c4a6ca64de720238e13ba88db655fdf47d2
7
- data.tar.gz: eb48eb5697b891b6801587bce675493531f8c8ce57e686f91689b1cb39a3dc74d73672ea258a55ccb9ae2bb2aaebaf129444c001c1f426c598e2e24f889171f9
6
+ metadata.gz: eb3bd78ddc6edeec18c1ddcac4cf6f9ef86431022c2b500cc838e4a1fcaf7d738b2e5bdad730bd7eaaefad5a349595a4746636ac422ac3ef9bb2210f49705848
7
+ data.tar.gz: dadcfae86626ac50c74dadc03f0bd66cf26cc22be0d2079e93f59584a1b6c496b053c1e24de80512289e67ccf7a46e9ce63a12f335da3a3f90354171f55aec35
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-run_v1
2
2
 
3
+ ### v0.98.0 (2026-01-25)
4
+
5
+ * Regenerated from discovery document revision 20260117
6
+
3
7
  ### v0.97.0 (2026-01-18)
4
8
 
5
9
  * Regenerated from discovery document revision 20260109
@@ -3688,6 +3688,98 @@ module Google
3688
3688
  end
3689
3689
  end
3690
3690
 
3691
+ # Instance represents the configuration of a single Instance, which references a
3692
+ # container image which is run to completion.
3693
+ class Instance
3694
+ include Google::Apis::Core::Hashable
3695
+
3696
+ # Optional. APIVersion defines the versioned schema of this representation of an
3697
+ # object. Servers should convert recognized schemas to the latest internal value,
3698
+ # and may reject unrecognized values.
3699
+ # Corresponds to the JSON property `apiVersion`
3700
+ # @return [String]
3701
+ attr_accessor :api_version
3702
+
3703
+ # Optional. Kind is a string value representing the REST resource this object
3704
+ # represents. Servers may infer this from the endpoint the client submits
3705
+ # requests to. Cannot be updated. In CamelCase.
3706
+ # Corresponds to the JSON property `kind`
3707
+ # @return [String]
3708
+ attr_accessor :kind
3709
+
3710
+ # google.cloud.run.meta.v1.ObjectMeta is metadata that all persisted resources
3711
+ # must have, which includes all objects users must create.
3712
+ # Corresponds to the JSON property `metadata`
3713
+ # @return [Google::Apis::RunV1::ObjectMeta]
3714
+ attr_accessor :metadata
3715
+
3716
+ # InstanceSpec describes how the Instance will look.
3717
+ # Corresponds to the JSON property `spec`
3718
+ # @return [Google::Apis::RunV1::InstanceSpec]
3719
+ attr_accessor :spec
3720
+
3721
+ # InstanceStatus represents the current state of a Instance.
3722
+ # Corresponds to the JSON property `status`
3723
+ # @return [Google::Apis::RunV1::InstanceStatus]
3724
+ attr_accessor :status
3725
+
3726
+ def initialize(**args)
3727
+ update!(**args)
3728
+ end
3729
+
3730
+ # Update properties of this object
3731
+ def update!(**args)
3732
+ @api_version = args[:api_version] if args.key?(:api_version)
3733
+ @kind = args[:kind] if args.key?(:kind)
3734
+ @metadata = args[:metadata] if args.key?(:metadata)
3735
+ @spec = args[:spec] if args.key?(:spec)
3736
+ @status = args[:status] if args.key?(:status)
3737
+ end
3738
+ end
3739
+
3740
+ # InstanceSpec describes how the Instance will look.
3741
+ class InstanceSpec
3742
+ include Google::Apis::Core::Hashable
3743
+
3744
+ # Optional. List of containers belonging to the Instance. We disallow a number
3745
+ # of fields on this Container.
3746
+ # Corresponds to the JSON property `containers`
3747
+ # @return [Array<Google::Apis::RunV1::Container>]
3748
+ attr_accessor :containers
3749
+
3750
+ # Optional. The Node Selector configuration. Map of selector key to a value
3751
+ # which matches a node.
3752
+ # Corresponds to the JSON property `nodeSelector`
3753
+ # @return [Hash<String,String>]
3754
+ attr_accessor :node_selector
3755
+
3756
+ # Optional. Email address of the IAM service account associated with the
3757
+ # Instance. The service account represents the identity of the running container,
3758
+ # and determines what permissions the Instance has. If not provided, the
3759
+ # Instance will use the project's default service account.
3760
+ # Corresponds to the JSON property `serviceAccountName`
3761
+ # @return [String]
3762
+ attr_accessor :service_account_name
3763
+
3764
+ # Optional. List of volumes that can be mounted by containers belonging to the
3765
+ # Instance.
3766
+ # Corresponds to the JSON property `volumes`
3767
+ # @return [Array<Google::Apis::RunV1::Volume>]
3768
+ attr_accessor :volumes
3769
+
3770
+ def initialize(**args)
3771
+ update!(**args)
3772
+ end
3773
+
3774
+ # Update properties of this object
3775
+ def update!(**args)
3776
+ @containers = args[:containers] if args.key?(:containers)
3777
+ @node_selector = args[:node_selector] if args.key?(:node_selector)
3778
+ @service_account_name = args[:service_account_name] if args.key?(:service_account_name)
3779
+ @volumes = args[:volumes] if args.key?(:volumes)
3780
+ end
3781
+ end
3782
+
3691
3783
  # Holds a single instance split entry for the Worker. Allocations can be done to
3692
3784
  # a specific Revision name, or pointing to the latest Ready Revision.
3693
3785
  class InstanceSplit
@@ -3724,6 +3816,41 @@ module Google
3724
3816
  end
3725
3817
  end
3726
3818
 
3819
+ # InstanceStatus represents the current state of a Instance.
3820
+ class InstanceStatus
3821
+ include Google::Apis::Core::Hashable
3822
+
3823
+ # Output only. Conditions communicate information about ongoing/complete
3824
+ # reconciliation processes that bring the "spec" inline with the observed state
3825
+ # of the world. Instance-specific conditions include: * `Ready`: `True` when the
3826
+ # Instance is ready to be executed.
3827
+ # Corresponds to the JSON property `conditions`
3828
+ # @return [Array<Google::Apis::RunV1::GoogleCloudRunV1Condition>]
3829
+ attr_accessor :conditions
3830
+
3831
+ # Optional. URI where logs for this execution can be found in Cloud Console.
3832
+ # Corresponds to the JSON property `logUri`
3833
+ # @return [String]
3834
+ attr_accessor :log_uri
3835
+
3836
+ # Output only. The 'generation' of the Instance that was last processed by the
3837
+ # controller.
3838
+ # Corresponds to the JSON property `observedGeneration`
3839
+ # @return [Fixnum]
3840
+ attr_accessor :observed_generation
3841
+
3842
+ def initialize(**args)
3843
+ update!(**args)
3844
+ end
3845
+
3846
+ # Update properties of this object
3847
+ def update!(**args)
3848
+ @conditions = args[:conditions] if args.key?(:conditions)
3849
+ @log_uri = args[:log_uri] if args.key?(:log_uri)
3850
+ @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
3851
+ end
3852
+ end
3853
+
3727
3854
  # Job represents the configuration of a single job, which references a container
3728
3855
  # image which is run to completion.
3729
3856
  class Job
@@ -4049,6 +4176,50 @@ module Google
4049
4176
  end
4050
4177
  end
4051
4178
 
4179
+ # ListInstancesResponse is a list of Instances resources.
4180
+ class ListInstancesResponse
4181
+ include Google::Apis::Core::Hashable
4182
+
4183
+ # The API version for this call such as "run.googleapis.com/v1".
4184
+ # Corresponds to the JSON property `apiVersion`
4185
+ # @return [String]
4186
+ attr_accessor :api_version
4187
+
4188
+ # List of Instances.
4189
+ # Corresponds to the JSON property `items`
4190
+ # @return [Array<Google::Apis::RunV1::Instance>]
4191
+ attr_accessor :items
4192
+
4193
+ # The kind of this resource, in this case "InstancesList".
4194
+ # Corresponds to the JSON property `kind`
4195
+ # @return [String]
4196
+ attr_accessor :kind
4197
+
4198
+ # Metadata for synthetic resources like List. In Cloud Run, all List Resources
4199
+ # Responses will have a ListMeta instead of ObjectMeta.
4200
+ # Corresponds to the JSON property `metadata`
4201
+ # @return [Google::Apis::RunV1::ListMeta]
4202
+ attr_accessor :metadata
4203
+
4204
+ # Locations that could not be reached.
4205
+ # Corresponds to the JSON property `unreachable`
4206
+ # @return [Array<String>]
4207
+ attr_accessor :unreachable
4208
+
4209
+ def initialize(**args)
4210
+ update!(**args)
4211
+ end
4212
+
4213
+ # Update properties of this object
4214
+ def update!(**args)
4215
+ @api_version = args[:api_version] if args.key?(:api_version)
4216
+ @items = args[:items] if args.key?(:items)
4217
+ @kind = args[:kind] if args.key?(:kind)
4218
+ @metadata = args[:metadata] if args.key?(:metadata)
4219
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
4220
+ end
4221
+ end
4222
+
4052
4223
  # ListJobsResponse is a list of Jobs resources.
4053
4224
  class ListJobsResponse
4054
4225
  include Google::Apis::Core::Hashable
@@ -5683,6 +5854,19 @@ module Google
5683
5854
  end
5684
5855
  end
5685
5856
 
5857
+ # Request message for starting a stopped Instance.
5858
+ class StartInstanceRequest
5859
+ include Google::Apis::Core::Hashable
5860
+
5861
+ def initialize(**args)
5862
+ update!(**args)
5863
+ end
5864
+
5865
+ # Update properties of this object
5866
+ def update!(**args)
5867
+ end
5868
+ end
5869
+
5686
5870
  # Status is a return value for calls that don't return other objects.
5687
5871
  class Status
5688
5872
  include Google::Apis::Core::Hashable
@@ -5837,6 +6021,19 @@ module Google
5837
6021
  end
5838
6022
  end
5839
6023
 
6024
+ # Request message for stopping a running Instance.
6025
+ class StopInstanceRequest
6026
+ include Google::Apis::Core::Hashable
6027
+
6028
+ def initialize(**args)
6029
+ update!(**args)
6030
+ end
6031
+
6032
+ # Update properties of this object
6033
+ def update!(**args)
6034
+ end
6035
+ end
6036
+
5840
6037
  # TCPSocketAction describes an action based on opening a socket
5841
6038
  class TcpSocketAction
5842
6039
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RunV1
18
18
  # Version of the google-apis-run_v1 gem
19
- GEM_VERSION = "0.97.0"
19
+ GEM_VERSION = "0.98.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260109"
25
+ REVISION = "20260117"
26
26
  end
27
27
  end
28
28
  end
@@ -514,12 +514,30 @@ module Google
514
514
  include Google::Apis::Core::JsonObjectSupport
515
515
  end
516
516
 
517
+ class Instance
518
+ class Representation < Google::Apis::Core::JsonRepresentation; end
519
+
520
+ include Google::Apis::Core::JsonObjectSupport
521
+ end
522
+
523
+ class InstanceSpec
524
+ class Representation < Google::Apis::Core::JsonRepresentation; end
525
+
526
+ include Google::Apis::Core::JsonObjectSupport
527
+ end
528
+
517
529
  class InstanceSplit
518
530
  class Representation < Google::Apis::Core::JsonRepresentation; end
519
531
 
520
532
  include Google::Apis::Core::JsonObjectSupport
521
533
  end
522
534
 
535
+ class InstanceStatus
536
+ class Representation < Google::Apis::Core::JsonRepresentation; end
537
+
538
+ include Google::Apis::Core::JsonObjectSupport
539
+ end
540
+
523
541
  class Job
524
542
  class Representation < Google::Apis::Core::JsonRepresentation; end
525
543
 
@@ -568,6 +586,12 @@ module Google
568
586
  include Google::Apis::Core::JsonObjectSupport
569
587
  end
570
588
 
589
+ class ListInstancesResponse
590
+ class Representation < Google::Apis::Core::JsonRepresentation; end
591
+
592
+ include Google::Apis::Core::JsonObjectSupport
593
+ end
594
+
571
595
  class ListJobsResponse
572
596
  class Representation < Google::Apis::Core::JsonRepresentation; end
573
597
 
@@ -772,6 +796,12 @@ module Google
772
796
  include Google::Apis::Core::JsonObjectSupport
773
797
  end
774
798
 
799
+ class StartInstanceRequest
800
+ class Representation < Google::Apis::Core::JsonRepresentation; end
801
+
802
+ include Google::Apis::Core::JsonObjectSupport
803
+ end
804
+
775
805
  class Status
776
806
  class Representation < Google::Apis::Core::JsonRepresentation; end
777
807
 
@@ -790,6 +820,12 @@ module Google
790
820
  include Google::Apis::Core::JsonObjectSupport
791
821
  end
792
822
 
823
+ class StopInstanceRequest
824
+ class Representation < Google::Apis::Core::JsonRepresentation; end
825
+
826
+ include Google::Apis::Core::JsonObjectSupport
827
+ end
828
+
793
829
  class TcpSocketAction
794
830
  class Representation < Google::Apis::Core::JsonRepresentation; end
795
831
 
@@ -1803,6 +1839,32 @@ module Google
1803
1839
  end
1804
1840
  end
1805
1841
 
1842
+ class Instance
1843
+ # @private
1844
+ class Representation < Google::Apis::Core::JsonRepresentation
1845
+ property :api_version, as: 'apiVersion'
1846
+ property :kind, as: 'kind'
1847
+ property :metadata, as: 'metadata', class: Google::Apis::RunV1::ObjectMeta, decorator: Google::Apis::RunV1::ObjectMeta::Representation
1848
+
1849
+ property :spec, as: 'spec', class: Google::Apis::RunV1::InstanceSpec, decorator: Google::Apis::RunV1::InstanceSpec::Representation
1850
+
1851
+ property :status, as: 'status', class: Google::Apis::RunV1::InstanceStatus, decorator: Google::Apis::RunV1::InstanceStatus::Representation
1852
+
1853
+ end
1854
+ end
1855
+
1856
+ class InstanceSpec
1857
+ # @private
1858
+ class Representation < Google::Apis::Core::JsonRepresentation
1859
+ collection :containers, as: 'containers', class: Google::Apis::RunV1::Container, decorator: Google::Apis::RunV1::Container::Representation
1860
+
1861
+ hash :node_selector, as: 'nodeSelector'
1862
+ property :service_account_name, as: 'serviceAccountName'
1863
+ collection :volumes, as: 'volumes', class: Google::Apis::RunV1::Volume, decorator: Google::Apis::RunV1::Volume::Representation
1864
+
1865
+ end
1866
+ end
1867
+
1806
1868
  class InstanceSplit
1807
1869
  # @private
1808
1870
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1812,6 +1874,16 @@ module Google
1812
1874
  end
1813
1875
  end
1814
1876
 
1877
+ class InstanceStatus
1878
+ # @private
1879
+ class Representation < Google::Apis::Core::JsonRepresentation
1880
+ collection :conditions, as: 'conditions', class: Google::Apis::RunV1::GoogleCloudRunV1Condition, decorator: Google::Apis::RunV1::GoogleCloudRunV1Condition::Representation
1881
+
1882
+ property :log_uri, as: 'logUri'
1883
+ property :observed_generation, as: 'observedGeneration'
1884
+ end
1885
+ end
1886
+
1815
1887
  class Job
1816
1888
  # @private
1817
1889
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1905,6 +1977,19 @@ module Google
1905
1977
  end
1906
1978
  end
1907
1979
 
1980
+ class ListInstancesResponse
1981
+ # @private
1982
+ class Representation < Google::Apis::Core::JsonRepresentation
1983
+ property :api_version, as: 'apiVersion'
1984
+ collection :items, as: 'items', class: Google::Apis::RunV1::Instance, decorator: Google::Apis::RunV1::Instance::Representation
1985
+
1986
+ property :kind, as: 'kind'
1987
+ property :metadata, as: 'metadata', class: Google::Apis::RunV1::ListMeta, decorator: Google::Apis::RunV1::ListMeta::Representation
1988
+
1989
+ collection :unreachable, as: 'unreachable'
1990
+ end
1991
+ end
1992
+
1908
1993
  class ListJobsResponse
1909
1994
  # @private
1910
1995
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2307,6 +2392,12 @@ module Google
2307
2392
  end
2308
2393
  end
2309
2394
 
2395
+ class StartInstanceRequest
2396
+ # @private
2397
+ class Representation < Google::Apis::Core::JsonRepresentation
2398
+ end
2399
+ end
2400
+
2310
2401
  class Status
2311
2402
  # @private
2312
2403
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2343,6 +2434,12 @@ module Google
2343
2434
  end
2344
2435
  end
2345
2436
 
2437
+ class StopInstanceRequest
2438
+ # @private
2439
+ class Representation < Google::Apis::Core::JsonRepresentation
2440
+ end
2441
+ end
2442
+
2346
2443
  class TcpSocketAction
2347
2444
  # @private
2348
2445
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -513,6 +513,240 @@ module Google
513
513
  execute_or_queue_command(command, &block)
514
514
  end
515
515
 
516
+ # Create a Instance.
517
+ # @param [String] parent
518
+ # Required. The namespace in which the Instance should be created. Replace `
519
+ # namespace` with the project ID or number. It takes the form namespaces/`
520
+ # namespace`. For example: namespaces/PROJECT_ID
521
+ # @param [Google::Apis::RunV1::Instance] instance_object
522
+ # @param [String] fields
523
+ # Selector specifying which fields to include in a partial response.
524
+ # @param [String] quota_user
525
+ # Available to use for quota purposes for server-side applications. Can be any
526
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
527
+ # @param [Google::Apis::RequestOptions] options
528
+ # Request-specific options
529
+ #
530
+ # @yield [result, err] Result & error if block supplied
531
+ # @yieldparam result [Google::Apis::RunV1::Instance] parsed result object
532
+ # @yieldparam err [StandardError] error object if request failed
533
+ #
534
+ # @return [Google::Apis::RunV1::Instance]
535
+ #
536
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
537
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
538
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
539
+ def create_namespace_instance(parent, instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
540
+ command = make_simple_command(:post, 'apis/run.googleapis.com/v1/{+parent}/instances', options)
541
+ command.request_representation = Google::Apis::RunV1::Instance::Representation
542
+ command.request_object = instance_object
543
+ command.response_representation = Google::Apis::RunV1::Instance::Representation
544
+ command.response_class = Google::Apis::RunV1::Instance
545
+ command.params['parent'] = parent unless parent.nil?
546
+ command.query['fields'] = fields unless fields.nil?
547
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
548
+ execute_or_queue_command(command, &block)
549
+ end
550
+
551
+ # Delete a Instance.
552
+ # @param [String] name
553
+ # Required. The name of the Instance to delete. Replace `namespace` with the
554
+ # project ID or number. It takes the form namespaces/`namespace`. For example:
555
+ # namespaces/PROJECT_ID
556
+ # @param [String] api_version
557
+ # Optional. Cloud Run currently ignores this parameter.
558
+ # @param [String] kind
559
+ # Optional. Cloud Run currently ignores this parameter.
560
+ # @param [String] propagation_policy
561
+ # Optional. Specifies the propagation policy of delete. Cloud Run currently
562
+ # ignores this setting, and deletes in the background. Please see kubernetes.io/
563
+ # docs/concepts/workloads/controllers/garbage-collection/ for more information.
564
+ # @param [String] fields
565
+ # Selector specifying which fields to include in a partial response.
566
+ # @param [String] quota_user
567
+ # Available to use for quota purposes for server-side applications. Can be any
568
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
569
+ # @param [Google::Apis::RequestOptions] options
570
+ # Request-specific options
571
+ #
572
+ # @yield [result, err] Result & error if block supplied
573
+ # @yieldparam result [Google::Apis::RunV1::Status] parsed result object
574
+ # @yieldparam err [StandardError] error object if request failed
575
+ #
576
+ # @return [Google::Apis::RunV1::Status]
577
+ #
578
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
579
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
580
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
581
+ def delete_namespace_instance(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
582
+ command = make_simple_command(:delete, 'apis/run.googleapis.com/v1/{+name}', options)
583
+ command.response_representation = Google::Apis::RunV1::Status::Representation
584
+ command.response_class = Google::Apis::RunV1::Status
585
+ command.params['name'] = name unless name.nil?
586
+ command.query['apiVersion'] = api_version unless api_version.nil?
587
+ command.query['kind'] = kind unless kind.nil?
588
+ command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
589
+ command.query['fields'] = fields unless fields.nil?
590
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
591
+ execute_or_queue_command(command, &block)
592
+ end
593
+
594
+ # Get an Instance.
595
+ # @param [String] name
596
+ # Required. The name of the Instance to retrieve. It takes the form namespaces/`
597
+ # namespace`/instances/`Instance_name` and the `endpoint` must be regional.
598
+ # Replace `namespace` with the project ID or number.
599
+ # @param [String] fields
600
+ # Selector specifying which fields to include in a partial response.
601
+ # @param [String] quota_user
602
+ # Available to use for quota purposes for server-side applications. Can be any
603
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
604
+ # @param [Google::Apis::RequestOptions] options
605
+ # Request-specific options
606
+ #
607
+ # @yield [result, err] Result & error if block supplied
608
+ # @yieldparam result [Google::Apis::RunV1::Instance] parsed result object
609
+ # @yieldparam err [StandardError] error object if request failed
610
+ #
611
+ # @return [Google::Apis::RunV1::Instance]
612
+ #
613
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
614
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
615
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
616
+ def get_namespace_instance(name, fields: nil, quota_user: nil, options: nil, &block)
617
+ command = make_simple_command(:get, 'apis/run.googleapis.com/v1/{+name}', options)
618
+ command.response_representation = Google::Apis::RunV1::Instance::Representation
619
+ command.response_class = Google::Apis::RunV1::Instance
620
+ command.params['name'] = name unless name.nil?
621
+ command.query['fields'] = fields unless fields.nil?
622
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
623
+ execute_or_queue_command(command, &block)
624
+ end
625
+
626
+ # List Instances. Results are sorted by creation time, descending.
627
+ # @param [String] parent
628
+ # Required. The namespace from which the Instances should be listed. Replace `
629
+ # namespace` with the project ID or number. It takes the form namespaces/`
630
+ # namespace`. For example: namespaces/PROJECT_ID
631
+ # @param [String] continue
632
+ # Optional. Optional encoded string to continue paging.
633
+ # @param [String] field_selector
634
+ # Optional. Not supported by Cloud Run.
635
+ # @param [Boolean] include_uninitialized
636
+ # Optional. Not supported by Cloud Run.
637
+ # @param [String] label_selector
638
+ # Optional. Allows to filter resources based on a label. Supported operations
639
+ # are =, !=, exists, in, and notIn.
640
+ # @param [Fixnum] limit
641
+ # Optional. The maximum number of records that should be returned.
642
+ # @param [String] resource_version
643
+ # Optional. Not supported by Cloud Run.
644
+ # @param [Boolean] watch
645
+ # Optional. Not supported by Cloud Run.
646
+ # @param [String] fields
647
+ # Selector specifying which fields to include in a partial response.
648
+ # @param [String] quota_user
649
+ # Available to use for quota purposes for server-side applications. Can be any
650
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
651
+ # @param [Google::Apis::RequestOptions] options
652
+ # Request-specific options
653
+ #
654
+ # @yield [result, err] Result & error if block supplied
655
+ # @yieldparam result [Google::Apis::RunV1::ListInstancesResponse] parsed result object
656
+ # @yieldparam err [StandardError] error object if request failed
657
+ #
658
+ # @return [Google::Apis::RunV1::ListInstancesResponse]
659
+ #
660
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
661
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
662
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
663
+ def list_namespace_instances(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
664
+ command = make_simple_command(:get, 'apis/run.googleapis.com/v1/{+parent}/instances', options)
665
+ command.response_representation = Google::Apis::RunV1::ListInstancesResponse::Representation
666
+ command.response_class = Google::Apis::RunV1::ListInstancesResponse
667
+ command.params['parent'] = parent unless parent.nil?
668
+ command.query['continue'] = continue unless continue.nil?
669
+ command.query['fieldSelector'] = field_selector unless field_selector.nil?
670
+ command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
671
+ command.query['labelSelector'] = label_selector unless label_selector.nil?
672
+ command.query['limit'] = limit unless limit.nil?
673
+ command.query['resourceVersion'] = resource_version unless resource_version.nil?
674
+ command.query['watch'] = watch unless watch.nil?
675
+ command.query['fields'] = fields unless fields.nil?
676
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
677
+ execute_or_queue_command(command, &block)
678
+ end
679
+
680
+ # Start an Instance which has been stopped.
681
+ # @param [String] name
682
+ # Required. The name of the Instance to run. Replace `namespace` with the
683
+ # project ID or number. It takes the form namespaces/`namespace`. For example:
684
+ # namespaces/PROJECT_ID
685
+ # @param [Google::Apis::RunV1::StartInstanceRequest] start_instance_request_object
686
+ # @param [String] fields
687
+ # Selector specifying which fields to include in a partial response.
688
+ # @param [String] quota_user
689
+ # Available to use for quota purposes for server-side applications. Can be any
690
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
691
+ # @param [Google::Apis::RequestOptions] options
692
+ # Request-specific options
693
+ #
694
+ # @yield [result, err] Result & error if block supplied
695
+ # @yieldparam result [Google::Apis::RunV1::Instance] parsed result object
696
+ # @yieldparam err [StandardError] error object if request failed
697
+ #
698
+ # @return [Google::Apis::RunV1::Instance]
699
+ #
700
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
701
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
702
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
703
+ def start_instance(name, start_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
704
+ command = make_simple_command(:post, 'apis/run.googleapis.com/v1/{+name}:start', options)
705
+ command.request_representation = Google::Apis::RunV1::StartInstanceRequest::Representation
706
+ command.request_object = start_instance_request_object
707
+ command.response_representation = Google::Apis::RunV1::Instance::Representation
708
+ command.response_class = Google::Apis::RunV1::Instance
709
+ command.params['name'] = name unless name.nil?
710
+ command.query['fields'] = fields unless fields.nil?
711
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
712
+ execute_or_queue_command(command, &block)
713
+ end
714
+
715
+ # Stop an Instance that is running.
716
+ # @param [String] name
717
+ # Required. The name of the Instance to run. Replace `namespace` with the
718
+ # project ID or number. It takes the form namespaces/`namespace`. For example:
719
+ # namespaces/PROJECT_ID
720
+ # @param [Google::Apis::RunV1::StopInstanceRequest] stop_instance_request_object
721
+ # @param [String] fields
722
+ # Selector specifying which fields to include in a partial response.
723
+ # @param [String] quota_user
724
+ # Available to use for quota purposes for server-side applications. Can be any
725
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
726
+ # @param [Google::Apis::RequestOptions] options
727
+ # Request-specific options
728
+ #
729
+ # @yield [result, err] Result & error if block supplied
730
+ # @yieldparam result [Google::Apis::RunV1::Instance] parsed result object
731
+ # @yieldparam err [StandardError] error object if request failed
732
+ #
733
+ # @return [Google::Apis::RunV1::Instance]
734
+ #
735
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
736
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
737
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
738
+ def stop_instance(name, stop_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
739
+ command = make_simple_command(:post, 'apis/run.googleapis.com/v1/{+name}:stop', options)
740
+ command.request_representation = Google::Apis::RunV1::StopInstanceRequest::Representation
741
+ command.request_object = stop_instance_request_object
742
+ command.response_representation = Google::Apis::RunV1::Instance::Representation
743
+ command.response_class = Google::Apis::RunV1::Instance
744
+ command.params['name'] = name unless name.nil?
745
+ command.query['fields'] = fields unless fields.nil?
746
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
747
+ execute_or_queue_command(command, &block)
748
+ end
749
+
516
750
  # Create a job.
517
751
  # @param [String] parent
518
752
  # Required. The namespace in which the job should be created. Replace `namespace`
@@ -1881,6 +2115,123 @@ module Google
1881
2115
  execute_or_queue_command(command, &block)
1882
2116
  end
1883
2117
 
2118
+ # Get the IAM Access Control policy currently in effect for the given instance.
2119
+ # This result does not include any inherited policies.
2120
+ # @param [String] resource
2121
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
2122
+ # names](https://cloud.google.com/apis/design/resource_names) for the
2123
+ # appropriate value for this field.
2124
+ # @param [Fixnum] options_requested_policy_version
2125
+ # Optional. The maximum policy version that will be used to format the policy.
2126
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
2127
+ # rejected. Requests for policies with any conditional role bindings must
2128
+ # specify version 3. Policies with no conditional role bindings may specify any
2129
+ # valid value or leave the field unset. The policy in the response might use the
2130
+ # policy version that you specified, or it might use a lower policy version. For
2131
+ # example, if you specify version 3, but the policy has no conditional role
2132
+ # bindings, the response uses version 1. To learn which resources support
2133
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2134
+ # google.com/iam/help/conditions/resource-policies).
2135
+ # @param [String] fields
2136
+ # Selector specifying which fields to include in a partial response.
2137
+ # @param [String] quota_user
2138
+ # Available to use for quota purposes for server-side applications. Can be any
2139
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2140
+ # @param [Google::Apis::RequestOptions] options
2141
+ # Request-specific options
2142
+ #
2143
+ # @yield [result, err] Result & error if block supplied
2144
+ # @yieldparam result [Google::Apis::RunV1::Policy] parsed result object
2145
+ # @yieldparam err [StandardError] error object if request failed
2146
+ #
2147
+ # @return [Google::Apis::RunV1::Policy]
2148
+ #
2149
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2150
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2151
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2152
+ def get_project_location_instance_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
2153
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
2154
+ command.response_representation = Google::Apis::RunV1::Policy::Representation
2155
+ command.response_class = Google::Apis::RunV1::Policy
2156
+ command.params['resource'] = resource unless resource.nil?
2157
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
2158
+ command.query['fields'] = fields unless fields.nil?
2159
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2160
+ execute_or_queue_command(command, &block)
2161
+ end
2162
+
2163
+ # Sets the IAM Access control policy for the specified instance. Overwrites any
2164
+ # existing policy.
2165
+ # @param [String] resource
2166
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
2167
+ # names](https://cloud.google.com/apis/design/resource_names) for the
2168
+ # appropriate value for this field.
2169
+ # @param [Google::Apis::RunV1::SetIamPolicyRequest] set_iam_policy_request_object
2170
+ # @param [String] fields
2171
+ # Selector specifying which fields to include in a partial response.
2172
+ # @param [String] quota_user
2173
+ # Available to use for quota purposes for server-side applications. Can be any
2174
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2175
+ # @param [Google::Apis::RequestOptions] options
2176
+ # Request-specific options
2177
+ #
2178
+ # @yield [result, err] Result & error if block supplied
2179
+ # @yieldparam result [Google::Apis::RunV1::Policy] parsed result object
2180
+ # @yieldparam err [StandardError] error object if request failed
2181
+ #
2182
+ # @return [Google::Apis::RunV1::Policy]
2183
+ #
2184
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2185
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2186
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2187
+ def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2188
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
2189
+ command.request_representation = Google::Apis::RunV1::SetIamPolicyRequest::Representation
2190
+ command.request_object = set_iam_policy_request_object
2191
+ command.response_representation = Google::Apis::RunV1::Policy::Representation
2192
+ command.response_class = Google::Apis::RunV1::Policy
2193
+ command.params['resource'] = resource unless resource.nil?
2194
+ command.query['fields'] = fields unless fields.nil?
2195
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2196
+ execute_or_queue_command(command, &block)
2197
+ end
2198
+
2199
+ # Returns permissions that a caller has on the specified instance. There are no
2200
+ # permissions required for making this API call.
2201
+ # @param [String] resource
2202
+ # REQUIRED: The resource for which the policy detail is being requested. See [
2203
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
2204
+ # appropriate value for this field.
2205
+ # @param [Google::Apis::RunV1::TestIamPermissionsRequest] test_iam_permissions_request_object
2206
+ # @param [String] fields
2207
+ # Selector specifying which fields to include in a partial response.
2208
+ # @param [String] quota_user
2209
+ # Available to use for quota purposes for server-side applications. Can be any
2210
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2211
+ # @param [Google::Apis::RequestOptions] options
2212
+ # Request-specific options
2213
+ #
2214
+ # @yield [result, err] Result & error if block supplied
2215
+ # @yieldparam result [Google::Apis::RunV1::TestIamPermissionsResponse] parsed result object
2216
+ # @yieldparam err [StandardError] error object if request failed
2217
+ #
2218
+ # @return [Google::Apis::RunV1::TestIamPermissionsResponse]
2219
+ #
2220
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2221
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2222
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2223
+ def test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2224
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
2225
+ command.request_representation = Google::Apis::RunV1::TestIamPermissionsRequest::Representation
2226
+ command.request_object = test_iam_permissions_request_object
2227
+ command.response_representation = Google::Apis::RunV1::TestIamPermissionsResponse::Representation
2228
+ command.response_class = Google::Apis::RunV1::TestIamPermissionsResponse
2229
+ command.params['resource'] = resource unless resource.nil?
2230
+ command.query['fields'] = fields unless fields.nil?
2231
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2232
+ execute_or_queue_command(command, &block)
2233
+ end
2234
+
1884
2235
  # Get the IAM Access Control policy currently in effect for the given job. This
1885
2236
  # result does not include any inherited policies.
1886
2237
  # @param [String] resource
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-run_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.97.0
4
+ version: 0.98.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-run_v1/v0.97.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-run_v1/v0.98.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v1
62
62
  rdoc_options: []
63
63
  require_paths: