Show / Hide Table of Contents

Class CasesResource.AttachmentsResource.GetRequest

Retrieve an attachment associated with a support case. EXAMPLES: cURL:

shell
attachment="projects/some-project/cases/23598314/attachments/0684M00000P3h1fQAB" curl \ --header
"Authorization: Bearer $(gcloud auth print-access-token)" \
"https://cloudsupport.googleapis.com/v2/$attachment"

Python:

python import
googleapiclient.discovery api_version = "v2beta" supportApiService = googleapiclient.discovery.build(
serviceName="cloudsupport", version=api_version,
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", )
request = ( supportApiService.cases() .attachments()
.get(name="projects/some-project/cases/43595344/attachments/0684M00000P3h1fQAB") )
print(request.execute())
Inheritance
object
ClientServiceRequest
ClientServiceRequest<Attachment>
CloudSupportBaseServiceRequest<Attachment>
CasesResource.AttachmentsResource.GetRequest
Implements
IClientServiceRequest<Attachment>
IClientServiceRequest
Inherited Members
CloudSupportBaseServiceRequest<Attachment>.Xgafv
CloudSupportBaseServiceRequest<Attachment>.AccessToken
CloudSupportBaseServiceRequest<Attachment>.Alt
CloudSupportBaseServiceRequest<Attachment>.Callback
CloudSupportBaseServiceRequest<Attachment>.Fields
CloudSupportBaseServiceRequest<Attachment>.Key
CloudSupportBaseServiceRequest<Attachment>.OauthToken
CloudSupportBaseServiceRequest<Attachment>.PrettyPrint
CloudSupportBaseServiceRequest<Attachment>.QuotaUser
CloudSupportBaseServiceRequest<Attachment>.UploadType
CloudSupportBaseServiceRequest<Attachment>.UploadProtocol
ClientServiceRequest<Attachment>.Execute()
ClientServiceRequest<Attachment>.ExecuteAsStream()
ClientServiceRequest<Attachment>.ExecuteAsync()
ClientServiceRequest<Attachment>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Attachment>.ExecuteAsStreamAsync()
ClientServiceRequest<Attachment>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Attachment>.CreateRequest(bool?)
ClientServiceRequest<Attachment>.GenerateRequestUri()
ClientServiceRequest<Attachment>.GetBody()
ClientServiceRequest<Attachment>.GetDefaultETagAction(string)
ClientServiceRequest<Attachment>.ETagAction
ClientServiceRequest<Attachment>.ModifyRequest
ClientServiceRequest<Attachment>.ValidateParameters
ClientServiceRequest<Attachment>.ApiVersion
ClientServiceRequest<Attachment>.RequestParameters
ClientServiceRequest<Attachment>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudSupport.v2beta
Assembly: Google.Apis.CloudSupport.v2beta.dll
Syntax
public class CasesResource.AttachmentsResource.GetRequest : CloudSupportBaseServiceRequest<Attachment>, IClientServiceRequest<Attachment>, IClientServiceRequest

Constructors

GetRequest(IClientService, string)

Constructs a new Get request.

Declaration
public GetRequest(IClientService service, string name)
Parameters
Type Name Description
IClientService service
string name

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Attachment>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Attachment>.MethodName

Name

Required. The name of the attachment to get.

Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type Description
string

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Attachment>.RestPath

Methods

InitParameters()

Initializes Get parameter list.

Declaration
protected override void InitParameters()
Overrides
CloudSupportBaseServiceRequest<Attachment>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX