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
CasesResource.AttachmentsResource.ListRequest
Inherited Members
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 |
---|---|---|
IClient |
service | |
string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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
Methods
InitParameters()
Initializes List parameter list.
Declaration
protected override void InitParameters()