Show / Hide Table of Contents

Class ProjectsResource.ProfilesResource

The "profiles" collection of methods.

Inheritance
object
ProjectsResource.ProfilesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudProfiler.v2
Assembly: Google.Apis.CloudProfiler.v2.dll
Syntax
public class ProjectsResource.ProfilesResource

Constructors

ProfilesResource(IClientService)

Constructs a new resource.

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

Methods

Create(CreateProfileRequest, string)

CreateProfile creates a new profile resource in the online mode. Direct use of this API is discouraged, please use a supported profiler agent instead for profile collection. The server ensures that the new profiles are created at a constant rate per deployment, so the creation request may hang for some time until the next profile session is available. The request may fail with ABORTED error if the creation is not available within ~1m, the response will indicate the duration of the backoff the client should take before attempting creating a profile again. The backoff duration is returned in google.rpc.RetryInfo extension on the response status. To a gRPC client, the extension will be return as a binary-serialized proto in the trailing metadata item named "google.rpc.retryinfo-bin".

Declaration
public virtual ProjectsResource.ProfilesResource.CreateRequest Create(CreateProfileRequest body, string parent)
Parameters
Type Name Description
CreateProfileRequest body

The body of the request.

string parent

Parent project to create the profile in.

Returns
Type Description
ProjectsResource.ProfilesResource.CreateRequest

CreateOffline(Profile, string)

CreateOfflineProfile creates a new profile resource in the offline mode. The client provides the profile to create along with the profile bytes, the server records it. Direct use of this API is discouraged, please use a supported profiler agent instead for profile collection.

Declaration
public virtual ProjectsResource.ProfilesResource.CreateOfflineRequest CreateOffline(Profile body, string parent)
Parameters
Type Name Description
Profile body

The body of the request.

string parent

Parent project to create the profile in.

Returns
Type Description
ProjectsResource.ProfilesResource.CreateOfflineRequest

List(string)

Lists profiles which have been collected so far and for which the caller has permission to view.

Declaration
public virtual ProjectsResource.ProfilesResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of profiles. Format: projects/{user_project_id}

Returns
Type Description
ProjectsResource.ProfilesResource.ListRequest

Patch(Profile, string)

UpdateProfile updates the profile bytes and labels on the profile resource created in the online mode. Updating the bytes for profiles created in the offline mode is currently not supported: the profile content must be provided at the time of the profile creation. Direct use of this API is discouraged, please use a supported profiler agent instead for profile collection.

Declaration
public virtual ProjectsResource.ProfilesResource.PatchRequest Patch(Profile body, string name)
Parameters
Type Name Description
Profile body

The body of the request.

string name

Output only. Opaque, server-assigned, unique ID for this profile.

Returns
Type Description
ProjectsResource.ProfilesResource.PatchRequest
In this article
Back to top Generated by DocFX