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

target.apidocs.com.google.api.services.securitycenter.v1.SecurityCommandCenter.Organizations.Sources.html Maven / Gradle / Ivy

There is a newer version: v1-rev20241111-2.0.0
Show newest version






SecurityCommandCenter.Organizations.Sources (Security Command Center API v1-rev20240926-2.0.0)












com.google.api.services.securitycenter.v1

Class SecurityCommandCenter.Organizations.Sources

  • java.lang.Object
    • com.google.api.services.securitycenter.v1.SecurityCommandCenter.Organizations.Sources
    • Constructor Detail

      • Sources

        public Sources()
    • Method Detail

      • create

        public SecurityCommandCenter.Organizations.Sources.Create create(String parent,
                                                                         Source content)
                                                                  throws IOException
        Creates a source. Create a request for the method "sources.create". This request holds the parameters needed by the securitycenter server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        parent - Required. Resource name of the new source's parent. Its format should be `organizations/[organization_id]`.
        content - the Source
        Returns:
        the request
        Throws:
        IOException
      • get

        public SecurityCommandCenter.Organizations.Sources.Get get(String name)
                                                            throws IOException
        Gets a source. Create a request for the method "sources.get". This request holds the parameters needed by the securitycenter server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - Required. Relative resource name of the source. Its format is `organizations/[organization_id]/source/[source_id]`.
        Returns:
        the request
        Throws:
        IOException
      • getIamPolicy

        public SecurityCommandCenter.Organizations.Sources.GetIamPolicy getIamPolicy(String resource,
                                                                                     GetIamPolicyRequest content)
                                                                              throws IOException
        Gets the access control policy on the specified Source. Create a request for the method "sources.getIamPolicy". This request holds the parameters needed by the securitycenter 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.
        content - the GetIamPolicyRequest
        Returns:
        the request
        Throws:
        IOException
      • list

        public SecurityCommandCenter.Organizations.Sources.List list(String parent)
                                                              throws IOException
        Lists all sources belonging to an organization. Create a request for the method "sources.list". This request holds the parameters needed by the securitycenter server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        parent - Required. Resource name of the parent of sources to list. Its format should be `organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[project_id]`.
        Returns:
        the request
        Throws:
        IOException
      • patch

        public SecurityCommandCenter.Organizations.Sources.Patch patch(String name,
                                                                       Source content)
                                                                throws IOException
        Updates a source. Create a request for the method "sources.patch". This request holds the parameters needed by the securitycenter server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}"
        content - the Source
        Returns:
        the request
        Throws:
        IOException
      • setIamPolicy

        public SecurityCommandCenter.Organizations.Sources.SetIamPolicy setIamPolicy(String resource,
                                                                                     SetIamPolicyRequest content)
                                                                              throws IOException
        Sets the access control policy on the specified Source. Create a request for the method "sources.setIamPolicy". This request holds the parameters needed by the securitycenter 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 SecurityCommandCenter.Organizations.Sources.TestIamPermissions testIamPermissions(String resource,
                                                                                                 TestIamPermissionsRequest content)
                                                                                          throws IOException
        Returns the permissions that a caller has on the specified source. Create a request for the method "sources.testIamPermissions". This request holds the parameters needed by the securitycenter 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
      • findings

        public SecurityCommandCenter.Organizations.Sources.Findings findings()
        An accessor for creating requests from the Findings collection.

        The typical use is:

            SecurityCommandCenter securitycenter = new SecurityCommandCenter(...);
            SecurityCommandCenter.Findings.List request = securitycenter.findings().list(parameters ...)
         
        Returns:
        the resource collection

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy