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

target.apidocs.com.google.api.services.cloudbuild.v2.CloudBuild.Projects.Locations.Connections.html Maven / Gradle / Ivy

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






CloudBuild.Projects.Locations.Connections (Cloud Build API v2-rev20241210-2.0.0)












com.google.api.services.cloudbuild.v2

Class CloudBuild.Projects.Locations.Connections

  • java.lang.Object
    • com.google.api.services.cloudbuild.v2.CloudBuild.Projects.Locations.Connections
    • Constructor Detail

      • Connections

        public Connections()
    • Method Detail

      • create

        public CloudBuild.Projects.Locations.Connections.Create create(String parent,
                                                                       Connection content)
                                                                throws IOException
        Creates a Connection. Create a request for the method "connections.create". This request holds the parameters needed by the cloudbuild server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        parent - Required. Project and location where the connection will be created. Format: `projects/locations`.
        content - the Connection
        Returns:
        the request
        Throws:
        IOException
      • delete

        public CloudBuild.Projects.Locations.Connections.Delete delete(String name)
                                                                throws IOException
        Deletes a single connection. Create a request for the method "connections.delete". This request holds the parameters needed by the cloudbuild server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - Required. The name of the Connection to delete. Format: `projects/locations/connections`.
        Returns:
        the request
        Throws:
        IOException
      • fetchLinkableRepositories

        public CloudBuild.Projects.Locations.Connections.FetchLinkableRepositories fetchLinkableRepositories(String connection)
                                                                                                      throws IOException
        FetchLinkableRepositories get repositories from SCM that are accessible and could be added to the connection. Create a request for the method "connections.fetchLinkableRepositories". This request holds the parameters needed by the cloudbuild server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        connection - Required. The name of the Connection. Format: `projects/locations/connections`.
        Returns:
        the request
        Throws:
        IOException
      • get

        public CloudBuild.Projects.Locations.Connections.Get get(String name)
                                                          throws IOException
        Gets details of a single connection. Create a request for the method "connections.get". This request holds the parameters needed by the cloudbuild server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - Required. The name of the Connection to retrieve. Format: `projects/locations/connections`.
        Returns:
        the request
        Throws:
        IOException
      • getIamPolicy

        public CloudBuild.Projects.Locations.Connections.GetIamPolicy getIamPolicy(String resource)
                                                                            throws IOException
        Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. Create a request for the method "connections.getIamPolicy". This request holds the parameters needed by the cloudbuild 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 CloudBuild.Projects.Locations.Connections.List list(String parent)
                                                            throws IOException
        Lists Connections in a given project and location. Create a request for the method "connections.list". This request holds the parameters needed by the cloudbuild server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        parent - Required. The parent, which owns this collection of Connections. Format: `projects/locations`.
        Returns:
        the request
        Throws:
        IOException
      • patch

        public CloudBuild.Projects.Locations.Connections.Patch patch(String name,
                                                                     Connection content)
                                                              throws IOException
        Updates a single connection. Create a request for the method "connections.patch". This request holds the parameters needed by the cloudbuild server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - Immutable. The resource name of the connection, in the format `projects/{project}/locations/{location}/connections/{connection_id}`.
        content - the Connection
        Returns:
        the request
        Throws:
        IOException
      • processWebhook

        public CloudBuild.Projects.Locations.Connections.ProcessWebhook processWebhook(String parent,
                                                                                       HttpBody content)
                                                                                throws IOException
        ProcessWebhook is called by the external SCM for notifying of events. Create a request for the method "connections.processWebhook". This request holds the parameters needed by the cloudbuild server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        parent - Required. Project and location where the webhook will be received. Format: `projects/locations`.
        content - the HttpBody
        Returns:
        the request
        Throws:
        IOException
      • setIamPolicy

        public CloudBuild.Projects.Locations.Connections.SetIamPolicy setIamPolicy(String resource,
                                                                                   SetIamPolicyRequest content)
                                                                            throws IOException
        Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. Create a request for the method "connections.setIamPolicy". This request holds the parameters needed by the cloudbuild 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 SetIamPolicyRequest
        Returns:
        the request
        Throws:
        IOException
      • testIamPermissions

        public CloudBuild.Projects.Locations.Connections.TestIamPermissions testIamPermissions(String resource,
                                                                                               TestIamPermissionsRequest content)
                                                                                        throws IOException
        Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. Create a request for the method "connections.testIamPermissions". This request holds the parameters needed by the cloudbuild 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 TestIamPermissionsRequest
        Returns:
        the request
        Throws:
        IOException
      • repositories

        public CloudBuild.Projects.Locations.Connections.Repositories repositories()
        An accessor for creating requests from the Repositories collection.

        The typical use is:

            CloudBuild cloudbuild = new CloudBuild(...);
            CloudBuild.Repositories.List request = cloudbuild.repositories().list(parameters ...)
         
        Returns:
        the resource collection

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy