google-apis-cloudsupport_v2beta 0.29.0 → 0.31.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: 830828f2aa8c15a43792d906e3cdcb2e9939a8cbf2c78884eb128142b9c6bc41
4
- data.tar.gz: a5f1d248605fac28186593ff9d044c8a9de9402cfdfd4453a121ded809fbc1f0
3
+ metadata.gz: e3fbae872ccebcbd8c9cbf0e05522f167913c5709ec73d331cb29f7ffd484a5e
4
+ data.tar.gz: f623929dca7a15dd7c234410b18caa16404f7752dc3cacf639507f68e34b6ea7
5
5
  SHA512:
6
- metadata.gz: 060cdc500def2ffe81f39ce67389cf1f43c2159579a6143ae8141c3f2a8433522afa81945cb2f59bb1a24c01ceba2c0bca1f8e2a69c66dbcd4200a066f7bc64b
7
- data.tar.gz: c2205e5045b2616a337bae00d86c97efcfc1e616a160318378d0601649a3f54bac34a5dd60f51c71dcb2221bff689e20be41e40d70aa20939c40d7c0602db8af
6
+ metadata.gz: e2c3339617d009059169c8c23b89b31111dd899aa9853722c5d13348875cda6764385d1e698067e1544bd07e22b1a7a0a24d5d85e304df53a840fd59fd51c4a8
7
+ data.tar.gz: ecd4d5689072f29776ba7f209ebcf076581f6e5dccb9c1247408b2b4823ffa7816216a6e7cc7213aac9e771cdcf3d2b87ed11a0706144b07a341f5789ad39444
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-cloudsupport_v2beta
2
2
 
3
+ ### v0.31.0 (2024-01-23)
4
+
5
+ * Regenerated from discovery document revision 20240120
6
+ * Regenerated using generator version 0.13.0
7
+
8
+ ### v0.30.0 (2023-12-24)
9
+
10
+ * Regenerated from discovery document revision 20231217
11
+
3
12
  ### v0.29.0 (2023-10-01)
4
13
 
5
14
  * Regenerated from discovery document revision 20230926
@@ -22,8 +22,9 @@ module Google
22
22
  module Apis
23
23
  module CloudsupportV2beta
24
24
 
25
- # An object containing information about the effective user and authenticated
26
- # principal responsible for an action.
25
+ # An Actor represents an entity that performed an action. For example, an actor
26
+ # could be a user who posted a comment on a support case, a user who uploaded an
27
+ # attachment, or a service account that created a support case.
27
28
  class Actor
28
29
  include Google::Apis::Core::Hashable
29
30
 
@@ -35,11 +36,10 @@ module Google
35
36
  # @return [String]
36
37
  attr_accessor :display_name
37
38
 
38
- # The email address of the actor. If not provided, it is inferred from
39
- # credentials supplied during case creation. If the authenticated principal does
40
- # not have an email address, one must be provided. When a name is provided, an
41
- # email must also be provided. This will be obfuscated if the user is a Google
42
- # Support agent.
39
+ # The email address of the actor. If not provided, it is inferred from the
40
+ # credentials supplied during case creation. When a name is provided, an email
41
+ # must also be provided. If the user is a Google Support agent, this is
42
+ # obfuscated. This field is deprecated. Use **username** field instead.
43
43
  # Corresponds to the JSON property `email`
44
44
  # @return [String]
45
45
  attr_accessor :email
@@ -50,6 +50,14 @@ module Google
50
50
  attr_accessor :google_support
51
51
  alias_method :google_support?, :google_support
52
52
 
53
+ # Output only. The username of the actor. It may look like an email or other
54
+ # format provided by the identity provider. If not provided, it is inferred from
55
+ # the credentials supplied. When a name is provided, a username must also be
56
+ # provided. If the user is a Google Support agent, this will not be set.
57
+ # Corresponds to the JSON property `username`
58
+ # @return [String]
59
+ attr_accessor :username
60
+
53
61
  def initialize(**args)
54
62
  update!(**args)
55
63
  end
@@ -59,10 +67,15 @@ module Google
59
67
  @display_name = args[:display_name] if args.key?(:display_name)
60
68
  @email = args[:email] if args.key?(:email)
61
69
  @google_support = args[:google_support] if args.key?(:google_support)
70
+ @username = args[:username] if args.key?(:username)
62
71
  end
63
72
  end
64
73
 
65
- # Represents a file attached to a support case.
74
+ # An Attachment contains metadata about a file that was uploaded to a case - it
75
+ # is NOT a file itself. That being said, the name of an Attachment object can be
76
+ # used to download its accompanying file through the `media.download` endpoint.
77
+ # While attachments can be uploaded in the console at the same time as a comment,
78
+ # they're associated on a "case" level, not a "comment" level.
66
79
  class Attachment
67
80
  include Google::Apis::Core::Hashable
68
81
 
@@ -71,8 +84,9 @@ module Google
71
84
  # @return [String]
72
85
  attr_accessor :create_time
73
86
 
74
- # An object containing information about the effective user and authenticated
75
- # principal responsible for an action.
87
+ # An Actor represents an entity that performed an action. For example, an actor
88
+ # could be a user who posted a comment on a support case, a user who uploaded an
89
+ # attachment, or a service account that created a support case.
76
90
  # Corresponds to the JSON property `creator`
77
91
  # @return [Google::Apis::CloudsupportV2beta::Actor]
78
92
  attr_accessor :creator
@@ -157,11 +171,23 @@ module Google
157
171
  end
158
172
  end
159
173
 
160
- # A support case.
174
+ # A Case is an object that contains the details of a support case. It contains
175
+ # fields for the time it was created, its priority, its classification, and more.
176
+ # Cases can also have comments and attachments that get added over time. A case
177
+ # is parented by a Google Cloud organization or project. Organizations are
178
+ # identified by a number, so the name of a case parented by an organization
179
+ # would look like this: ``` organizations/123/cases/456 ``` Projects have two
180
+ # unique identifiers, an ID and a number, and they look like this: ``` projects/
181
+ # abc/cases/456 ``` ``` projects/123/cases/456 ``` You can use either of them
182
+ # when calling the API. To learn more about project identifiers, see [AIP-2510](
183
+ # https://google.aip.dev/cloud/2510).
161
184
  class Case
162
185
  include Google::Apis::Core::Hashable
163
186
 
164
- # A classification object with a product type and value.
187
+ # A Case Classification represents the topic that a case is about. It's very
188
+ # important to use accurate classifications, because they're used to route your
189
+ # cases to specialists who can help you. A classification always has an ID that
190
+ # is its unique identifier. A valid ID is required when creating a case.
165
191
  # Corresponds to the JSON property `classification`
166
192
  # @return [Google::Apis::CloudsupportV2beta::CaseClassification]
167
193
  attr_accessor :classification
@@ -178,8 +204,9 @@ module Google
178
204
  # @return [String]
179
205
  attr_accessor :create_time
180
206
 
181
- # An object containing information about the effective user and authenticated
182
- # principal responsible for an action.
207
+ # An Actor represents an entity that performed an action. For example, an actor
208
+ # could be a user who posted a comment on a support case, a user who uploaded an
209
+ # attachment, or a service account that created a support case.
183
210
  # Corresponds to the JSON property `creator`
184
211
  # @return [Google::Apis::CloudsupportV2beta::Actor]
185
212
  attr_accessor :creator
@@ -280,7 +307,10 @@ module Google
280
307
  end
281
308
  end
282
309
 
283
- # A classification object with a product type and value.
310
+ # A Case Classification represents the topic that a case is about. It's very
311
+ # important to use accurate classifications, because they're used to route your
312
+ # cases to specialists who can help you. A classification always has an ID that
313
+ # is its unique identifier. A valid ID is required when creating a case.
284
314
  class CaseClassification
285
315
  include Google::Apis::Core::Hashable
286
316
 
@@ -301,6 +331,12 @@ module Google
301
331
  # @return [String]
302
332
  attr_accessor :id
303
333
 
334
+ # The full product a case may be associated with, including Product Line and
335
+ # Product Subline.
336
+ # Corresponds to the JSON property `product`
337
+ # @return [Google::Apis::CloudsupportV2beta::Product]
338
+ attr_accessor :product
339
+
304
340
  def initialize(**args)
305
341
  update!(**args)
306
342
  end
@@ -309,6 +345,7 @@ module Google
309
345
  def update!(**args)
310
346
  @display_name = args[:display_name] if args.key?(:display_name)
311
347
  @id = args[:id] if args.key?(:id)
348
+ @product = args[:product] if args.key?(:product)
312
349
  end
313
350
  end
314
351
 
@@ -325,7 +362,9 @@ module Google
325
362
  end
326
363
  end
327
364
 
328
- # A comment associated with a support case.
365
+ # Case comments are the main way Google Support communicates with a user who has
366
+ # opened a case. When a user responds to Google Support, the user's responses
367
+ # also appear as comments.
329
368
  class Comment
330
369
  include Google::Apis::Core::Hashable
331
370
 
@@ -340,8 +379,9 @@ module Google
340
379
  # @return [String]
341
380
  attr_accessor :create_time
342
381
 
343
- # An object containing information about the effective user and authenticated
344
- # principal responsible for an action.
382
+ # An Actor represents an entity that performed an action. For example, an actor
383
+ # could be a user who posted a comment on a support case, a user who uploaded an
384
+ # attachment, or a service account that created a support case.
345
385
  # Corresponds to the JSON property `creator`
346
386
  # @return [Google::Apis::CloudsupportV2beta::Actor]
347
387
  attr_accessor :creator
@@ -502,7 +542,11 @@ module Google
502
542
  class CreateAttachmentRequest
503
543
  include Google::Apis::Core::Hashable
504
544
 
505
- # Represents a file attached to a support case.
545
+ # An Attachment contains metadata about a file that was uploaded to a case - it
546
+ # is NOT a file itself. That being said, the name of an Attachment object can be
547
+ # used to download its accompanying file through the `media.download` endpoint.
548
+ # While attachments can be uploaded in the console at the same time as a comment,
549
+ # they're associated on a "case" level, not a "comment" level.
506
550
  # Corresponds to the JSON property `attachment`
507
551
  # @return [Google::Apis::CloudsupportV2beta::Attachment]
508
552
  attr_accessor :attachment
@@ -1048,6 +1092,32 @@ module Google
1048
1092
  end
1049
1093
  end
1050
1094
 
1095
+ # The full product a case may be associated with, including Product Line and
1096
+ # Product Subline.
1097
+ class Product
1098
+ include Google::Apis::Core::Hashable
1099
+
1100
+ # The Product Line of the Product.
1101
+ # Corresponds to the JSON property `productLine`
1102
+ # @return [String]
1103
+ attr_accessor :product_line
1104
+
1105
+ # The Product Subline of the Product, such as "Maps Billing".
1106
+ # Corresponds to the JSON property `productSubline`
1107
+ # @return [String]
1108
+ attr_accessor :product_subline
1109
+
1110
+ def initialize(**args)
1111
+ update!(**args)
1112
+ end
1113
+
1114
+ # Update properties of this object
1115
+ def update!(**args)
1116
+ @product_line = args[:product_line] if args.key?(:product_line)
1117
+ @product_subline = args[:product_subline] if args.key?(:product_subline)
1118
+ end
1119
+ end
1120
+
1051
1121
  # The response message for SearchCaseClassifications endpoint.
1052
1122
  class SearchCaseClassificationsResponse
1053
1123
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudsupportV2beta
18
18
  # Version of the google-apis-cloudsupport_v2beta gem
19
- GEM_VERSION = "0.29.0"
19
+ GEM_VERSION = "0.31.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230926"
25
+ REVISION = "20240120"
26
26
  end
27
27
  end
28
28
  end
@@ -160,6 +160,12 @@ module Google
160
160
  include Google::Apis::Core::JsonObjectSupport
161
161
  end
162
162
 
163
+ class Product
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
163
169
  class SearchCaseClassificationsResponse
164
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
171
 
@@ -184,6 +190,7 @@ module Google
184
190
  property :display_name, as: 'displayName'
185
191
  property :email, as: 'email'
186
192
  property :google_support, as: 'googleSupport'
193
+ property :username, as: 'username'
187
194
  end
188
195
  end
189
196
 
@@ -240,6 +247,8 @@ module Google
240
247
  class Representation < Google::Apis::Core::JsonRepresentation
241
248
  property :display_name, as: 'displayName'
242
249
  property :id, as: 'id'
250
+ property :product, as: 'product', class: Google::Apis::CloudsupportV2beta::Product, decorator: Google::Apis::CloudsupportV2beta::Product::Representation
251
+
243
252
  end
244
253
  end
245
254
 
@@ -454,6 +463,14 @@ module Google
454
463
  end
455
464
  end
456
465
 
466
+ class Product
467
+ # @private
468
+ class Representation < Google::Apis::Core::JsonRepresentation
469
+ property :product_line, as: 'productLine'
470
+ property :product_subline, as: 'productSubline'
471
+ end
472
+ end
473
+
457
474
  class SearchCaseClassificationsResponse
458
475
  # @private
459
476
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -33,6 +33,8 @@ module Google
33
33
  #
34
34
  # @see https://cloud.google.com/support/docs/apis
35
35
  class CloudSupportService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://cloudsupport.$UNIVERSE_DOMAIN$/"
37
+
36
38
  # @return [String]
37
39
  # API key. Your API key identifies your project and provides you with API access,
38
40
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -44,7 +46,7 @@ module Google
44
46
  attr_accessor :quota_user
45
47
 
46
48
  def initialize
47
- super('https://cloudsupport.googleapis.com/', '',
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
48
50
  client_name: 'google-apis-cloudsupport_v2beta',
49
51
  client_version: Google::Apis::CloudsupportV2beta::GEM_VERSION)
50
52
  @batch_path = 'batch'
@@ -311,6 +313,8 @@ module Google
311
313
  # @param [String] page_token
312
314
  # A token identifying the page of results to return. If unspecified, the first
313
315
  # page is retrieved.
316
+ # @param [String] product_line
317
+ # The product line to request cases for.
314
318
  # @param [String] fields
315
319
  # Selector specifying which fields to include in a partial response.
316
320
  # @param [String] quota_user
@@ -328,7 +332,7 @@ module Google
328
332
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
329
333
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
330
334
  # @raise [Google::Apis::AuthorizationError] Authorization is required
331
- def list_cases(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
335
+ def list_cases(parent, filter: nil, page_size: nil, page_token: nil, product_line: nil, fields: nil, quota_user: nil, options: nil, &block)
332
336
  command = make_simple_command(:get, 'v2beta/{+parent}/cases', options)
333
337
  command.response_representation = Google::Apis::CloudsupportV2beta::ListCasesResponse::Representation
334
338
  command.response_class = Google::Apis::CloudsupportV2beta::ListCasesResponse
@@ -336,6 +340,7 @@ module Google
336
340
  command.query['filter'] = filter unless filter.nil?
337
341
  command.query['pageSize'] = page_size unless page_size.nil?
338
342
  command.query['pageToken'] = page_token unless page_token.nil?
343
+ command.query['productLine'] = product_line unless product_line.nil?
339
344
  command.query['fields'] = fields unless fields.nil?
340
345
  command.query['quotaUser'] = quota_user unless quota_user.nil?
341
346
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudsupport_v2beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.0
4
+ version: 0.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-01 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudsupport_v2beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2beta/v0.29.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2beta/v0.31.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudsupport_v2beta
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Cloud Support API V2beta