google-cloud-support-v2beta 0.5.1 → 0.7.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.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/support/v2beta/case_attachment_service/client.rb +2 -0
  4. data/lib/google/cloud/support/v2beta/case_attachment_service/rest/client.rb +2 -0
  5. data/lib/google/cloud/support/v2beta/case_service/client.rb +23 -5
  6. data/lib/google/cloud/support/v2beta/case_service/rest/client.rb +23 -5
  7. data/lib/google/cloud/support/v2beta/comment_service/client.rb +2 -0
  8. data/lib/google/cloud/support/v2beta/comment_service/rest/client.rb +2 -0
  9. data/lib/google/cloud/support/v2beta/feed_service/client.rb +2 -0
  10. data/lib/google/cloud/support/v2beta/feed_service/rest/client.rb +2 -0
  11. data/lib/google/cloud/support/v2beta/rest.rb +1 -0
  12. data/lib/google/cloud/support/v2beta/support_event_subscription_pb.rb +27 -0
  13. data/lib/google/cloud/support/v2beta/support_event_subscription_service/client.rb +979 -0
  14. data/lib/google/cloud/support/v2beta/support_event_subscription_service/credentials.rb +47 -0
  15. data/lib/google/cloud/support/v2beta/support_event_subscription_service/paths.rb +64 -0
  16. data/lib/google/cloud/support/v2beta/support_event_subscription_service/rest/client.rb +894 -0
  17. data/lib/google/cloud/support/v2beta/support_event_subscription_service/rest/service_stub.rb +450 -0
  18. data/lib/google/cloud/support/v2beta/support_event_subscription_service/rest.rb +52 -0
  19. data/lib/google/cloud/support/v2beta/support_event_subscription_service.rb +55 -0
  20. data/lib/google/cloud/support/v2beta/support_event_subscription_service_pb.rb +34 -0
  21. data/lib/google/cloud/support/v2beta/support_event_subscription_service_services_pb.rb +55 -0
  22. data/lib/google/cloud/support/v2beta/version.rb +1 -1
  23. data/lib/google/cloud/support/v2beta.rb +1 -0
  24. data/proto_docs/google/cloud/support/v2beta/case_service.rb +21 -5
  25. data/proto_docs/google/cloud/support/v2beta/support_event_subscription.rb +93 -0
  26. data/proto_docs/google/cloud/support/v2beta/support_event_subscription_service.rb +136 -0
  27. metadata +15 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a44f8279d66c0bf71715b03c84f72baa1b04c995d4df2cdf2e0fa17ba52f9bc6
4
- data.tar.gz: 695c2b994a396a7d054a4a0251f811ec5db0b50397409aa34375db21befff402
3
+ metadata.gz: 5b07129e835ccd2dd5d24cfcad567a505256f30c7989c8e2904d090c8ea2aa83
4
+ data.tar.gz: b4a793c660e672ec25db4df5d95956f558ce5903318207091d93c9e5757b0b6a
5
5
  SHA512:
6
- metadata.gz: 9625e605f0e6f93de42f1f5471790f0c536d8e3f5ae6b73b0711edd123876b959fdde07acab872c9a0213a5cc6cfab81cac9eae0d610bf52c8b519bdcad9de11
7
- data.tar.gz: bb411682cdc23944e89b0b8b96960f2e4a1750d66843f3f0f0cac7affe8812d37d08f894ebeb9073603b52794f1b02a970471838ab3f27da1b3f361bf65f1af1
6
+ metadata.gz: ab35c7833ad2d4f3b058056cba01bd093ef61117b3c765ae9ac687f71666f5271eba8f0525fea28605aa3b62046eccde173326abb8a93e9f35ed5bc9bde02390
7
+ data.tar.gz: 35ce16421fdd9fd8ed810150e3b6708e10962871299ea59f63962f4323a1efd8065329283515415a3fd77a2ac34ddc69486e53c26c65c0ead298c22d36635b07
data/README.md CHANGED
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
86
86
 
87
87
  ## Supported Ruby Versions
88
88
 
89
- This library is supported on Ruby 3.0+.
89
+ This library is supported on Ruby 3.2+.
90
90
 
91
91
  Google provides official support for Ruby versions that are actively supported
92
92
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -472,6 +472,7 @@ module Google
472
472
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
473
473
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
474
474
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
475
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
475
476
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
476
477
  # trigger a retry.
477
478
  # @return [::Hash]
@@ -555,6 +556,7 @@ module Google
555
556
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
556
557
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
557
558
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
559
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
558
560
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
559
561
  # trigger a retry.
560
562
  #
@@ -425,6 +425,7 @@ module Google
425
425
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
426
426
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
427
427
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
428
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
428
429
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
429
430
  # trigger a retry.
430
431
  # @return [::Hash]
@@ -497,6 +498,7 @@ module Google
497
498
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
498
499
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
499
500
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
501
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
500
502
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
501
503
  # trigger a retry.
502
504
  #
@@ -445,17 +445,12 @@ module Google
445
445
  # Expressions use the following fields separated by `AND` and specified with
446
446
  # `=`:
447
447
  #
448
- # - `organization`: An organization name in the form
449
- # `organizations/<organization_id>`.
450
- # - `project`: A project name in the form `projects/<project_id>`.
451
448
  # - `state`: Can be `OPEN` or `CLOSED`.
452
449
  # - `priority`: Can be `P0`, `P1`, `P2`, `P3`, or `P4`. You
453
450
  # can specify multiple values for priority using the `OR` operator. For
454
451
  # example, `priority=P1 OR priority=P2`.
455
452
  # - `creator.email`: The email address of the case creator.
456
453
  #
457
- # You must specify either `organization` or `project`.
458
- #
459
454
  # To search across `displayName`, `description`, and comments, use a global
460
455
  # restriction with no keyword or operator. For example, `"my search"`.
461
456
  #
@@ -464,8 +459,29 @@ module Google
464
459
  # format. For example, `update_time>"2020-01-01T00:00:00-05:00"`.
465
460
  # `update_time` only supports the greater than operator (`>`).
466
461
  #
462
+ # If you are using the `v2` version of the API, you must specify the case
463
+ # parent in the `parent` field. If you provide an empty `query`, all cases
464
+ # under the parent resource will be returned.
465
+ #
466
+ # If you are using the `v2beta` version of the API, you must specify the case
467
+ # parent in the `query` field using one of the two fields below, which are
468
+ # only available for `v2beta`. The `parent` field will be ignored.
469
+ #
470
+ # - `organization`: An organization name in the form
471
+ # `organizations/<organization_id>`.
472
+ # - `project`: A project name in the form `projects/<project_id>`.
473
+ #
467
474
  # Examples:
468
475
  #
476
+ # For `v2`:
477
+ #
478
+ # - `state=CLOSED`
479
+ # - `state=OPEN AND creator.email="tester@example.com"`
480
+ # - `state=OPEN AND (priority=P0 OR priority=P1)`
481
+ # - `update_time>"2020-01-01T00:00:00-05:00"`
482
+ #
483
+ # For `v2beta`:
484
+ #
469
485
  # - `organization="organizations/123456789"`
470
486
  # - `project="projects/my-project-id"`
471
487
  # - `project="projects/123456789"`
@@ -1110,6 +1126,7 @@ module Google
1110
1126
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1111
1127
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1112
1128
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1129
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1113
1130
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1114
1131
  # trigger a retry.
1115
1132
  # @return [::Hash]
@@ -1193,6 +1210,7 @@ module Google
1193
1210
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1194
1211
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1195
1212
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1213
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1196
1214
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1197
1215
  # trigger a retry.
1198
1216
  #
@@ -424,17 +424,12 @@ module Google
424
424
  # Expressions use the following fields separated by `AND` and specified with
425
425
  # `=`:
426
426
  #
427
- # - `organization`: An organization name in the form
428
- # `organizations/<organization_id>`.
429
- # - `project`: A project name in the form `projects/<project_id>`.
430
427
  # - `state`: Can be `OPEN` or `CLOSED`.
431
428
  # - `priority`: Can be `P0`, `P1`, `P2`, `P3`, or `P4`. You
432
429
  # can specify multiple values for priority using the `OR` operator. For
433
430
  # example, `priority=P1 OR priority=P2`.
434
431
  # - `creator.email`: The email address of the case creator.
435
432
  #
436
- # You must specify either `organization` or `project`.
437
- #
438
433
  # To search across `displayName`, `description`, and comments, use a global
439
434
  # restriction with no keyword or operator. For example, `"my search"`.
440
435
  #
@@ -443,8 +438,29 @@ module Google
443
438
  # format. For example, `update_time>"2020-01-01T00:00:00-05:00"`.
444
439
  # `update_time` only supports the greater than operator (`>`).
445
440
  #
441
+ # If you are using the `v2` version of the API, you must specify the case
442
+ # parent in the `parent` field. If you provide an empty `query`, all cases
443
+ # under the parent resource will be returned.
444
+ #
445
+ # If you are using the `v2beta` version of the API, you must specify the case
446
+ # parent in the `query` field using one of the two fields below, which are
447
+ # only available for `v2beta`. The `parent` field will be ignored.
448
+ #
449
+ # - `organization`: An organization name in the form
450
+ # `organizations/<organization_id>`.
451
+ # - `project`: A project name in the form `projects/<project_id>`.
452
+ #
446
453
  # Examples:
447
454
  #
455
+ # For `v2`:
456
+ #
457
+ # - `state=CLOSED`
458
+ # - `state=OPEN AND creator.email="tester@example.com"`
459
+ # - `state=OPEN AND (priority=P0 OR priority=P1)`
460
+ # - `update_time>"2020-01-01T00:00:00-05:00"`
461
+ #
462
+ # For `v2beta`:
463
+ #
448
464
  # - `organization="organizations/123456789"`
449
465
  # - `project="projects/my-project-id"`
450
466
  # - `project="projects/123456789"`
@@ -1029,6 +1045,7 @@ module Google
1029
1045
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1030
1046
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1031
1047
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1048
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1032
1049
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1033
1050
  # trigger a retry.
1034
1051
  # @return [::Hash]
@@ -1101,6 +1118,7 @@ module Google
1101
1118
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1102
1119
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1103
1120
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1121
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1104
1122
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1105
1123
  # trigger a retry.
1106
1124
  #
@@ -556,6 +556,7 @@ module Google
556
556
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
557
557
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
558
558
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
559
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
559
560
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
560
561
  # trigger a retry.
561
562
  # @return [::Hash]
@@ -639,6 +640,7 @@ module Google
639
640
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
640
641
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
641
642
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
643
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
642
644
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
643
645
  # trigger a retry.
644
646
  #
@@ -502,6 +502,7 @@ module Google
502
502
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
503
503
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
504
504
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
505
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
505
506
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
506
507
  # trigger a retry.
507
508
  # @return [::Hash]
@@ -574,6 +575,7 @@ module Google
574
575
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
575
576
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
576
577
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
578
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
577
579
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
578
580
  # trigger a retry.
579
581
  #
@@ -389,6 +389,7 @@ module Google
389
389
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
390
390
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
391
391
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
392
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
392
393
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
393
394
  # trigger a retry.
394
395
  # @return [::Hash]
@@ -472,6 +473,7 @@ module Google
472
473
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
473
474
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
474
475
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
476
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
475
477
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
476
478
  # trigger a retry.
477
479
  #
@@ -349,6 +349,7 @@ module Google
349
349
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
350
350
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
351
351
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
352
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
352
353
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
353
354
  # trigger a retry.
354
355
  # @return [::Hash]
@@ -421,6 +422,7 @@ module Google
421
422
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
422
423
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
423
424
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
425
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
424
426
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
425
427
  # trigger a retry.
426
428
  #
@@ -20,6 +20,7 @@ require "google/cloud/support/v2beta/case_attachment_service/rest"
20
20
  require "google/cloud/support/v2beta/case_service/rest"
21
21
  require "google/cloud/support/v2beta/comment_service/rest"
22
22
  require "google/cloud/support/v2beta/feed_service/rest"
23
+ require "google/cloud/support/v2beta/support_event_subscription_service/rest"
23
24
  require "google/cloud/support/v2beta/version"
24
25
 
25
26
  module Google
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/support/v2beta/support_event_subscription.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
9
+ require 'google/protobuf/timestamp_pb'
10
+
11
+
12
+ descriptor_data = "\n<google/cloud/support/v2beta/support_event_subscription.proto\x12\x1bgoogle.cloud.support.v2beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc9\x06\n\x18SupportEventSubscription\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\rpub_sub_topic\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12O\n\x05state\x18\x03 \x01(\x0e\x32;.google.cloud.support.v2beta.SupportEventSubscription.StateB\x03\xe0\x41\x03\x12`\n\x0e\x66\x61ilure_reason\x18\x04 \x01(\x0e\x32\x43.google.cloud.support.v2beta.SupportEventSubscription.FailureReasonB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x33\n\npurge_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07WORKING\x10\x01\x12\x0b\n\x07\x46\x41ILING\x10\x02\x12\x0b\n\x07\x44\x45LETED\x10\x03\"f\n\rFailureReason\x12\x1e\n\x1a\x46\x41ILURE_REASON_UNSPECIFIED\x10\x00\x12\x15\n\x11PERMISSION_DENIED\x10\x01\x12\x13\n\x0fTOPIC_NOT_FOUND\x10\x02\x12\t\n\x05OTHER\x10\x03:\xc4\x01\xea\x41\xc0\x01\n4cloudsupport.googleapis.com/SupportEventSubscription\x12Sorganizations/{organization}/supportEventSubscriptions/{support_event_subscription}*\x19supportEventSubscriptions2\x18supportEventSubscriptionB\xda\x01\n\x1f\x63om.google.cloud.support.v2betaB\x1dSupportEventSubscriptionProtoP\x01Z9cloud.google.com/go/support/apiv2beta/supportpb;supportpb\xaa\x02\x1bGoogle.Cloud.Support.V2Beta\xca\x02\x1bGoogle\\Cloud\\Support\\V2beta\xea\x02\x1eGoogle::Cloud::Support::V2betab\x06proto3"
13
+
14
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
15
+ pool.add_serialized_file(descriptor_data)
16
+
17
+ module Google
18
+ module Cloud
19
+ module Support
20
+ module V2beta
21
+ SupportEventSubscription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.support.v2beta.SupportEventSubscription").msgclass
22
+ SupportEventSubscription::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.support.v2beta.SupportEventSubscription.State").enummodule
23
+ SupportEventSubscription::FailureReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.support.v2beta.SupportEventSubscription.FailureReason").enummodule
24
+ end
25
+ end
26
+ end
27
+ end