google-apis-cloudsupport_v2 0.20.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 680e400c4045907013300e86b51178def0c3aae5ceadf91c0b0e4519b7576212
|
|
4
|
+
data.tar.gz: 44aa300155b5760a38bf94852449ba78a52dc50367739bb947df62290b0c9e70
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fadea47bb38ad346c62dfd582c84b32730ddbf680a4f25c55a755100cede97be17c35d6c865c479dfcc7751200f3a427ebfc8a75f3cee512166016b74fc60d8c
|
|
7
|
+
data.tar.gz: 761b96a077b0bd8b766da6426e4ae17aa2dba96d58cbb758d9d47e403833df199f7393a3d1c2d31cb0ad033f6e179cada1e72e54216629a2b323f9bd5ce577be
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-cloudsupport_v2
|
|
2
2
|
|
|
3
|
+
### v0.22.0 (2026-05-24)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260519
|
|
6
|
+
|
|
7
|
+
### v0.21.0 (2026-04-19)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20260409
|
|
10
|
+
|
|
3
11
|
### v0.20.0 (2026-01-18)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20260113
|
|
@@ -514,6 +514,11 @@ module Google
|
|
|
514
514
|
# @return [String]
|
|
515
515
|
attr_accessor :from_file_name
|
|
516
516
|
|
|
517
|
+
# # gdata.* are outside protos with mising documentation
|
|
518
|
+
# Corresponds to the JSON property `fromFusionId`
|
|
519
|
+
# @return [String]
|
|
520
|
+
attr_accessor :from_fusion_id
|
|
521
|
+
|
|
517
522
|
# # gdata.* are outside protos with mising documentation
|
|
518
523
|
# Corresponds to the JSON property `fromHeader`
|
|
519
524
|
# @return [String]
|
|
@@ -524,6 +529,12 @@ module Google
|
|
|
524
529
|
# @return [String]
|
|
525
530
|
attr_accessor :from_url_path
|
|
526
531
|
|
|
532
|
+
# # gdata.* are outside protos with mising documentation
|
|
533
|
+
# Corresponds to the JSON property `fusionIdDetectionMetadata`
|
|
534
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
535
|
+
# @return [String]
|
|
536
|
+
attr_accessor :fusion_id_detection_metadata
|
|
537
|
+
|
|
527
538
|
def initialize(**args)
|
|
528
539
|
update!(**args)
|
|
529
540
|
end
|
|
@@ -533,8 +544,10 @@ module Google
|
|
|
533
544
|
@best_guess = args[:best_guess] if args.key?(:best_guess)
|
|
534
545
|
@from_bytes = args[:from_bytes] if args.key?(:from_bytes)
|
|
535
546
|
@from_file_name = args[:from_file_name] if args.key?(:from_file_name)
|
|
547
|
+
@from_fusion_id = args[:from_fusion_id] if args.key?(:from_fusion_id)
|
|
536
548
|
@from_header = args[:from_header] if args.key?(:from_header)
|
|
537
549
|
@from_url_path = args[:from_url_path] if args.key?(:from_url_path)
|
|
550
|
+
@fusion_id_detection_metadata = args[:fusion_id_detection_metadata] if args.key?(:fusion_id_detection_metadata)
|
|
538
551
|
end
|
|
539
552
|
end
|
|
540
553
|
|
|
@@ -1012,6 +1025,12 @@ module Google
|
|
|
1012
1025
|
# @return [String]
|
|
1013
1026
|
attr_accessor :sha256_hash
|
|
1014
1027
|
|
|
1028
|
+
# # gdata.* are outside protos with mising documentation
|
|
1029
|
+
# Corresponds to the JSON property `sha512Hash`
|
|
1030
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
1031
|
+
# @return [String]
|
|
1032
|
+
attr_accessor :sha512_hash
|
|
1033
|
+
|
|
1015
1034
|
# # gdata.* are outside protos with mising documentation
|
|
1016
1035
|
# Corresponds to the JSON property `timestamp`
|
|
1017
1036
|
# @return [Fixnum]
|
|
@@ -1056,6 +1075,7 @@ module Google
|
|
|
1056
1075
|
@reference_type = args[:reference_type] if args.key?(:reference_type)
|
|
1057
1076
|
@sha1_hash = args[:sha1_hash] if args.key?(:sha1_hash)
|
|
1058
1077
|
@sha256_hash = args[:sha256_hash] if args.key?(:sha256_hash)
|
|
1078
|
+
@sha512_hash = args[:sha512_hash] if args.key?(:sha512_hash)
|
|
1059
1079
|
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
|
1060
1080
|
@token = args[:token] if args.key?(:token)
|
|
1061
1081
|
end
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module CloudsupportV2
|
|
18
18
|
# Version of the google-apis-cloudsupport_v2 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.22.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260519"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -282,8 +282,10 @@ module Google
|
|
|
282
282
|
property :best_guess, as: 'bestGuess'
|
|
283
283
|
property :from_bytes, as: 'fromBytes'
|
|
284
284
|
property :from_file_name, as: 'fromFileName'
|
|
285
|
+
property :from_fusion_id, as: 'fromFusionId'
|
|
285
286
|
property :from_header, as: 'fromHeader'
|
|
286
287
|
property :from_url_path, as: 'fromUrlPath'
|
|
288
|
+
property :fusion_id_detection_metadata, :base64 => true, as: 'fusionIdDetectionMetadata'
|
|
287
289
|
end
|
|
288
290
|
end
|
|
289
291
|
|
|
@@ -436,6 +438,7 @@ module Google
|
|
|
436
438
|
property :reference_type, as: 'referenceType'
|
|
437
439
|
property :sha1_hash, :base64 => true, as: 'sha1Hash'
|
|
438
440
|
property :sha256_hash, :base64 => true, as: 'sha256Hash'
|
|
441
|
+
property :sha512_hash, :base64 => true, as: 'sha512Hash'
|
|
439
442
|
property :timestamp, :numeric_string => true, as: 'timestamp'
|
|
440
443
|
property :token, as: 'token'
|
|
441
444
|
end
|
|
@@ -414,18 +414,25 @@ module Google
|
|
|
414
414
|
# page is retrieved.
|
|
415
415
|
# @param [String] query
|
|
416
416
|
# An expression used to filter cases. Expressions use the following fields
|
|
417
|
-
# separated by `AND` and specified with `=`: - `
|
|
417
|
+
# separated by `AND` and specified with `=`: - `state`: Can be `OPEN` or `CLOSED`
|
|
418
|
+
# . - `priority`: Can be `P0`, `P1`, `P2`, `P3`, or `P4`. You can specify
|
|
419
|
+
# multiple values for priority using the `OR` operator. For example, `priority=
|
|
420
|
+
# P1 OR priority=P2`. - `creator.email`: The email address of the case creator.
|
|
421
|
+
# To search across `displayName`, `description`, and comments, use a global
|
|
422
|
+
# restriction with no keyword or operator. For example, `"my search"`. To search
|
|
423
|
+
# only cases updated after a certain date, use `update_time` restricted with
|
|
424
|
+
# that particular date, time, and timezone in ISO datetime format. For example, `
|
|
425
|
+
# update_time>"2020-01-01T00:00:00-05:00"`. `update_time` only supports the
|
|
426
|
+
# greater than operator (`>`). If you are using the `v2` version of the API, you
|
|
427
|
+
# must specify the case parent in the `parent` field. If you provide an empty `
|
|
428
|
+
# query`, all cases under the parent resource will be returned. If you are using
|
|
429
|
+
# the `v2beta` version of the API, you must specify the case parent in the `
|
|
430
|
+
# query` field using one of the two fields below, which are only available for `
|
|
431
|
+
# v2beta`. The `parent` field will be ignored. - `organization`: An organization
|
|
418
432
|
# name in the form `organizations/`. - `project`: A project name in the form `
|
|
419
|
-
# projects/`.
|
|
420
|
-
#
|
|
421
|
-
#
|
|
422
|
-
# : The email address of the case creator. You must specify either `organization`
|
|
423
|
-
# or `project`. To search across `displayName`, `description`, and comments,
|
|
424
|
-
# use a global restriction with no keyword or operator. For example, `"my search"
|
|
425
|
-
# `. To search only cases updated after a certain date, use `update_time`
|
|
426
|
-
# restricted with that particular date, time, and timezone in ISO datetime
|
|
427
|
-
# format. For example, `update_time>"2020-01-01T00:00:00-05:00"`. `update_time`
|
|
428
|
-
# only supports the greater than operator (`>`). Examples: - `organization="
|
|
433
|
+
# projects/`. Examples: For `v2`: - `state=CLOSED` - `state=OPEN AND creator.
|
|
434
|
+
# email="tester@example.com"` - `state=OPEN AND (priority=P0 OR priority=P1)` - `
|
|
435
|
+
# update_time>"2020-01-01T00:00:00-05:00"` For `v2beta`: - `organization="
|
|
429
436
|
# organizations/123456789"` - `project="projects/my-project-id"` - `project="
|
|
430
437
|
# projects/123456789"` - `organization="organizations/123456789" AND state=
|
|
431
438
|
# CLOSED` - `project="projects/my-project-id" AND creator.email="tester@example.
|
|
@@ -460,6 +467,45 @@ module Google
|
|
|
460
467
|
execute_or_queue_command(command, &block)
|
|
461
468
|
end
|
|
462
469
|
|
|
470
|
+
# Retrieve an attachment associated with a support case. EXAMPLES: cURL: ```
|
|
471
|
+
# shell attachment="projects/some-project/cases/23598314/attachments/
|
|
472
|
+
# 0684M00000P3h1fQAB" curl \ --header "Authorization: Bearer $(gcloud auth print-
|
|
473
|
+
# access-token)" \ "https://cloudsupport.googleapis.com/v2/$attachment" ```
|
|
474
|
+
# Python: ```python import googleapiclient.discovery api_version = "v2"
|
|
475
|
+
# supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport"
|
|
476
|
+
# , version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.
|
|
477
|
+
# com/$discovery/rest?version=`api_version`", ) request = ( supportApiService.
|
|
478
|
+
# cases() .attachments() .get(name="projects/some-project/cases/43595344/
|
|
479
|
+
# attachments/0684M00000P3h1fQAB") ) print(request.execute()) ```
|
|
480
|
+
# @param [String] name
|
|
481
|
+
# Required. The name of the attachment to get.
|
|
482
|
+
# @param [String] fields
|
|
483
|
+
# Selector specifying which fields to include in a partial response.
|
|
484
|
+
# @param [String] quota_user
|
|
485
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
486
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
487
|
+
# @param [Google::Apis::RequestOptions] options
|
|
488
|
+
# Request-specific options
|
|
489
|
+
#
|
|
490
|
+
# @yield [result, err] Result & error if block supplied
|
|
491
|
+
# @yieldparam result [Google::Apis::CloudsupportV2::Attachment] parsed result object
|
|
492
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
493
|
+
#
|
|
494
|
+
# @return [Google::Apis::CloudsupportV2::Attachment]
|
|
495
|
+
#
|
|
496
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
497
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
498
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
499
|
+
def get_case_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
500
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
501
|
+
command.response_representation = Google::Apis::CloudsupportV2::Attachment::Representation
|
|
502
|
+
command.response_class = Google::Apis::CloudsupportV2::Attachment
|
|
503
|
+
command.params['name'] = name unless name.nil?
|
|
504
|
+
command.query['fields'] = fields unless fields.nil?
|
|
505
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
506
|
+
execute_or_queue_command(command, &block)
|
|
507
|
+
end
|
|
508
|
+
|
|
463
509
|
# List all the attachments associated with a support case. EXAMPLES: cURL: ```
|
|
464
510
|
# shell case="projects/some-project/cases/23598314" curl \ --header "
|
|
465
511
|
# Authorization: Bearer $(gcloud auth print-access-token)" \ "https://
|
|
@@ -554,6 +600,44 @@ module Google
|
|
|
554
600
|
execute_or_queue_command(command, &block)
|
|
555
601
|
end
|
|
556
602
|
|
|
603
|
+
# Retrieve a comment. EXAMPLES: cURL: ```shell comment="projects/some-project/
|
|
604
|
+
# cases/43595344/comments/234567890" curl \ --header "Authorization: Bearer $(
|
|
605
|
+
# gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$
|
|
606
|
+
# comment" ``` Python: ```python import googleapiclient.discovery api_version = "
|
|
607
|
+
# v2" supportApiService = googleapiclient.discovery.build( serviceName="
|
|
608
|
+
# cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.
|
|
609
|
+
# googleapis.com/$discovery/rest?version=`api_version`", ) request =
|
|
610
|
+
# supportApiService.cases().comments().get( name="projects/some-project/cases/
|
|
611
|
+
# 43595344/comments/234567890", ) print(request.execute()) ```
|
|
612
|
+
# @param [String] name
|
|
613
|
+
# Required. The name of the comment to retrieve.
|
|
614
|
+
# @param [String] fields
|
|
615
|
+
# Selector specifying which fields to include in a partial response.
|
|
616
|
+
# @param [String] quota_user
|
|
617
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
618
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
619
|
+
# @param [Google::Apis::RequestOptions] options
|
|
620
|
+
# Request-specific options
|
|
621
|
+
#
|
|
622
|
+
# @yield [result, err] Result & error if block supplied
|
|
623
|
+
# @yieldparam result [Google::Apis::CloudsupportV2::Comment] parsed result object
|
|
624
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
625
|
+
#
|
|
626
|
+
# @return [Google::Apis::CloudsupportV2::Comment]
|
|
627
|
+
#
|
|
628
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
629
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
630
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
631
|
+
def get_case_comment(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
632
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
633
|
+
command.response_representation = Google::Apis::CloudsupportV2::Comment::Representation
|
|
634
|
+
command.response_class = Google::Apis::CloudsupportV2::Comment
|
|
635
|
+
command.params['name'] = name unless name.nil?
|
|
636
|
+
command.query['fields'] = fields unless fields.nil?
|
|
637
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
638
|
+
execute_or_queue_command(command, &block)
|
|
639
|
+
end
|
|
640
|
+
|
|
557
641
|
# List all the comments associated with a case. EXAMPLES: cURL: ```shell case="
|
|
558
642
|
# projects/some-project/cases/43595344" curl \ --header "Authorization: Bearer $(
|
|
559
643
|
# gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$
|
|
@@ -653,7 +737,7 @@ module Google
|
|
|
653
737
|
# is in a file I'm uploading using CSAPI." \ > "./example_file.txt" case="
|
|
654
738
|
# projects/some-project/cases/43594844" curl \ --header "Authorization: Bearer $(
|
|
655
739
|
# gcloud auth print-access-token)" \ --data-binary @"./example_file.txt" \ "
|
|
656
|
-
# https://cloudsupport.googleapis.com/upload/
|
|
740
|
+
# https://cloudsupport.googleapis.com/upload/v2/$case/attachments?attachment.
|
|
657
741
|
# filename=uploaded_via_curl.txt" ``` Python: ```python import googleapiclient.
|
|
658
742
|
# discovery api_version = "v2" supportApiService = googleapiclient.discovery.
|
|
659
743
|
# build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-cloudsupport_v2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.22.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudsupport_v2/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2/v0.22.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudsupport_v2
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|