google-cloud-channel-v1 0.1.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,119 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Channel
23
+ module V1
24
+ # Represents Pub/Sub message content describing customer update.
25
+ # @!attribute [rw] customer
26
+ # @return [::String]
27
+ # Resource name of the customer.
28
+ # Format: accounts/\\{account_id}/customers/\\{customer_id}
29
+ # @!attribute [rw] event_type
30
+ # @return [::Google::Cloud::Channel::V1::CustomerEvent::Type]
31
+ # Type of event which happened on the customer.
32
+ class CustomerEvent
33
+ include ::Google::Protobuf::MessageExts
34
+ extend ::Google::Protobuf::MessageExts::ClassMethods
35
+
36
+ # Type of customer event.
37
+ module Type
38
+ # Default value. This state doesn't show unless an error occurs.
39
+ TYPE_UNSPECIFIED = 0
40
+
41
+ # Primary domain for customer was changed.
42
+ PRIMARY_DOMAIN_CHANGED = 1
43
+
44
+ # Primary domain of the customer has been verified.
45
+ PRIMARY_DOMAIN_VERIFIED = 2
46
+ end
47
+ end
48
+
49
+ # Represents Pub/Sub message content describing entitlement update.
50
+ # @!attribute [rw] entitlement
51
+ # @return [::String]
52
+ # Resource name of an entitlement of the form:
53
+ # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
54
+ # @!attribute [rw] event_type
55
+ # @return [::Google::Cloud::Channel::V1::EntitlementEvent::Type]
56
+ # Type of event which happened on the entitlement.
57
+ class EntitlementEvent
58
+ include ::Google::Protobuf::MessageExts
59
+ extend ::Google::Protobuf::MessageExts::ClassMethods
60
+
61
+ # Type of entitlement event.
62
+ module Type
63
+ # Default value. This state doesn't show unless an error occurs.
64
+ TYPE_UNSPECIFIED = 0
65
+
66
+ # A new entitlement was created.
67
+ CREATED = 1
68
+
69
+ # The offer type associated with an entitlement was changed.
70
+ # This is not triggered if an entitlement converts from a commit offer to a
71
+ # flexible offer as part of a renewal.
72
+ PRICE_PLAN_SWITCHED = 3
73
+
74
+ # Annual commitment for a commit plan was changed.
75
+ COMMITMENT_CHANGED = 4
76
+
77
+ # An annual entitlement was renewed.
78
+ RENEWED = 5
79
+
80
+ # Entitlement was suspended.
81
+ SUSPENDED = 6
82
+
83
+ # Entitlement was unsuspended.
84
+ ACTIVATED = 7
85
+
86
+ # Entitlement was cancelled.
87
+ CANCELLED = 8
88
+
89
+ # Entitlement was upgraded or downgraded (e.g. from Google Workspace
90
+ # Business Standard to Google Workspace Business Plus).
91
+ SKU_CHANGED = 9
92
+
93
+ # The renewal settings of an entitlement has changed.
94
+ RENEWAL_SETTING_CHANGED = 10
95
+
96
+ # Paid service has started on trial entitlement.
97
+ PAID_SERVICE_STARTED = 11
98
+
99
+ # License was assigned to or revoked from a user.
100
+ LICENSE_ASSIGNMENT_CHANGED = 12
101
+ end
102
+ end
103
+
104
+ # Represents information which resellers will get as part of notification from
105
+ # Cloud Pub/Sub.
106
+ # @!attribute [rw] customer_event
107
+ # @return [::Google::Cloud::Channel::V1::CustomerEvent]
108
+ # Customer event send as part of Pub/Sub event to partners.
109
+ # @!attribute [rw] entitlement_event
110
+ # @return [::Google::Cloud::Channel::V1::EntitlementEvent]
111
+ # Entitlement event send as part of Pub/Sub event to partners.
112
+ class SubscriberEvent
113
+ include ::Google::Protobuf::MessageExts
114
+ extend ::Google::Protobuf::MessageExts::ClassMethods
115
+ end
116
+ end
117
+ end
118
+ end
119
+ end
@@ -25,7 +25,7 @@ module Google
25
25
  # @return [::String]
26
26
  # The server-assigned name, which is only unique within the same service that
27
27
  # originally returns it. If you use the default HTTP mapping, the
28
- # `name` should have the format of `operations/some/unique/name`.
28
+ # `name` should be a resource name ending with `operations/{unique_id}`.
29
29
  # @!attribute [rw] metadata
30
30
  # @return [::Google::Protobuf::Any]
31
31
  # Service-specific metadata associated with the operation. It typically
@@ -35,7 +35,7 @@ module Google
35
35
  # @!attribute [rw] done
36
36
  # @return [::Boolean]
37
37
  # If the value is `false`, it means the operation is still in progress.
38
- # If true, the operation is completed, and either `error` or `response` is
38
+ # If `true`, the operation is completed, and either `error` or `response` is
39
39
  # available.
40
40
  # @!attribute [rw] error
41
41
  # @return [::Google::Rpc::Status]
@@ -67,7 +67,7 @@ module Google
67
67
  # The request message for Operations.ListOperations.
68
68
  # @!attribute [rw] name
69
69
  # @return [::String]
70
- # The name of the operation collection.
70
+ # The name of the operation's parent resource.
71
71
  # @!attribute [rw] filter
72
72
  # @return [::String]
73
73
  # The standard list filter.
@@ -112,6 +112,20 @@ module Google
112
112
  extend ::Google::Protobuf::MessageExts::ClassMethods
113
113
  end
114
114
 
115
+ # The request message for Operations.WaitOperation.
116
+ # @!attribute [rw] name
117
+ # @return [::String]
118
+ # The name of the operation resource to wait on.
119
+ # @!attribute [rw] timeout
120
+ # @return [::Google::Protobuf::Duration]
121
+ # The maximum duration to wait before timing out. If left blank, the wait
122
+ # will be at most the time permitted by the underlying HTTP/RPC protocol.
123
+ # If RPC context deadline is also specified, the shorter one will be used.
124
+ class WaitOperationRequest
125
+ include ::Google::Protobuf::MessageExts
126
+ extend ::Google::Protobuf::MessageExts::ClassMethods
127
+ end
128
+
115
129
  # A message representing the message types used by a long-running operation.
116
130
  #
117
131
  # Example:
@@ -57,10 +57,13 @@ module Google
57
57
  # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
- # any, err := ptypes.MarshalAny(foo)
60
+ # any, err := anypb.New(foo)
61
+ # if err != nil {
62
+ # ...
63
+ # }
61
64
  # ...
62
65
  # foo := &pb.Foo{}
63
- # if err := ptypes.UnmarshalAny(any, foo); err != nil {
66
+ # if err := any.UnmarshalTo(foo); err != nil {
64
67
  # ...
65
68
  # }
66
69
  #
@@ -0,0 +1,98 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Protobuf
22
+ # A Duration represents a signed, fixed-length span of time represented
23
+ # as a count of seconds and fractions of seconds at nanosecond
24
+ # resolution. It is independent of any calendar and concepts like "day"
25
+ # or "month". It is related to Timestamp in that the difference between
26
+ # two Timestamp values is a Duration and it can be added or subtracted
27
+ # from a Timestamp. Range is approximately +-10,000 years.
28
+ #
29
+ # # Examples
30
+ #
31
+ # Example 1: Compute Duration from two Timestamps in pseudo code.
32
+ #
33
+ # Timestamp start = ...;
34
+ # Timestamp end = ...;
35
+ # Duration duration = ...;
36
+ #
37
+ # duration.seconds = end.seconds - start.seconds;
38
+ # duration.nanos = end.nanos - start.nanos;
39
+ #
40
+ # if (duration.seconds < 0 && duration.nanos > 0) {
41
+ # duration.seconds += 1;
42
+ # duration.nanos -= 1000000000;
43
+ # } else if (duration.seconds > 0 && duration.nanos < 0) {
44
+ # duration.seconds -= 1;
45
+ # duration.nanos += 1000000000;
46
+ # }
47
+ #
48
+ # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
49
+ #
50
+ # Timestamp start = ...;
51
+ # Duration duration = ...;
52
+ # Timestamp end = ...;
53
+ #
54
+ # end.seconds = start.seconds + duration.seconds;
55
+ # end.nanos = start.nanos + duration.nanos;
56
+ #
57
+ # if (end.nanos < 0) {
58
+ # end.seconds -= 1;
59
+ # end.nanos += 1000000000;
60
+ # } else if (end.nanos >= 1000000000) {
61
+ # end.seconds += 1;
62
+ # end.nanos -= 1000000000;
63
+ # }
64
+ #
65
+ # Example 3: Compute Duration from datetime.timedelta in Python.
66
+ #
67
+ # td = datetime.timedelta(days=3, minutes=10)
68
+ # duration = Duration()
69
+ # duration.FromTimedelta(td)
70
+ #
71
+ # # JSON Mapping
72
+ #
73
+ # In JSON format, the Duration type is encoded as a string rather than an
74
+ # object, where the string ends in the suffix "s" (indicating seconds) and
75
+ # is preceded by the number of seconds, with nanoseconds expressed as
76
+ # fractional seconds. For example, 3 seconds with 0 nanoseconds should be
77
+ # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
78
+ # be expressed in JSON format as "3.000000001s", and 3 seconds and 1
79
+ # microsecond should be expressed in JSON format as "3.000001s".
80
+ # @!attribute [rw] seconds
81
+ # @return [::Integer]
82
+ # Signed seconds of the span of time. Must be from -315,576,000,000
83
+ # to +315,576,000,000 inclusive. Note: these bounds are computed from:
84
+ # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
85
+ # @!attribute [rw] nanos
86
+ # @return [::Integer]
87
+ # Signed fractions of a second at nanosecond resolution of the span
88
+ # of time. Durations less than one second are represented with a 0
89
+ # `seconds` field and a positive or negative `nanos` field. For durations
90
+ # of one second or more, a non-zero value for the `nanos` field must be
91
+ # of the same sign as the `seconds` field. Must be from -999,999,999
92
+ # to +999,999,999 inclusive.
93
+ class Duration
94
+ include ::Google::Protobuf::MessageExts
95
+ extend ::Google::Protobuf::MessageExts::ClassMethods
96
+ end
97
+ end
98
+ end
@@ -70,7 +70,16 @@ module Google
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
72
  #
73
- # Example 5: Compute Timestamp from current time in Python.
73
+ # Example 5: Compute Timestamp from Java `Instant.now()`.
74
+ #
75
+ # Instant now = Instant.now();
76
+ #
77
+ # Timestamp timestamp =
78
+ # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
+ # .setNanos(now.getNano()).build();
80
+ #
81
+ #
82
+ # Example 6: Compute Timestamp from current time in Python.
74
83
  #
75
84
  # timestamp = Timestamp()
76
85
  # timestamp.GetCurrentTime()
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-channel-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.6.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: 2021-01-15 00:00:00.000000000 Z
11
+ date: 2021-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: '0.4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.3'
26
+ version: '0.4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-errors
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.24.0
47
+ version: 1.25.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.24.0
54
+ version: 1.25.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -152,7 +152,10 @@ dependencies:
152
152
  version: '0.9'
153
153
  description: You can use Channel Services to manage your relationships with your partners
154
154
  and your customers. Channel Services include a console and APIs to view and provision
155
- links between distributors and resellers, customers and entitlements.
155
+ links between distributors and resellers, customers and entitlements. Note that
156
+ google-cloud-channel-v1 is a version-specific client library. For most uses, we
157
+ recommend installing the main client library google-cloud-channel instead. See the
158
+ readme for more details.
156
159
  email: googleapis-packages@google.com
157
160
  executables: []
158
161
  extensions: []
@@ -178,6 +181,7 @@ files:
178
181
  - lib/google/cloud/channel/v1/products_pb.rb
179
182
  - lib/google/cloud/channel/v1/service_pb.rb
180
183
  - lib/google/cloud/channel/v1/service_services_pb.rb
184
+ - lib/google/cloud/channel/v1/subscriber_event_pb.rb
181
185
  - lib/google/cloud/channel/v1/version.rb
182
186
  - proto_docs/README.md
183
187
  - proto_docs/google/api/field_behavior.rb
@@ -190,8 +194,10 @@ files:
190
194
  - proto_docs/google/cloud/channel/v1/operations.rb
191
195
  - proto_docs/google/cloud/channel/v1/products.rb
192
196
  - proto_docs/google/cloud/channel/v1/service.rb
197
+ - proto_docs/google/cloud/channel/v1/subscriber_event.rb
193
198
  - proto_docs/google/longrunning/operations.rb
194
199
  - proto_docs/google/protobuf/any.rb
200
+ - proto_docs/google/protobuf/duration.rb
195
201
  - proto_docs/google/protobuf/empty.rb
196
202
  - proto_docs/google/protobuf/field_mask.rb
197
203
  - proto_docs/google/protobuf/timestamp.rb
@@ -211,14 +217,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
211
217
  requirements:
212
218
  - - ">="
213
219
  - !ruby/object:Gem::Version
214
- version: '2.4'
220
+ version: '2.5'
215
221
  required_rubygems_version: !ruby/object:Gem::Requirement
216
222
  requirements:
217
223
  - - ">="
218
224
  - !ruby/object:Gem::Version
219
225
  version: '0'
220
226
  requirements: []
221
- rubygems_version: 3.2.5
227
+ rubygems_version: 3.2.13
222
228
  signing_key:
223
229
  specification_version: 4
224
230
  summary: API Client library for the Cloud Channel V1 API