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

target.apidocs.com.google.api.services.servicemanagement.ServiceManagement.Services.html Maven / Gradle / Ivy

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






ServiceManagement.Services (Service Management API v1-rev20240823-2.0.0)












com.google.api.services.servicemanagement

Class ServiceManagement.Services

  • java.lang.Object
    • com.google.api.services.servicemanagement.ServiceManagement.Services
  • Enclosing class:
    ServiceManagement


    public class ServiceManagement.Services
    extends Object
    The "services" collection of methods.
    • Constructor Detail

      • Services

        public Services()
    • Method Detail

      • create

        public ServiceManagement.Services.Create create(ManagedService content)
                                                 throws IOException
        Creates a new managed service. A managed service is immutable, and is subject to mandatory 30-day data retention. You cannot move a service or recreate it within 30 days after deletion. One producer project can own no more than 500 services. For security and reliability purposes, a production service should be hosted in a dedicated producer project. Operation Create a request for the method "services.create". This request holds the parameters needed by the servicemanagement server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        content - the ManagedService
        Returns:
        the request
        Throws:
        IOException
      • delete

        public ServiceManagement.Services.Delete delete(String serviceName)
                                                 throws IOException
        Deletes a managed service. This method will change the service to the `Soft-Delete` state for 30 days. Within this period, service producers may call UndeleteService to restore the service. After 30 days, the service will be permanently deleted. Operation Create a request for the method "services.delete". This request holds the parameters needed by the servicemanagement server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        serviceName - Required. The name of the service. See the [overview](https://cloud.google.com/service- management/overview) for naming requirements. For example: `example.googleapis.com`.
        Returns:
        the request
        Throws:
        IOException
      • generateConfigReport

        public ServiceManagement.Services.GenerateConfigReport generateConfigReport(GenerateConfigReportRequest content)
                                                                             throws IOException
        Generates and returns a report (errors, warnings and changes from existing configurations) associated with GenerateConfigReportRequest.new_value If GenerateConfigReportRequest.old_value is specified, GenerateConfigReportRequest will contain a single ChangeReport based on the comparison between GenerateConfigReportRequest.new_value and GenerateConfigReportRequest.old_value. If GenerateConfigReportRequest.old_value is not specified, this method will compare GenerateConfigReportRequest.new_value with the last pushed service configuration. Create a request for the method "services.generateConfigReport". This request holds the parameters needed by the servicemanagement server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        content - the GenerateConfigReportRequest
        Returns:
        the request
        Throws:
        IOException
      • get

        public ServiceManagement.Services.Get get(String serviceName)
                                           throws IOException
        Gets a managed service. Authentication is required unless the service is public. Create a request for the method "services.get". This request holds the parameters needed by the servicemanagement server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        serviceName - Required. The name of the service. See the `ServiceManager` overview for naming requirements. For example: `example.googleapis.com`.
        Returns:
        the request
        Throws:
        IOException
      • getConfig

        public ServiceManagement.Services.GetConfig getConfig(String serviceName)
                                                       throws IOException
        Gets a service configuration (version) for a managed service. Create a request for the method "services.getConfig". This request holds the parameters needed by the servicemanagement server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        serviceName - Required. The name of the service. See the [overview](https://cloud.google.com/service- management/overview) for naming requirements. For example: `example.googleapis.com`.
        Returns:
        the request
        Throws:
        IOException
      • getIamPolicy

        public ServiceManagement.Services.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 "services.getIamPolicy". This request holds the parameters needed by the servicemanagement 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 ServiceManagement.Services.List list()
                                             throws IOException
        Lists managed services. Returns all public services. For authenticated users, also returns all services the calling user has "servicemanagement.services.get" permission for. Create a request for the method "services.list". This request holds the parameters needed by the servicemanagement server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Returns:
        the request
        Throws:
        IOException
      • setIamPolicy

        public ServiceManagement.Services.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 "services.setIamPolicy". This request holds the parameters needed by the servicemanagement 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 ServiceManagement.Services.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 "services.testIamPermissions". This request holds the parameters needed by the servicemanagement 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
      • undelete

        public ServiceManagement.Services.Undelete undelete(String serviceName)
                                                     throws IOException
        Revives a previously deleted managed service. The method restores the service using the configuration at the time the service was deleted. The target service must exist and must have been deleted within the last 30 days. Operation Create a request for the method "services.undelete". This request holds the parameters needed by the servicemanagement server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        serviceName - Required. The name of the service. See the [overview](https://cloud.google.com/service- management/overview) for naming requirements. For example: `example.googleapis.com`.
        Returns:
        the request
        Throws:
        IOException
      • configs

        public ServiceManagement.Services.Configs configs()
        An accessor for creating requests from the Configs collection.

        The typical use is:

            ServiceManagement servicemanagement = new ServiceManagement(...);
            ServiceManagement.Configs.List request = servicemanagement.configs().list(parameters ...)
         
        Returns:
        the resource collection
      • consumers

        public ServiceManagement.Services.Consumers consumers()
        An accessor for creating requests from the Consumers collection.

        The typical use is:

            ServiceManagement servicemanagement = new ServiceManagement(...);
            ServiceManagement.Consumers.List request = servicemanagement.consumers().list(parameters ...)
         
        Returns:
        the resource collection
      • rollouts

        public ServiceManagement.Services.Rollouts rollouts()
        An accessor for creating requests from the Rollouts collection.

        The typical use is:

            ServiceManagement servicemanagement = new ServiceManagement(...);
            ServiceManagement.Rollouts.List request = servicemanagement.rollouts().list(parameters ...)
         
        Returns:
        the resource collection

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy