All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.run.v2.CloudRun.Projects.Locations.Jobs.html Maven / Gradle / Ivy

There is a newer version: v2-rev20241213-2.0.0
Show newest version






CloudRun.Projects.Locations.Jobs (Cloud Run Admin API v2-rev20241025-2.0.0)












com.google.api.services.run.v2

Class CloudRun.Projects.Locations.Jobs

  • java.lang.Object
    • com.google.api.services.run.v2.CloudRun.Projects.Locations.Jobs
    • Constructor Detail

      • Jobs

        public Jobs()
    • Method Detail

      • create

        public CloudRun.Projects.Locations.Jobs.Create create(String parent,
                                                              GoogleCloudRunV2Job content)
                                                       throws IOException
        Creates a Job. Create a request for the method "jobs.create". This request holds the parameters needed by the run server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        parent - Required. The location and project in which this Job should be created. Format: projects/{project}/locations/{location}, where {project} can be project id or number.
        content - the GoogleCloudRunV2Job
        Returns:
        the request
        Throws:
        IOException
      • delete

        public CloudRun.Projects.Locations.Jobs.Delete delete(String name)
                                                       throws IOException
        Deletes a Job. Create a request for the method "jobs.delete". This request holds the parameters needed by the run server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number.
        Returns:
        the request
        Throws:
        IOException
      • get

        public CloudRun.Projects.Locations.Jobs.Get get(String name)
                                                 throws IOException
        Gets information about a Job. Create a request for the method "jobs.get". This request holds the parameters needed by the run server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number.
        Returns:
        the request
        Throws:
        IOException
      • getIamPolicy

        public CloudRun.Projects.Locations.Jobs.GetIamPolicy getIamPolicy(String resource)
                                                                   throws IOException
        Gets the IAM Access Control policy currently in effect for the given Job. This result does not include any inherited policies. Create a request for the method "jobs.getIamPolicy". This request holds the parameters needed by the run server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        resource - REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
        Returns:
        the request
        Throws:
        IOException
      • list

        public CloudRun.Projects.Locations.Jobs.List list(String parent)
                                                   throws IOException
        Lists Jobs. Results are sorted by creation time, descending. Create a request for the method "jobs.list". This request holds the parameters needed by the run server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        parent - Required. The location and project to list resources on. Format: projects/{project}/locations/{location}, where {project} can be project id or number.
        Returns:
        the request
        Throws:
        IOException
      • patch

        public CloudRun.Projects.Locations.Jobs.Patch patch(String name,
                                                            GoogleCloudRunV2Job content)
                                                     throws IOException
        Updates a Job. Create a request for the method "jobs.patch". This request holds the parameters needed by the run server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - The fully qualified name of this Job. Format: projects/{project}/locations/{location}/jobs/{job}
        content - the GoogleCloudRunV2Job
        Returns:
        the request
        Throws:
        IOException
      • run

        public CloudRun.Projects.Locations.Jobs.Run run(String name,
                                                        GoogleCloudRunV2RunJobRequest content)
                                                 throws IOException
        Triggers creation of a new Execution of this Job. Create a request for the method "jobs.run". This request holds the parameters needed by the run server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number.
        content - the GoogleCloudRunV2RunJobRequest
        Returns:
        the request
        Throws:
        IOException
      • setIamPolicy

        public CloudRun.Projects.Locations.Jobs.SetIamPolicy setIamPolicy(String resource,
                                                                          GoogleIamV1SetIamPolicyRequest content)
                                                                   throws IOException
        Sets the IAM Access control policy for the specified Job. Overwrites any existing policy. Create a request for the method "jobs.setIamPolicy". This request holds the parameters needed by the run server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        resource - REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
        content - the GoogleIamV1SetIamPolicyRequest
        Returns:
        the request
        Throws:
        IOException
      • testIamPermissions

        public CloudRun.Projects.Locations.Jobs.TestIamPermissions testIamPermissions(String resource,
                                                                                      GoogleIamV1TestIamPermissionsRequest content)
                                                                               throws IOException
        Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call. Create a request for the method "jobs.testIamPermissions". This request holds the parameters needed by the run server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        resource - REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
        content - the GoogleIamV1TestIamPermissionsRequest
        Returns:
        the request
        Throws:
        IOException
      • executions

        public CloudRun.Projects.Locations.Jobs.Executions executions()
        An accessor for creating requests from the Executions collection.

        The typical use is:

            CloudRun run = new CloudRun(...);
            CloudRun.Executions.List request = run.executions().list(parameters ...)
         
        Returns:
        the resource collection

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy