ServicesResourceApi class

Constructors

ServicesResourceApi(ApiRequester client)

Properties

configs ServicesConfigsResourceApi
read-only
consumers ServicesConsumersResourceApi
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
rollouts ServicesRolloutsResourceApi
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

create(ManagedService request, {String $fields}) Future<Operation>
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 [...]
delete(String serviceName, {String $fields}) Future<Operation>
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 [...]
enable(EnableServiceRequest request, String serviceName, {String $fields}) Future<Operation>
Enables a service for a project, so it can be used for the project. See Cloud Auth Guide for more information. Operation [...]
generateConfigReport(GenerateConfigReportRequest request, {String $fields}) Future<GenerateConfigReportResponse>
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. [...]
get(String serviceName, {String $fields}) Future<ManagedService>
Gets a managed service. Authentication is required unless the service is public. [...]
getConfig(String serviceName, {String view, String configId, String $fields}) Future<Service>
Gets a service configuration (version) for a managed service. [...]
getIamPolicy(GetIamPolicyRequest request, String resource, {String $fields}) Future<Policy>
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. [...]
list({String pageToken, int pageSize, String producerProjectId, String consumerId, String $fields}) Future<ListServicesResponse>
Lists managed services. Returns all public services. For authenticated users, also returns all services the calling user has "servicemanagement.services.get" permission for. BETA: If the caller specifies the consumer_id, it returns only the services enabled on the consumer. The consumer_id must have the format of "project:{PROJECT-ID}". [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setIamPolicy(SetIamPolicyRequest request, String resource, {String $fields}) Future<Policy>
Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. [...]
testIamPermissions(TestIamPermissionsRequest request, String resource, {String $fields}) Future<TestIamPermissionsResponse>
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. [...]
toString() String
Returns a string representation of this object.
inherited
undelete(String serviceName, {String $fields}) Future<Operation>
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 [...]

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited