Show / Hide Table of Contents

Class ServicesResource

The "services" collection of methods.

Inheritance
object
ServicesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.ServiceManagement.v1
Assembly: Google.Apis.ServiceManagement.v1.dll
Syntax
public class ServicesResource

Constructors

ServicesResource(IClientService)

Constructs a new resource.

Declaration
public ServicesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

Configs

Gets the Configs resource.

Declaration
public virtual ServicesResource.ConfigsResource Configs { get; }
Property Value
Type Description
ServicesResource.ConfigsResource

Consumers

Gets the Consumers resource.

Declaration
public virtual ServicesResource.ConsumersResource Consumers { get; }
Property Value
Type Description
ServicesResource.ConsumersResource

Rollouts

Gets the Rollouts resource.

Declaration
public virtual ServicesResource.RolloutsResource Rollouts { get; }
Property Value
Type Description
ServicesResource.RolloutsResource

Methods

Create(ManagedService)

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

Declaration
public virtual ServicesResource.CreateRequest Create(ManagedService body)
Parameters
Type Name Description
ManagedService body

The body of the request.

Returns
Type Description
ServicesResource.CreateRequest

Delete(string)

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

Declaration
public virtual ServicesResource.DeleteRequest Delete(string serviceName)
Parameters
Type Name Description
string serviceName

Required. The name of the service. See the overview for naming requirements. For example: example.googleapis.com.

Returns
Type Description
ServicesResource.DeleteRequest

GenerateConfigReport(GenerateConfigReportRequest)

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.

Declaration
public virtual ServicesResource.GenerateConfigReportRequest GenerateConfigReport(GenerateConfigReportRequest body)
Parameters
Type Name Description
GenerateConfigReportRequest body

The body of the request.

Returns
Type Description
ServicesResource.GenerateConfigReportRequest

Get(string)

Gets a managed service. Authentication is required unless the service is public.

Declaration
public virtual ServicesResource.GetRequest Get(string serviceName)
Parameters
Type Name Description
string serviceName

Required. The name of the service. See the ServiceManager overview for naming requirements. For example: example.googleapis.com.

Returns
Type Description
ServicesResource.GetRequest

GetConfig(string)

Gets a service configuration (version) for a managed service.

Declaration
public virtual ServicesResource.GetConfigRequest GetConfig(string serviceName)
Parameters
Type Name Description
string serviceName

Required. The name of the service. See the overview for naming requirements. For example: example.googleapis.com.

Returns
Type Description
ServicesResource.GetConfigRequest

GetIamPolicy(GetIamPolicyRequest, string)

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Declaration
public virtual ServicesResource.GetIamPolicyRequest GetIamPolicy(GetIamPolicyRequest body, string resource)
Parameters
Type Name Description
GetIamPolicyRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
ServicesResource.GetIamPolicyRequest

List()

Lists managed services. Returns all public services. For authenticated users, also returns all services the calling user has "servicemanagement.services.get" permission for.

Declaration
public virtual ServicesResource.ListRequest List()
Returns
Type Description
ServicesResource.ListRequest

SetIamPolicy(SetIamPolicyRequest, string)

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

Declaration
public virtual ServicesResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type Name Description
SetIamPolicyRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

Returns
Type Description
ServicesResource.SetIamPolicyRequest

TestIamPermissions(TestIamPermissionsRequest, string)

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.

Declaration
public virtual ServicesResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type Name Description
TestIamPermissionsRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
ServicesResource.TestIamPermissionsRequest

Undelete(string)

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

Declaration
public virtual ServicesResource.UndeleteRequest Undelete(string serviceName)
Parameters
Type Name Description
string serviceName

Required. The name of the service. See the overview for naming requirements. For example: example.googleapis.com.

Returns
Type Description
ServicesResource.UndeleteRequest
In this article
Back to top Generated by DocFX