@@ -3688,6 +3688,98 @@ def update!(**args)
36883688 end
36893689 end
36903690
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+
36913783 # Holds a single instance split entry for the Worker. Allocations can be done to
36923784 # a specific Revision name, or pointing to the latest Ready Revision.
36933785 class InstanceSplit
@@ -3724,6 +3816,41 @@ def update!(**args)
37243816 end
37253817 end
37263818
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+
37273854 # Job represents the configuration of a single job, which references a container
37283855 # image which is run to completion.
37293856 class Job
@@ -4049,6 +4176,50 @@ def update!(**args)
40494176 end
40504177 end
40514178
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+
40524223 # ListJobsResponse is a list of Jobs resources.
40534224 class ListJobsResponse
40544225 include Google ::Apis ::Core ::Hashable
@@ -5683,6 +5854,19 @@ def update!(**args)
56835854 end
56845855 end
56855856
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+
56865870 # Status is a return value for calls that don't return other objects.
56875871 class Status
56885872 include Google ::Apis ::Core ::Hashable
@@ -5837,6 +6021,19 @@ def update!(**args)
58376021 end
58386022 end
58396023
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+
58406037 # TCPSocketAction describes an action based on opening a socket
58416038 class TcpSocketAction
58426039 include Google ::Apis ::Core ::Hashable
0 commit comments