Show / Hide Table of Contents

Class CasesResource.AttachmentsResource.ListRequest

List all the attachments associated with a support case. EXAMPLES: cURL:

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

Python:

python
import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build(
serviceName="cloudsupport", version=api_version,
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", )
request = ( supportApiService.cases() .attachments()
.list(parent="projects/some-project/cases/43595344") ) print(request.execute())
Inheritance
object
ClientServiceRequest
ClientServiceRequest<ListAttachmentsResponse>
CloudSupportBaseServiceRequest<ListAttachmentsResponse>
CasesResource.AttachmentsResource.ListRequest
Implements
IClientServiceRequest<ListAttachmentsResponse>
IClientServiceRequest
Inherited Members
CloudSupportBaseServiceRequest<ListAttachmentsResponse>.Xgafv
CloudSupportBaseServiceRequest<ListAttachmentsResponse>.AccessToken
CloudSupportBaseServiceRequest<ListAttachmentsResponse>.Alt
CloudSupportBaseServiceRequest<ListAttachmentsResponse>.Callback
CloudSupportBaseServiceRequest<ListAttachmentsResponse>.Fields
CloudSupportBaseServiceRequest<ListAttachmentsResponse>.Key
CloudSupportBaseServiceRequest<ListAttachmentsResponse>.OauthToken
CloudSupportBaseServiceRequest<ListAttachmentsResponse>.PrettyPrint
CloudSupportBaseServiceRequest<ListAttachmentsResponse>.QuotaUser
CloudSupportBaseServiceRequest<ListAttachmentsResponse>.UploadType
CloudSupportBaseServiceRequest<ListAttachmentsResponse>.UploadProtocol
ClientServiceRequest<ListAttachmentsResponse>.Execute()
ClientServiceRequest<ListAttachmentsResponse>.ExecuteAsStream()
ClientServiceRequest<ListAttachmentsResponse>.ExecuteAsync()
ClientServiceRequest<ListAttachmentsResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<ListAttachmentsResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<ListAttachmentsResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<ListAttachmentsResponse>.CreateRequest(bool?)
ClientServiceRequest<ListAttachmentsResponse>.GenerateRequestUri()
ClientServiceRequest<ListAttachmentsResponse>.GetBody()
ClientServiceRequest<ListAttachmentsResponse>.GetDefaultETagAction(string)
ClientServiceRequest<ListAttachmentsResponse>.ETagAction
ClientServiceRequest<ListAttachmentsResponse>.ModifyRequest
ClientServiceRequest<ListAttachmentsResponse>.ValidateParameters
ClientServiceRequest<ListAttachmentsResponse>.ApiVersion
ClientServiceRequest<ListAttachmentsResponse>.RequestParameters
ClientServiceRequest<ListAttachmentsResponse>.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.ListRequest : CloudSupportBaseServiceRequest<ListAttachmentsResponse>, IClientServiceRequest<ListAttachmentsResponse>, IClientServiceRequest

Constructors

ListRequest(IClientService, string)

Constructs a new List request.

Declaration
public ListRequest(IClientService service, string parent)
Parameters
Type Name Description
IClientService service
string parent

Properties

HttpMethod

Gets the HTTP method.

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

MethodName

Gets the method name.

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

PageSize

The maximum number of attachments fetched with each request. If not provided, the default is 10. The maximum page size that will be returned is 100. The size of each page can be smaller than the requested page size and can include zero. For example, you could request 100 attachments on one page, receive 0, and then on the next page, receive 90.

Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type Description
int?

PageToken

A token identifying the page of results to return. If unspecified, the first page is retrieved.

Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type Description
string

Parent

Required. The name of the case for which attachments should be listed.

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

RestPath

Gets the REST path.

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

Methods

InitParameters()

Initializes List parameter list.

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

Implements

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