google-api-client 0.42.0 → 0.42.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +70 -0
- data/generated/google/apis/admob_v1.rb +1 -1
- data/generated/google/apis/admob_v1/service.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +28 -13
- data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
- data/generated/google/apis/blogger_v3.rb +1 -1
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +111 -0
- data/generated/google/apis/chat_v1/representations.rb +50 -0
- data/generated/google/apis/chat_v1/service.rb +32 -0
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/service.rb +5 -2
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +25 -0
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +15 -0
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +5 -5
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +5 -5
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +2 -3
- data/generated/google/apis/cloudtrace_v1/service.rb +1 -7
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +6 -5
- data/generated/google/apis/cloudtrace_v2/service.rb +3 -6
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +279 -0
- data/generated/google/apis/compute_beta/representations.rb +90 -0
- data/generated/google/apis/compute_beta/service.rb +257 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +279 -0
- data/generated/google/apis/compute_v1/representations.rb +90 -0
- data/generated/google/apis/compute_v1/service.rb +257 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +9 -0
- data/generated/google/apis/container_v1/representations.rb +1 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +15 -0
- data/generated/google/apis/container_v1beta1/representations.rb +2 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +2 -2
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +4 -4
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +12 -2
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +3 -3
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/service.rb +2 -2
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +9 -9
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +9 -9
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +1 -1
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/service.rb +2 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +5 -2
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +4 -4
- data/generated/google/apis/dns_v2beta1/classes.rb +313 -162
- data/generated/google/apis/dns_v2beta1/service.rb +247 -180
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +66 -2
- data/generated/google/apis/drive_v2/representations.rb +22 -0
- data/generated/google/apis/drive_v2/service.rb +23 -10
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +65 -2
- data/generated/google/apis/drive_v3/representations.rb +22 -0
- data/generated/google/apis/drive_v3/service.rb +8 -5
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +152 -0
- data/generated/google/apis/firestore_v1/representations.rb +63 -0
- data/generated/google/apis/firestore_v1/service.rb +78 -0
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +152 -0
- data/generated/google/apis/firestore_v1beta1/representations.rb +63 -0
- data/generated/google/apis/firestore_v1beta1/service.rb +78 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +53 -53
- data/generated/google/apis/gmail_v1/service.rb +72 -72
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/service.rb +48 -1
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/service.rb +60 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +22 -3
- data/generated/google/apis/iam_v1/service.rb +18 -6
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +17 -11
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +54 -30
- data/generated/google/apis/networkmanagement_v1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1/classes.rb +6 -6
- data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1beta1/classes.rb +6 -6
- data/generated/google/apis/osconfig_v1.rb +1 -1
- data/generated/google/apis/osconfig_v1/classes.rb +2 -2
- data/generated/google/apis/osconfig_v1beta.rb +1 -1
- data/generated/google/apis/osconfig_v1beta/classes.rb +2 -2
- data/generated/google/apis/realtimebidding_v1.rb +1 -1
- data/generated/google/apis/recommendationengine_v1beta1.rb +36 -0
- data/generated/google/apis/recommendationengine_v1beta1/classes.rb +2015 -0
- data/generated/google/apis/recommendationengine_v1beta1/representations.rb +848 -0
- data/generated/google/apis/recommendationengine_v1beta1/service.rb +990 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/reseller_v1.rb +4 -3
- data/generated/google/apis/reseller_v1/classes.rb +219 -160
- data/generated/google/apis/reseller_v1/service.rb +247 -252
- data/generated/google/apis/run_v1.rb +2 -2
- data/generated/google/apis/run_v1/classes.rb +6 -1
- data/generated/google/apis/run_v1/service.rb +1 -1
- data/generated/google/apis/run_v1alpha1.rb +2 -2
- data/generated/google/apis/run_v1alpha1/service.rb +1 -1
- data/generated/google/apis/run_v1beta1.rb +2 -2
- data/generated/google/apis/run_v1beta1/service.rb +1 -1
- data/generated/google/apis/searchconsole_v1.rb +4 -3
- data/generated/google/apis/searchconsole_v1/service.rb +3 -2
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +2 -2
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +2 -2
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +6 -6
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +2 -2
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +2 -2
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +2 -2
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +2 -2
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +2 -2
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +28 -28
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +2 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +2 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +2 -0
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +2 -2
- data/generated/google/apis/youtube_v3/service.rb +1 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3960cdaa6d53df9fbd085acf5fb947c9c9efe3098fe298e495af04820579be58
|
4
|
+
data.tar.gz: cc8947bcf123f51b3aa03ad2ac3e890eb5f03f378ef8c22a60ab70e53dcfb0cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 856ca6c553258565f3f0d4c4c2467b14a4e5a41e674e16c42ea9f3f7c078d9c56ee815ff0152356c6faf1dd8098de6f46a7323e545b8edf5e9223ba17f028745
|
7
|
+
data.tar.gz: ae349cdf6f2b9647e3c9b6e5a126e70a7e28092230108b514cf2a7ea65026525520c493295208be449a785ddc6ba1798f15b7cafaec4816fe57683d11794c5e1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,73 @@
|
|
1
|
+
# 0.42.1
|
2
|
+
* Backwards compatible changes:
|
3
|
+
* Added `recommendationengine_v1beta1`
|
4
|
+
* Updated `admob_v1`
|
5
|
+
* Updated `appsmarket_v2`
|
6
|
+
* Updated `billingbudgets_v1beta1`
|
7
|
+
* Updated `blogger_v3`
|
8
|
+
* Updated `chat_v1`
|
9
|
+
* Updated `classroom_v1`
|
10
|
+
* Updated `cloudbuild_v1`
|
11
|
+
* Updated `cloudidentity_v1beta1`
|
12
|
+
* Updated `cloudscheduler_v1`
|
13
|
+
* Updated `cloudscheduler_v1beta1`
|
14
|
+
* Updated `cloudtrace_v1`
|
15
|
+
* Updated `cloudtrace_v2`
|
16
|
+
* Updated `compute_beta`
|
17
|
+
* Updated `compute_v1`
|
18
|
+
* Updated `container_v1`
|
19
|
+
* Updated `container_v1beta1`
|
20
|
+
* Updated `content_v2`
|
21
|
+
* Updated `content_v2_1`
|
22
|
+
* Updated `customsearch_v1`
|
23
|
+
* Updated `datacatalog_v1beta1`
|
24
|
+
* Updated `dataflow_v1b3`
|
25
|
+
* Updated `dataproc_v1`
|
26
|
+
* Updated `dataproc_v1beta2`
|
27
|
+
* Updated `datastore_v1`
|
28
|
+
* Updated `displayvideo_v1`
|
29
|
+
* Updated `dlp_v2`
|
30
|
+
* Updated `dns_v1`
|
31
|
+
* Updated `dns_v1beta2`
|
32
|
+
* Updated `dns_v2beta1`
|
33
|
+
* Updated `drive_v2`
|
34
|
+
* Updated `drive_v3`
|
35
|
+
* Updated `firestore_v1`
|
36
|
+
* Updated `firestore_v1beta1`
|
37
|
+
* Updated `gmail_v1`
|
38
|
+
* Updated `healthcare_v1`
|
39
|
+
* Updated `healthcare_v1beta1`
|
40
|
+
* Updated `iam_v1`
|
41
|
+
* Updated `memcache_v1beta2`
|
42
|
+
* Updated `ml_v1`
|
43
|
+
* Updated `monitoring_v3`
|
44
|
+
* Updated `networkmanagement_v1`
|
45
|
+
* Updated `networkmanagement_v1beta1`
|
46
|
+
* Updated `osconfig_v1`
|
47
|
+
* Updated `osconfig_v1beta`
|
48
|
+
* Updated `realtimebidding_v1`
|
49
|
+
* Updated `remotebuildexecution_v1`
|
50
|
+
* Updated `remotebuildexecution_v1alpha`
|
51
|
+
* Updated `remotebuildexecution_v2`
|
52
|
+
* Updated `reseller_v1`
|
53
|
+
* Updated `run_v1`
|
54
|
+
* Updated `run_v1alpha1`
|
55
|
+
* Updated `run_v1beta1`
|
56
|
+
* Updated `searchconsole_v1`
|
57
|
+
* Updated `serviceconsumermanagement_v1`
|
58
|
+
* Updated `serviceconsumermanagement_v1beta1`
|
59
|
+
* Updated `servicecontrol_v1`
|
60
|
+
* Updated `servicemanagement_v1`
|
61
|
+
* Updated `servicenetworking_v1`
|
62
|
+
* Updated `servicenetworking_v1beta`
|
63
|
+
* Updated `serviceusage_v1`
|
64
|
+
* Updated `serviceusage_v1beta1`
|
65
|
+
* Updated `sheets_v4`
|
66
|
+
* Updated `vision_v1`
|
67
|
+
* Updated `vision_v1p1beta1`
|
68
|
+
* Updated `vision_v1p2beta1`
|
69
|
+
* Updated `youtube_v3`
|
70
|
+
|
1
71
|
# 0.42.0
|
2
72
|
* Breaking changes:
|
3
73
|
* Deleted `androidpublisher_v1_1`
|
@@ -49,7 +49,7 @@ module Google
|
|
49
49
|
|
50
50
|
# Gets information about the specified AdMob publisher account.
|
51
51
|
# @param [String] name
|
52
|
-
#
|
52
|
+
# Resource name of the publisher account to retrieve.
|
53
53
|
# Example: accounts/pub-9876543210987654
|
54
54
|
# @param [String] fields
|
55
55
|
# Selector specifying which fields to include in a partial response.
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/apps-marketplace
|
27
27
|
module AppsmarketV2
|
28
28
|
VERSION = 'V2'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20200713'
|
30
30
|
|
31
31
|
# View your installed application's licensing information
|
32
32
|
AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license'
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/billing/docs/how-to/budget-api-overview
|
27
27
|
module BillingbudgetsV1beta1
|
28
28
|
VERSION = 'V1beta1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20200711'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -22,12 +22,24 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module BillingbudgetsV1beta1
|
24
24
|
|
25
|
-
# AllUpdatesRule defines notifications that are sent on
|
26
|
-
#
|
27
|
-
# threshold rules.
|
25
|
+
# AllUpdatesRule defines notifications that are sent based on budget spend
|
26
|
+
# and thresholds.
|
28
27
|
class GoogleCloudBillingBudgetsV1beta1AllUpdatesRule
|
29
28
|
include Google::Apis::Core::Hashable
|
30
29
|
|
30
|
+
# Optional. Targets to send notifications to when a threshold is exceeded. This
|
31
|
+
# is in
|
32
|
+
# addition to default recipients who have billing account roles.
|
33
|
+
# The value is the full REST resource name of a monitoring notification
|
34
|
+
# channel with the form
|
35
|
+
# `projects/`project_id`/notificationChannels/`channel_id``. A maximum of 5
|
36
|
+
# channels are allowed. See
|
37
|
+
# https://cloud.google.com/billing/docs/how-to/budgets-notification-recipients
|
38
|
+
# for more details.
|
39
|
+
# Corresponds to the JSON property `monitoringNotificationChannels`
|
40
|
+
# @return [Array<String>]
|
41
|
+
attr_accessor :monitoring_notification_channels
|
42
|
+
|
31
43
|
# Required. The name of the Cloud Pub/Sub topic where budget related messages
|
32
44
|
# will be
|
33
45
|
# published, in the form `projects/`project_id`/topics/`topic_id``. Updates
|
@@ -38,15 +50,17 @@ module Google
|
|
38
50
|
# Caller is expected to have
|
39
51
|
# `pubsub.topics.setIamPolicy` permission on the topic when it's set for a
|
40
52
|
# budget, otherwise, the API call will fail with PERMISSION_DENIED. See
|
41
|
-
# https://cloud.google.com/
|
42
|
-
#
|
53
|
+
# https://cloud.google.com/billing/docs/how-to/budgets-programmatic-
|
54
|
+
# notifications
|
55
|
+
# for more details on Pub/Sub roles and permissions.
|
43
56
|
# Corresponds to the JSON property `pubsubTopic`
|
44
57
|
# @return [String]
|
45
58
|
attr_accessor :pubsub_topic
|
46
59
|
|
47
|
-
# Required. The schema version of the notification
|
60
|
+
# Required. The schema version of the notification sent to `pubsub_topic`.
|
48
61
|
# Only "1.0" is accepted. It represents the JSON schema as defined in
|
49
|
-
# https://cloud.google.com/billing/docs/how-to/budgets
|
62
|
+
# https://cloud.google.com/billing/docs/how-to/budgets-programmatic-
|
63
|
+
# notifications#notification_format
|
50
64
|
# Corresponds to the JSON property `schemaVersion`
|
51
65
|
# @return [String]
|
52
66
|
attr_accessor :schema_version
|
@@ -57,6 +71,7 @@ module Google
|
|
57
71
|
|
58
72
|
# Update properties of this object
|
59
73
|
def update!(**args)
|
74
|
+
@monitoring_notification_channels = args[:monitoring_notification_channels] if args.key?(:monitoring_notification_channels)
|
60
75
|
@pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
|
61
76
|
@schema_version = args[:schema_version] if args.key?(:schema_version)
|
62
77
|
end
|
@@ -70,9 +85,8 @@ module Google
|
|
70
85
|
class GoogleCloudBillingBudgetsV1beta1Budget
|
71
86
|
include Google::Apis::Core::Hashable
|
72
87
|
|
73
|
-
# AllUpdatesRule defines notifications that are sent on
|
74
|
-
#
|
75
|
-
# threshold rules.
|
88
|
+
# AllUpdatesRule defines notifications that are sent based on budget spend
|
89
|
+
# and thresholds.
|
76
90
|
# Corresponds to the JSON property `allUpdatesRule`
|
77
91
|
# @return [Google::Apis::BillingbudgetsV1beta1::GoogleCloudBillingBudgetsV1beta1AllUpdatesRule]
|
78
92
|
attr_accessor :all_updates_rule
|
@@ -221,9 +235,10 @@ module Google
|
|
221
235
|
# Optional. A set of subaccounts of the form `billingAccounts/`account_id``,
|
222
236
|
# specifying
|
223
237
|
# that usage from only this set of subaccounts should be included in the
|
224
|
-
# budget. If a subaccount is set to the name of the
|
225
|
-
# from the
|
226
|
-
# include usage from the
|
238
|
+
# budget. If a subaccount is set to the name of the parent account,
|
239
|
+
# usage from the parent account will be included. If omitted, the
|
240
|
+
# report will include usage from the parent account and all
|
241
|
+
# subaccounts, if they exist.
|
227
242
|
# Corresponds to the JSON property `subaccounts`
|
228
243
|
# @return [Array<String>]
|
229
244
|
attr_accessor :subaccounts
|
@@ -91,6 +91,7 @@ module Google
|
|
91
91
|
class GoogleCloudBillingBudgetsV1beta1AllUpdatesRule
|
92
92
|
# @private
|
93
93
|
class Representation < Google::Apis::Core::JsonRepresentation
|
94
|
+
collection :monitoring_notification_channels, as: 'monitoringNotificationChannels'
|
94
95
|
property :pubsub_topic, as: 'pubsubTopic'
|
95
96
|
property :schema_version, as: 'schemaVersion'
|
96
97
|
end
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/blogger/docs/3.0/getting_started
|
27
27
|
module BloggerV3
|
28
28
|
VERSION = 'V3'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20200711'
|
30
30
|
|
31
31
|
# Manage your Blogger account
|
32
32
|
AUTH_BLOGGER = 'https://www.googleapis.com/auth/blogger'
|
@@ -135,6 +135,92 @@ module Google
|
|
135
135
|
end
|
136
136
|
end
|
137
137
|
|
138
|
+
# An attachment in Hangouts Chat.
|
139
|
+
class Attachment
|
140
|
+
include Google::Apis::Core::Hashable
|
141
|
+
|
142
|
+
# A reference to the data of an attachment.
|
143
|
+
# Corresponds to the JSON property `attachmentDataRef`
|
144
|
+
# @return [Google::Apis::ChatV1::AttachmentDataRef]
|
145
|
+
attr_accessor :attachment_data_ref
|
146
|
+
|
147
|
+
# The original file name for the content, not the full path.
|
148
|
+
# Corresponds to the JSON property `contentName`
|
149
|
+
# @return [String]
|
150
|
+
attr_accessor :content_name
|
151
|
+
|
152
|
+
# The content type (MIME type) of the file.
|
153
|
+
# Corresponds to the JSON property `contentType`
|
154
|
+
# @return [String]
|
155
|
+
attr_accessor :content_type
|
156
|
+
|
157
|
+
# Output only. The download URL which should be used to allow a human user to
|
158
|
+
# download the attachment. Bots should not use this URL to download
|
159
|
+
# attachment content.
|
160
|
+
# Corresponds to the JSON property `downloadUri`
|
161
|
+
# @return [String]
|
162
|
+
attr_accessor :download_uri
|
163
|
+
|
164
|
+
# A reference to the data of a drive attachment.
|
165
|
+
# Corresponds to the JSON property `driveDataRef`
|
166
|
+
# @return [Google::Apis::ChatV1::DriveDataRef]
|
167
|
+
attr_accessor :drive_data_ref
|
168
|
+
|
169
|
+
# Resource name of the attachment, in the form
|
170
|
+
# "spaces/*/messages/*/attachments/*".
|
171
|
+
# Corresponds to the JSON property `name`
|
172
|
+
# @return [String]
|
173
|
+
attr_accessor :name
|
174
|
+
|
175
|
+
# The source of the attachment.
|
176
|
+
# Corresponds to the JSON property `source`
|
177
|
+
# @return [String]
|
178
|
+
attr_accessor :source
|
179
|
+
|
180
|
+
# Output only. The thumbnail URL which should be used to preview the
|
181
|
+
# attachment to a human user. Bots should not use this URL to download
|
182
|
+
# attachment content.
|
183
|
+
# Corresponds to the JSON property `thumbnailUri`
|
184
|
+
# @return [String]
|
185
|
+
attr_accessor :thumbnail_uri
|
186
|
+
|
187
|
+
def initialize(**args)
|
188
|
+
update!(**args)
|
189
|
+
end
|
190
|
+
|
191
|
+
# Update properties of this object
|
192
|
+
def update!(**args)
|
193
|
+
@attachment_data_ref = args[:attachment_data_ref] if args.key?(:attachment_data_ref)
|
194
|
+
@content_name = args[:content_name] if args.key?(:content_name)
|
195
|
+
@content_type = args[:content_type] if args.key?(:content_type)
|
196
|
+
@download_uri = args[:download_uri] if args.key?(:download_uri)
|
197
|
+
@drive_data_ref = args[:drive_data_ref] if args.key?(:drive_data_ref)
|
198
|
+
@name = args[:name] if args.key?(:name)
|
199
|
+
@source = args[:source] if args.key?(:source)
|
200
|
+
@thumbnail_uri = args[:thumbnail_uri] if args.key?(:thumbnail_uri)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
# A reference to the data of an attachment.
|
205
|
+
class AttachmentDataRef
|
206
|
+
include Google::Apis::Core::Hashable
|
207
|
+
|
208
|
+
# The resource name of the attachment data. This is used with the media API
|
209
|
+
# to download the attachment data.
|
210
|
+
# Corresponds to the JSON property `resourceName`
|
211
|
+
# @return [String]
|
212
|
+
attr_accessor :resource_name
|
213
|
+
|
214
|
+
def initialize(**args)
|
215
|
+
update!(**args)
|
216
|
+
end
|
217
|
+
|
218
|
+
# Update properties of this object
|
219
|
+
def update!(**args)
|
220
|
+
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
138
224
|
# A button. Can be a text button or an image button.
|
139
225
|
class Button
|
140
226
|
include Google::Apis::Core::Hashable
|
@@ -340,6 +426,25 @@ module Google
|
|
340
426
|
end
|
341
427
|
end
|
342
428
|
|
429
|
+
# A reference to the data of a drive attachment.
|
430
|
+
class DriveDataRef
|
431
|
+
include Google::Apis::Core::Hashable
|
432
|
+
|
433
|
+
# The id for the drive file, for use with the Drive API.
|
434
|
+
# Corresponds to the JSON property `driveFileId`
|
435
|
+
# @return [String]
|
436
|
+
attr_accessor :drive_file_id
|
437
|
+
|
438
|
+
def initialize(**args)
|
439
|
+
update!(**args)
|
440
|
+
end
|
441
|
+
|
442
|
+
# Update properties of this object
|
443
|
+
def update!(**args)
|
444
|
+
@drive_file_id = args[:drive_file_id] if args.key?(:drive_file_id)
|
445
|
+
end
|
446
|
+
end
|
447
|
+
|
343
448
|
# A generic empty message that you can re-use to avoid defining duplicated
|
344
449
|
# empty messages in your APIs. A typical example is to use it as the request
|
345
450
|
# or the response type of an API method. For instance:
|
@@ -636,6 +741,11 @@ module Google
|
|
636
741
|
# @return [String]
|
637
742
|
attr_accessor :argument_text
|
638
743
|
|
744
|
+
# User uploaded attachment.
|
745
|
+
# Corresponds to the JSON property `attachment`
|
746
|
+
# @return [Array<Google::Apis::ChatV1::Attachment>]
|
747
|
+
attr_accessor :attachment
|
748
|
+
|
639
749
|
# Rich, formatted and interactive cards that can be used to display UI
|
640
750
|
# elements such as: formatted texts, buttons, clickable images. Cards are
|
641
751
|
# normally displayed below the plain-text body of the message.
|
@@ -697,6 +807,7 @@ module Google
|
|
697
807
|
@action_response = args[:action_response] if args.key?(:action_response)
|
698
808
|
@annotations = args[:annotations] if args.key?(:annotations)
|
699
809
|
@argument_text = args[:argument_text] if args.key?(:argument_text)
|
810
|
+
@attachment = args[:attachment] if args.key?(:attachment)
|
700
811
|
@cards = args[:cards] if args.key?(:cards)
|
701
812
|
@create_time = args[:create_time] if args.key?(:create_time)
|
702
813
|
@fallback_text = args[:fallback_text] if args.key?(:fallback_text)
|
@@ -40,6 +40,18 @@ module Google
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
+
class Attachment
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class AttachmentDataRef
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
43
55
|
class Button
|
44
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
57
|
|
@@ -70,6 +82,12 @@ module Google
|
|
70
82
|
include Google::Apis::Core::JsonObjectSupport
|
71
83
|
end
|
72
84
|
|
85
|
+
class DriveDataRef
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
73
91
|
class Empty
|
74
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
93
|
|
@@ -211,6 +229,29 @@ module Google
|
|
211
229
|
end
|
212
230
|
end
|
213
231
|
|
232
|
+
class Attachment
|
233
|
+
# @private
|
234
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
235
|
+
property :attachment_data_ref, as: 'attachmentDataRef', class: Google::Apis::ChatV1::AttachmentDataRef, decorator: Google::Apis::ChatV1::AttachmentDataRef::Representation
|
236
|
+
|
237
|
+
property :content_name, as: 'contentName'
|
238
|
+
property :content_type, as: 'contentType'
|
239
|
+
property :download_uri, as: 'downloadUri'
|
240
|
+
property :drive_data_ref, as: 'driveDataRef', class: Google::Apis::ChatV1::DriveDataRef, decorator: Google::Apis::ChatV1::DriveDataRef::Representation
|
241
|
+
|
242
|
+
property :name, as: 'name'
|
243
|
+
property :source, as: 'source'
|
244
|
+
property :thumbnail_uri, as: 'thumbnailUri'
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
class AttachmentDataRef
|
249
|
+
# @private
|
250
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
251
|
+
property :resource_name, as: 'resourceName'
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
214
255
|
class Button
|
215
256
|
# @private
|
216
257
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -272,6 +313,13 @@ module Google
|
|
272
313
|
end
|
273
314
|
end
|
274
315
|
|
316
|
+
class DriveDataRef
|
317
|
+
# @private
|
318
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
319
|
+
property :drive_file_id, as: 'driveFileId'
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
275
323
|
class Empty
|
276
324
|
# @private
|
277
325
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -361,6 +409,8 @@ module Google
|
|
361
409
|
collection :annotations, as: 'annotations', class: Google::Apis::ChatV1::Annotation, decorator: Google::Apis::ChatV1::Annotation::Representation
|
362
410
|
|
363
411
|
property :argument_text, as: 'argumentText'
|
412
|
+
collection :attachment, as: 'attachment', class: Google::Apis::ChatV1::Attachment, decorator: Google::Apis::ChatV1::Attachment::Representation
|
413
|
+
|
364
414
|
collection :cards, as: 'cards', class: Google::Apis::ChatV1::Card, decorator: Google::Apis::ChatV1::Card::Representation
|
365
415
|
|
366
416
|
property :create_time, as: 'createTime'
|