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

target.apidocs.com.google.api.services.logging.v2.Logging.Organizations.Locations.Buckets.Views.html Maven / Gradle / Ivy

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






Logging.Organizations.Locations.Buckets.Views (Cloud Logging API v2-rev20240419-2.0.0)












com.google.api.services.logging.v2

Class Logging.Organizations.Locations.Buckets.Views

  • java.lang.Object
    • com.google.api.services.logging.v2.Logging.Organizations.Locations.Buckets.Views
    • Constructor Detail

      • Views

        public Views()
    • Method Detail

      • create

        public Logging.Organizations.Locations.Buckets.Views.Create create(String parent,
                                                                           LogView content)
                                                                    throws IOException
        Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views. Create a request for the method "views.create". This request holds the parameters needed by the logging server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        parent - Required. The bucket in which to create the view `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"` For example:"projects/my-project/locations/global/buckets/my-bucket"
        content - the LogView
        Returns:
        the request
        Throws:
        IOException
      • delete

        public Logging.Organizations.Locations.Buckets.Views.Delete delete(String name)
                                                                    throws IOException
        Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a few minutes. Create a request for the method "views.delete". This request holds the parameters needed by the logging server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket/views/my-view"
        Returns:
        the request
        Throws:
        IOException
      • get

        public Logging.Organizations.Locations.Buckets.Views.Get get(String name)
                                                              throws IOException
        Gets a view on a log bucket. Create a request for the method "views.get". This request holds the parameters needed by the logging server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket/views/my-view"
        Returns:
        the request
        Throws:
        IOException
      • getIamPolicy

        public Logging.Organizations.Locations.Buckets.Views.GetIamPolicy getIamPolicy(String resource,
                                                                                       GetIamPolicyRequest content)
                                                                                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 "views.getIamPolicy". This request holds the parameters needed by the logging 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 Logging.Organizations.Locations.Buckets.Views.List list(String parent)
                                                                throws IOException
        Lists views on a log bucket. Create a request for the method "views.list". This request holds the parameters needed by the logging server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        parent - Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
        Returns:
        the request
        Throws:
        IOException
      • patch

        public Logging.Organizations.Locations.Buckets.Views.Patch patch(String name,
                                                                         LogView content)
                                                                  throws IOException
        Updates a view on a log bucket. This method replaces the value of the filter field from the existing view with the corresponding value from the new view. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can update the view. If this occurs, please try again in a few minutes. Create a request for the method "views.patch". This request holds the parameters needed by the logging server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - Required. The full resource name of the view to update "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket/views/my-view"
        content - the LogView
        Returns:
        the request
        Throws:
        IOException
      • setIamPolicy

        public Logging.Organizations.Locations.Buckets.Views.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 "views.setIamPolicy". This request holds the parameters needed by the logging 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 Logging.Organizations.Locations.Buckets.Views.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 "views.testIamPermissions". This request holds the parameters needed by the logging 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
      • logs

        public Logging.Organizations.Locations.Buckets.Views.Logs logs()
        An accessor for creating requests from the Logs collection.

        The typical use is:

            Logging logging = new Logging(...);
            Logging.Logs.List request = logging.logs().list(parameters ...)
         
        Returns:
        the resource collection

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy