google-api-client 0.42.1 → 0.42.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +76 -0
- data/generated/google/apis/admob_v1.rb +1 -1
- data/generated/google/apis/admob_v1/classes.rb +3 -1
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +6 -12
- data/generated/google/apis/apigee_v1/representations.rb +1 -2
- data/generated/google/apis/apigee_v1/service.rb +18 -5
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/service.rb +6 -3
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/service.rb +6 -2
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +198 -3
- data/generated/google/apis/bigquery_v2/representations.rb +70 -0
- data/generated/google/apis/bigtableadmin_v1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1/classes.rb +267 -0
- data/generated/google/apis/bigtableadmin_v1/representations.rb +100 -0
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +355 -0
- data/generated/google/apis/bigtableadmin_v2/representations.rb +146 -0
- data/generated/google/apis/bigtableadmin_v2/service.rb +298 -0
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +140 -159
- data/generated/google/apis/books_v1/service.rb +47 -49
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +19 -0
- data/generated/google/apis/chat_v1/representations.rb +13 -0
- data/generated/google/apis/chat_v1/service.rb +39 -0
- data/generated/google/apis/chromeuxreport_v1.rb +1 -1
- data/generated/google/apis/chromeuxreport_v1/classes.rb +22 -0
- data/generated/google/apis/chromeuxreport_v1/representations.rb +2 -0
- data/generated/google/apis/{cloudfunctions_v1beta2.rb → cloudasset_v1p5beta1.rb} +9 -9
- data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +1537 -0
- data/generated/google/apis/cloudasset_v1p5beta1/representations.rb +399 -0
- data/generated/google/apis/cloudasset_v1p5beta1/service.rb +129 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +0 -45
- data/generated/google/apis/cloudfunctions_v1/representations.rb +0 -17
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +503 -754
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +198 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +258 -429
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +136 -178
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +258 -414
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +96 -129
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +258 -414
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +96 -129
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +11 -0
- data/generated/google/apis/cloudscheduler_v1/representations.rb +1 -0
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +11 -0
- data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +1 -0
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1/classes.rb +2 -2
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +8 -5
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +6 -0
- data/generated/google/apis/content_v2/representations.rb +1 -0
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +6 -0
- data/generated/google/apis/content_v2_1/representations.rb +1 -0
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/classes.rb +14 -10
- data/generated/google/apis/customsearch_v1/service.rb +6 -6
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +380 -569
- data/generated/google/apis/datacatalog_v1beta1/service.rb +319 -440
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +2 -1
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4/classes.rb +421 -0
- data/generated/google/apis/dfareporting_v3_4/representations.rb +182 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +148 -35
- data/generated/google/apis/dialogflow_v2/representations.rb +15 -0
- data/generated/google/apis/dialogflow_v2/service.rb +4 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +164 -36
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +15 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +8 -0
- data/generated/google/apis/displayvideo_v1.rb +7 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +1666 -1726
- data/generated/google/apis/displayvideo_v1/representations.rb +264 -0
- data/generated/google/apis/displayvideo_v1/service.rb +1173 -926
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +109 -126
- data/generated/google/apis/doubleclicksearch_v2/service.rb +3 -4
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/fcm_v1/classes.rb +245 -393
- data/generated/google/apis/fcm_v1/service.rb +5 -6
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +10 -16
- data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
- data/generated/google/apis/firebaseml_v1beta2/classes.rb +9 -0
- data/generated/google/apis/firebaseml_v1beta2/representations.rb +1 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +2 -2
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/service.rb +2 -2
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +1 -1
- data/generated/google/apis/games_v1/service.rb +2 -2
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +2 -2
- data/generated/google/apis/gmail_v1/service.rb +2 -1
- data/generated/google/apis/gmailpostmastertools_v1beta1.rb +4 -1
- data/generated/google/apis/monitoring_v1.rb +1 -1
- data/generated/google/apis/monitoring_v1/classes.rb +2 -1
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +5 -4
- data/generated/google/apis/monitoring_v3/service.rb +5 -4
- data/generated/google/apis/osconfig_v1.rb +1 -1
- data/generated/google/apis/osconfig_v1/classes.rb +75 -0
- data/generated/google/apis/osconfig_v1/representations.rb +35 -0
- data/generated/google/apis/osconfig_v1beta.rb +1 -1
- data/generated/google/apis/osconfig_v1beta/classes.rb +75 -0
- data/generated/google/apis/osconfig_v1beta/representations.rb +35 -0
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +243 -397
- data/generated/google/apis/people_v1/service.rb +156 -384
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +0 -73
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +0 -32
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +0 -477
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +21 -0
- data/generated/google/apis/pubsub_v1/representations.rb +2 -0
- data/generated/google/apis/realtimebidding_v1.rb +1 -1
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +397 -0
- data/generated/google/apis/redis_v1/representations.rb +139 -0
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +397 -0
- data/generated/google/apis/redis_v1beta1/representations.rb +139 -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/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +835 -1248
- data/generated/google/apis/run_v1/service.rb +195 -245
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +934 -1331
- data/generated/google/apis/run_v1alpha1/service.rb +321 -377
- data/generated/google/apis/run_v1beta1.rb +1 -1
- data/generated/google/apis/run_v1beta1/classes.rb +209 -276
- data/generated/google/apis/run_v1beta1/service.rb +16 -18
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/classes.rb +0 -73
- data/generated/google/apis/sasportal_v1alpha1/representations.rb +0 -32
- data/generated/google/apis/sasportal_v1alpha1/service.rb +0 -477
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +2 -2
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +7 -7
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +1 -1
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +1 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/sql_v1beta4.rb +1 -1
- data/generated/google/apis/sql_v1beta4/classes.rb +207 -200
- data/generated/google/apis/sql_v1beta4/representations.rb +2 -1
- data/generated/google/apis/sql_v1beta4/service.rb +2 -2
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +63 -0
- data/generated/google/apis/testing_v1/representations.rb +32 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +9 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +1 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +498 -498
- data/generated/google/apis/webfonts_v1.rb +1 -1
- data/generated/google/apis/webfonts_v1/service.rb +2 -2
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +637 -761
- data/generated/google/apis/youtube_partner_v1/service.rb +511 -651
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +6 -0
- data/generated/google/apis/youtube_v3/representations.rb +1 -0
- data/generated/google/apis/youtube_v3/service.rb +32 -32
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -7
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +0 -848
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +0 -346
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +0 -486
@@ -1,346 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'date'
|
16
|
-
require 'google/apis/core/base_service'
|
17
|
-
require 'google/apis/core/json_representation'
|
18
|
-
require 'google/apis/core/hashable'
|
19
|
-
require 'google/apis/errors'
|
20
|
-
|
21
|
-
module Google
|
22
|
-
module Apis
|
23
|
-
module CloudfunctionsV1beta2
|
24
|
-
|
25
|
-
class CallFunctionRequest
|
26
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
-
|
28
|
-
include Google::Apis::Core::JsonObjectSupport
|
29
|
-
end
|
30
|
-
|
31
|
-
class CallFunctionResponse
|
32
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
-
|
34
|
-
include Google::Apis::Core::JsonObjectSupport
|
35
|
-
end
|
36
|
-
|
37
|
-
class CloudFunction
|
38
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
-
|
40
|
-
include Google::Apis::Core::JsonObjectSupport
|
41
|
-
end
|
42
|
-
|
43
|
-
class EventTrigger
|
44
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
-
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
47
|
-
end
|
48
|
-
|
49
|
-
class FailurePolicy
|
50
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
-
|
52
|
-
include Google::Apis::Core::JsonObjectSupport
|
53
|
-
end
|
54
|
-
|
55
|
-
class GenerateDownloadUrlRequest
|
56
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
-
|
58
|
-
include Google::Apis::Core::JsonObjectSupport
|
59
|
-
end
|
60
|
-
|
61
|
-
class GenerateDownloadUrlResponse
|
62
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
-
|
64
|
-
include Google::Apis::Core::JsonObjectSupport
|
65
|
-
end
|
66
|
-
|
67
|
-
class GenerateUploadUrlRequest
|
68
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
-
|
70
|
-
include Google::Apis::Core::JsonObjectSupport
|
71
|
-
end
|
72
|
-
|
73
|
-
class GenerateUploadUrlResponse
|
74
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
-
|
76
|
-
include Google::Apis::Core::JsonObjectSupport
|
77
|
-
end
|
78
|
-
|
79
|
-
class HttpsTrigger
|
80
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
-
|
82
|
-
include Google::Apis::Core::JsonObjectSupport
|
83
|
-
end
|
84
|
-
|
85
|
-
class ListFunctionsResponse
|
86
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
-
|
88
|
-
include Google::Apis::Core::JsonObjectSupport
|
89
|
-
end
|
90
|
-
|
91
|
-
class ListLocationsResponse
|
92
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
-
|
94
|
-
include Google::Apis::Core::JsonObjectSupport
|
95
|
-
end
|
96
|
-
|
97
|
-
class ListOperationsResponse
|
98
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
-
|
100
|
-
include Google::Apis::Core::JsonObjectSupport
|
101
|
-
end
|
102
|
-
|
103
|
-
class Location
|
104
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
-
|
106
|
-
include Google::Apis::Core::JsonObjectSupport
|
107
|
-
end
|
108
|
-
|
109
|
-
class Operation
|
110
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
-
|
112
|
-
include Google::Apis::Core::JsonObjectSupport
|
113
|
-
end
|
114
|
-
|
115
|
-
class OperationMetadataV1
|
116
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
-
|
118
|
-
include Google::Apis::Core::JsonObjectSupport
|
119
|
-
end
|
120
|
-
|
121
|
-
class OperationMetadataV1Beta2
|
122
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
-
|
124
|
-
include Google::Apis::Core::JsonObjectSupport
|
125
|
-
end
|
126
|
-
|
127
|
-
class Retry
|
128
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
-
|
130
|
-
include Google::Apis::Core::JsonObjectSupport
|
131
|
-
end
|
132
|
-
|
133
|
-
class SourceRepository
|
134
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
-
|
136
|
-
include Google::Apis::Core::JsonObjectSupport
|
137
|
-
end
|
138
|
-
|
139
|
-
class Status
|
140
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
-
|
142
|
-
include Google::Apis::Core::JsonObjectSupport
|
143
|
-
end
|
144
|
-
|
145
|
-
class CallFunctionRequest
|
146
|
-
# @private
|
147
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
148
|
-
property :data, as: 'data'
|
149
|
-
end
|
150
|
-
end
|
151
|
-
|
152
|
-
class CallFunctionResponse
|
153
|
-
# @private
|
154
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
155
|
-
property :error, as: 'error'
|
156
|
-
property :execution_id, as: 'executionId'
|
157
|
-
property :result, as: 'result'
|
158
|
-
end
|
159
|
-
end
|
160
|
-
|
161
|
-
class CloudFunction
|
162
|
-
# @private
|
163
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
164
|
-
property :available_memory_mb, as: 'availableMemoryMb'
|
165
|
-
property :entry_point, as: 'entryPoint'
|
166
|
-
hash :environment_variables, as: 'environmentVariables'
|
167
|
-
property :event_trigger, as: 'eventTrigger', class: Google::Apis::CloudfunctionsV1beta2::EventTrigger, decorator: Google::Apis::CloudfunctionsV1beta2::EventTrigger::Representation
|
168
|
-
|
169
|
-
property :https_trigger, as: 'httpsTrigger', class: Google::Apis::CloudfunctionsV1beta2::HttpsTrigger, decorator: Google::Apis::CloudfunctionsV1beta2::HttpsTrigger::Representation
|
170
|
-
|
171
|
-
hash :labels, as: 'labels'
|
172
|
-
property :latest_operation, as: 'latestOperation'
|
173
|
-
property :max_instances, as: 'maxInstances'
|
174
|
-
property :name, as: 'name'
|
175
|
-
property :network, as: 'network'
|
176
|
-
property :runtime, as: 'runtime'
|
177
|
-
property :service_account, as: 'serviceAccount'
|
178
|
-
property :source_archive_url, as: 'sourceArchiveUrl'
|
179
|
-
property :source_repository, as: 'sourceRepository', class: Google::Apis::CloudfunctionsV1beta2::SourceRepository, decorator: Google::Apis::CloudfunctionsV1beta2::SourceRepository::Representation
|
180
|
-
|
181
|
-
property :source_repository_url, as: 'sourceRepositoryUrl'
|
182
|
-
property :source_upload_url, as: 'sourceUploadUrl'
|
183
|
-
property :status, as: 'status'
|
184
|
-
property :timeout, as: 'timeout'
|
185
|
-
property :update_time, as: 'updateTime'
|
186
|
-
property :version_id, :numeric_string => true, as: 'versionId'
|
187
|
-
property :vpc_connector, as: 'vpcConnector'
|
188
|
-
end
|
189
|
-
end
|
190
|
-
|
191
|
-
class EventTrigger
|
192
|
-
# @private
|
193
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
194
|
-
property :event_type, as: 'eventType'
|
195
|
-
property :failure_policy, as: 'failurePolicy', class: Google::Apis::CloudfunctionsV1beta2::FailurePolicy, decorator: Google::Apis::CloudfunctionsV1beta2::FailurePolicy::Representation
|
196
|
-
|
197
|
-
property :resource, as: 'resource'
|
198
|
-
property :service, as: 'service'
|
199
|
-
end
|
200
|
-
end
|
201
|
-
|
202
|
-
class FailurePolicy
|
203
|
-
# @private
|
204
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
205
|
-
property :retry, as: 'retry', class: Google::Apis::CloudfunctionsV1beta2::Retry, decorator: Google::Apis::CloudfunctionsV1beta2::Retry::Representation
|
206
|
-
|
207
|
-
end
|
208
|
-
end
|
209
|
-
|
210
|
-
class GenerateDownloadUrlRequest
|
211
|
-
# @private
|
212
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
213
|
-
property :version_id, :numeric_string => true, as: 'versionId'
|
214
|
-
end
|
215
|
-
end
|
216
|
-
|
217
|
-
class GenerateDownloadUrlResponse
|
218
|
-
# @private
|
219
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
220
|
-
property :download_url, as: 'downloadUrl'
|
221
|
-
end
|
222
|
-
end
|
223
|
-
|
224
|
-
class GenerateUploadUrlRequest
|
225
|
-
# @private
|
226
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
227
|
-
end
|
228
|
-
end
|
229
|
-
|
230
|
-
class GenerateUploadUrlResponse
|
231
|
-
# @private
|
232
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
233
|
-
property :upload_url, as: 'uploadUrl'
|
234
|
-
end
|
235
|
-
end
|
236
|
-
|
237
|
-
class HttpsTrigger
|
238
|
-
# @private
|
239
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
240
|
-
property :url, as: 'url'
|
241
|
-
end
|
242
|
-
end
|
243
|
-
|
244
|
-
class ListFunctionsResponse
|
245
|
-
# @private
|
246
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
247
|
-
collection :functions, as: 'functions', class: Google::Apis::CloudfunctionsV1beta2::CloudFunction, decorator: Google::Apis::CloudfunctionsV1beta2::CloudFunction::Representation
|
248
|
-
|
249
|
-
property :next_page_token, as: 'nextPageToken'
|
250
|
-
collection :unreachable, as: 'unreachable'
|
251
|
-
end
|
252
|
-
end
|
253
|
-
|
254
|
-
class ListLocationsResponse
|
255
|
-
# @private
|
256
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
257
|
-
collection :locations, as: 'locations', class: Google::Apis::CloudfunctionsV1beta2::Location, decorator: Google::Apis::CloudfunctionsV1beta2::Location::Representation
|
258
|
-
|
259
|
-
property :next_page_token, as: 'nextPageToken'
|
260
|
-
end
|
261
|
-
end
|
262
|
-
|
263
|
-
class ListOperationsResponse
|
264
|
-
# @private
|
265
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
266
|
-
property :next_page_token, as: 'nextPageToken'
|
267
|
-
collection :operations, as: 'operations', class: Google::Apis::CloudfunctionsV1beta2::Operation, decorator: Google::Apis::CloudfunctionsV1beta2::Operation::Representation
|
268
|
-
|
269
|
-
end
|
270
|
-
end
|
271
|
-
|
272
|
-
class Location
|
273
|
-
# @private
|
274
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
275
|
-
property :display_name, as: 'displayName'
|
276
|
-
hash :labels, as: 'labels'
|
277
|
-
property :location_id, as: 'locationId'
|
278
|
-
hash :metadata, as: 'metadata'
|
279
|
-
property :name, as: 'name'
|
280
|
-
end
|
281
|
-
end
|
282
|
-
|
283
|
-
class Operation
|
284
|
-
# @private
|
285
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
286
|
-
property :done, as: 'done'
|
287
|
-
property :error, as: 'error', class: Google::Apis::CloudfunctionsV1beta2::Status, decorator: Google::Apis::CloudfunctionsV1beta2::Status::Representation
|
288
|
-
|
289
|
-
hash :metadata, as: 'metadata'
|
290
|
-
property :name, as: 'name'
|
291
|
-
hash :response, as: 'response'
|
292
|
-
end
|
293
|
-
end
|
294
|
-
|
295
|
-
class OperationMetadataV1
|
296
|
-
# @private
|
297
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
298
|
-
property :build_id, as: 'buildId'
|
299
|
-
hash :request, as: 'request'
|
300
|
-
property :target, as: 'target'
|
301
|
-
property :type, as: 'type'
|
302
|
-
property :update_time, as: 'updateTime'
|
303
|
-
property :version_id, :numeric_string => true, as: 'versionId'
|
304
|
-
end
|
305
|
-
end
|
306
|
-
|
307
|
-
class OperationMetadataV1Beta2
|
308
|
-
# @private
|
309
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
310
|
-
hash :request, as: 'request'
|
311
|
-
property :target, as: 'target'
|
312
|
-
property :type, as: 'type'
|
313
|
-
property :update_time, as: 'updateTime'
|
314
|
-
property :version_id, :numeric_string => true, as: 'versionId'
|
315
|
-
end
|
316
|
-
end
|
317
|
-
|
318
|
-
class Retry
|
319
|
-
# @private
|
320
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
321
|
-
end
|
322
|
-
end
|
323
|
-
|
324
|
-
class SourceRepository
|
325
|
-
# @private
|
326
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
327
|
-
property :branch, as: 'branch'
|
328
|
-
property :deployed_revision, as: 'deployedRevision'
|
329
|
-
property :repository_url, as: 'repositoryUrl'
|
330
|
-
property :revision, as: 'revision'
|
331
|
-
property :source_path, as: 'sourcePath'
|
332
|
-
property :tag, as: 'tag'
|
333
|
-
end
|
334
|
-
end
|
335
|
-
|
336
|
-
class Status
|
337
|
-
# @private
|
338
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
339
|
-
property :code, as: 'code'
|
340
|
-
collection :details, as: 'details'
|
341
|
-
property :message, as: 'message'
|
342
|
-
end
|
343
|
-
end
|
344
|
-
end
|
345
|
-
end
|
346
|
-
end
|
@@ -1,486 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'google/apis/core/base_service'
|
16
|
-
require 'google/apis/core/json_representation'
|
17
|
-
require 'google/apis/core/hashable'
|
18
|
-
require 'google/apis/errors'
|
19
|
-
|
20
|
-
module Google
|
21
|
-
module Apis
|
22
|
-
module CloudfunctionsV1beta2
|
23
|
-
# Cloud Functions API
|
24
|
-
#
|
25
|
-
# Manages lightweight user-provided functions executed in response to events.
|
26
|
-
#
|
27
|
-
# @example
|
28
|
-
# require 'google/apis/cloudfunctions_v1beta2'
|
29
|
-
#
|
30
|
-
# Cloudfunctions = Google::Apis::CloudfunctionsV1beta2 # Alias the module
|
31
|
-
# service = Cloudfunctions::CloudFunctionsService.new
|
32
|
-
#
|
33
|
-
# @see https://cloud.google.com/functions
|
34
|
-
class CloudFunctionsService < Google::Apis::Core::BaseService
|
35
|
-
# @return [String]
|
36
|
-
# API key. Your API key identifies your project and provides you with API access,
|
37
|
-
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
-
attr_accessor :key
|
39
|
-
|
40
|
-
# @return [String]
|
41
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
-
attr_accessor :quota_user
|
44
|
-
|
45
|
-
def initialize
|
46
|
-
super('https://cloudfunctions.googleapis.com/', '')
|
47
|
-
@batch_path = 'batch'
|
48
|
-
end
|
49
|
-
|
50
|
-
# Gets the latest state of a long-running operation. Clients can use this
|
51
|
-
# method to poll the operation result at intervals as recommended by the API
|
52
|
-
# service.
|
53
|
-
# @param [String] name
|
54
|
-
# The name of the operation resource.
|
55
|
-
# @param [String] fields
|
56
|
-
# Selector specifying which fields to include in a partial response.
|
57
|
-
# @param [String] quota_user
|
58
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
59
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60
|
-
# @param [Google::Apis::RequestOptions] options
|
61
|
-
# Request-specific options
|
62
|
-
#
|
63
|
-
# @yield [result, err] Result & error if block supplied
|
64
|
-
# @yieldparam result [Google::Apis::CloudfunctionsV1beta2::Operation] parsed result object
|
65
|
-
# @yieldparam err [StandardError] error object if request failed
|
66
|
-
#
|
67
|
-
# @return [Google::Apis::CloudfunctionsV1beta2::Operation]
|
68
|
-
#
|
69
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
70
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
71
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
72
|
-
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
73
|
-
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
74
|
-
command.response_representation = Google::Apis::CloudfunctionsV1beta2::Operation::Representation
|
75
|
-
command.response_class = Google::Apis::CloudfunctionsV1beta2::Operation
|
76
|
-
command.params['name'] = name unless name.nil?
|
77
|
-
command.query['fields'] = fields unless fields.nil?
|
78
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
79
|
-
execute_or_queue_command(command, &block)
|
80
|
-
end
|
81
|
-
|
82
|
-
# Lists operations that match the specified filter in the request. If the
|
83
|
-
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
84
|
-
# NOTE: the `name` binding allows API services to override the binding
|
85
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
86
|
-
# override the binding, API services can add a binding such as
|
87
|
-
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
88
|
-
# For backwards compatibility, the default name includes the operations
|
89
|
-
# collection id, however overriding users must ensure the name binding
|
90
|
-
# is the parent resource, without the operations collection id.
|
91
|
-
# @param [String] filter
|
92
|
-
# Required. A filter for matching the requested operations.<br><br> The
|
93
|
-
# supported formats of <b>filter</b> are:<br> To query for a specific function: <
|
94
|
-
# code>project:*,location:*,function:*</code><br> To query for all of the latest
|
95
|
-
# operations for a project: <code>project:*,latest:true</code>
|
96
|
-
# @param [String] name
|
97
|
-
# Must not be set.
|
98
|
-
# @param [Fixnum] page_size
|
99
|
-
# The maximum number of records that should be returned.<br> Requested page size
|
100
|
-
# cannot exceed 100. If not set, the default page size is 100.<br><br>
|
101
|
-
# Pagination is only supported when querying for a specific function.
|
102
|
-
# @param [String] page_token
|
103
|
-
# Token identifying which result to start with, which is returned by a previous
|
104
|
-
# list call.<br><br> Pagination is only supported when querying for a specific
|
105
|
-
# function.
|
106
|
-
# @param [String] fields
|
107
|
-
# Selector specifying which fields to include in a partial response.
|
108
|
-
# @param [String] quota_user
|
109
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
110
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
111
|
-
# @param [Google::Apis::RequestOptions] options
|
112
|
-
# Request-specific options
|
113
|
-
#
|
114
|
-
# @yield [result, err] Result & error if block supplied
|
115
|
-
# @yieldparam result [Google::Apis::CloudfunctionsV1beta2::ListOperationsResponse] parsed result object
|
116
|
-
# @yieldparam err [StandardError] error object if request failed
|
117
|
-
#
|
118
|
-
# @return [Google::Apis::CloudfunctionsV1beta2::ListOperationsResponse]
|
119
|
-
#
|
120
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
121
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
122
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
123
|
-
def list_operations(filter: nil, name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
124
|
-
command = make_simple_command(:get, 'v1beta2/operations', options)
|
125
|
-
command.response_representation = Google::Apis::CloudfunctionsV1beta2::ListOperationsResponse::Representation
|
126
|
-
command.response_class = Google::Apis::CloudfunctionsV1beta2::ListOperationsResponse
|
127
|
-
command.query['filter'] = filter unless filter.nil?
|
128
|
-
command.query['name'] = name unless name.nil?
|
129
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
130
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
131
|
-
command.query['fields'] = fields unless fields.nil?
|
132
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
133
|
-
execute_or_queue_command(command, &block)
|
134
|
-
end
|
135
|
-
|
136
|
-
# Lists information about the supported locations for this service.
|
137
|
-
# @param [String] name
|
138
|
-
# The resource that owns the locations collection, if applicable.
|
139
|
-
# @param [String] filter
|
140
|
-
# The standard list filter.
|
141
|
-
# @param [Fixnum] page_size
|
142
|
-
# The standard list page size.
|
143
|
-
# @param [String] page_token
|
144
|
-
# The standard list page token.
|
145
|
-
# @param [String] fields
|
146
|
-
# Selector specifying which fields to include in a partial response.
|
147
|
-
# @param [String] quota_user
|
148
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
149
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
150
|
-
# @param [Google::Apis::RequestOptions] options
|
151
|
-
# Request-specific options
|
152
|
-
#
|
153
|
-
# @yield [result, err] Result & error if block supplied
|
154
|
-
# @yieldparam result [Google::Apis::CloudfunctionsV1beta2::ListLocationsResponse] parsed result object
|
155
|
-
# @yieldparam err [StandardError] error object if request failed
|
156
|
-
#
|
157
|
-
# @return [Google::Apis::CloudfunctionsV1beta2::ListLocationsResponse]
|
158
|
-
#
|
159
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
160
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
161
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
162
|
-
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
163
|
-
command = make_simple_command(:get, 'v1beta2/{+name}/locations', options)
|
164
|
-
command.response_representation = Google::Apis::CloudfunctionsV1beta2::ListLocationsResponse::Representation
|
165
|
-
command.response_class = Google::Apis::CloudfunctionsV1beta2::ListLocationsResponse
|
166
|
-
command.params['name'] = name unless name.nil?
|
167
|
-
command.query['filter'] = filter unless filter.nil?
|
168
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
169
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
170
|
-
command.query['fields'] = fields unless fields.nil?
|
171
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
172
|
-
execute_or_queue_command(command, &block)
|
173
|
-
end
|
174
|
-
|
175
|
-
# Synchronously invokes a deployed Cloud Function. To be used for testing
|
176
|
-
# purposes as very limited traffic is allowed. For more information on
|
177
|
-
# the actual limits refer to [API Calls](
|
178
|
-
# https://cloud.google.com/functions/quotas#rate_limits).
|
179
|
-
# @param [String] name
|
180
|
-
# Required. The name of the function to be called.
|
181
|
-
# @param [Google::Apis::CloudfunctionsV1beta2::CallFunctionRequest] call_function_request_object
|
182
|
-
# @param [String] fields
|
183
|
-
# Selector specifying which fields to include in a partial response.
|
184
|
-
# @param [String] quota_user
|
185
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
186
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
187
|
-
# @param [Google::Apis::RequestOptions] options
|
188
|
-
# Request-specific options
|
189
|
-
#
|
190
|
-
# @yield [result, err] Result & error if block supplied
|
191
|
-
# @yieldparam result [Google::Apis::CloudfunctionsV1beta2::CallFunctionResponse] parsed result object
|
192
|
-
# @yieldparam err [StandardError] error object if request failed
|
193
|
-
#
|
194
|
-
# @return [Google::Apis::CloudfunctionsV1beta2::CallFunctionResponse]
|
195
|
-
#
|
196
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
197
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
198
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
199
|
-
def call_function(name, call_function_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
200
|
-
command = make_simple_command(:post, 'v1beta2/{+name}:call', options)
|
201
|
-
command.request_representation = Google::Apis::CloudfunctionsV1beta2::CallFunctionRequest::Representation
|
202
|
-
command.request_object = call_function_request_object
|
203
|
-
command.response_representation = Google::Apis::CloudfunctionsV1beta2::CallFunctionResponse::Representation
|
204
|
-
command.response_class = Google::Apis::CloudfunctionsV1beta2::CallFunctionResponse
|
205
|
-
command.params['name'] = name unless name.nil?
|
206
|
-
command.query['fields'] = fields unless fields.nil?
|
207
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
208
|
-
execute_or_queue_command(command, &block)
|
209
|
-
end
|
210
|
-
|
211
|
-
# Creates a new function. If a function with the given name already exists in
|
212
|
-
# the specified project, the long running operation will return
|
213
|
-
# `ALREADY_EXISTS` error.
|
214
|
-
# @param [String] location
|
215
|
-
# Required. The project and location in which the function should be created,
|
216
|
-
# specified
|
217
|
-
# in the format `projects/*/locations/*`
|
218
|
-
# @param [Google::Apis::CloudfunctionsV1beta2::CloudFunction] cloud_function_object
|
219
|
-
# @param [String] fields
|
220
|
-
# Selector specifying which fields to include in a partial response.
|
221
|
-
# @param [String] quota_user
|
222
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
223
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
224
|
-
# @param [Google::Apis::RequestOptions] options
|
225
|
-
# Request-specific options
|
226
|
-
#
|
227
|
-
# @yield [result, err] Result & error if block supplied
|
228
|
-
# @yieldparam result [Google::Apis::CloudfunctionsV1beta2::Operation] parsed result object
|
229
|
-
# @yieldparam err [StandardError] error object if request failed
|
230
|
-
#
|
231
|
-
# @return [Google::Apis::CloudfunctionsV1beta2::Operation]
|
232
|
-
#
|
233
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
234
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
235
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
236
|
-
def create_project_location_function(location, cloud_function_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
237
|
-
command = make_simple_command(:post, 'v1beta2/{+location}/functions', options)
|
238
|
-
command.request_representation = Google::Apis::CloudfunctionsV1beta2::CloudFunction::Representation
|
239
|
-
command.request_object = cloud_function_object
|
240
|
-
command.response_representation = Google::Apis::CloudfunctionsV1beta2::Operation::Representation
|
241
|
-
command.response_class = Google::Apis::CloudfunctionsV1beta2::Operation
|
242
|
-
command.params['location'] = location unless location.nil?
|
243
|
-
command.query['fields'] = fields unless fields.nil?
|
244
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
245
|
-
execute_or_queue_command(command, &block)
|
246
|
-
end
|
247
|
-
|
248
|
-
# Deletes a function with the given name from the specified project. If the
|
249
|
-
# given function is used by some trigger, the trigger will be updated to
|
250
|
-
# remove this function.
|
251
|
-
# @param [String] name
|
252
|
-
# Required. The name of the function which should be deleted.
|
253
|
-
# @param [String] fields
|
254
|
-
# Selector specifying which fields to include in a partial response.
|
255
|
-
# @param [String] quota_user
|
256
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
257
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
258
|
-
# @param [Google::Apis::RequestOptions] options
|
259
|
-
# Request-specific options
|
260
|
-
#
|
261
|
-
# @yield [result, err] Result & error if block supplied
|
262
|
-
# @yieldparam result [Google::Apis::CloudfunctionsV1beta2::Operation] parsed result object
|
263
|
-
# @yieldparam err [StandardError] error object if request failed
|
264
|
-
#
|
265
|
-
# @return [Google::Apis::CloudfunctionsV1beta2::Operation]
|
266
|
-
#
|
267
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
268
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
269
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
270
|
-
def delete_project_location_function(name, fields: nil, quota_user: nil, options: nil, &block)
|
271
|
-
command = make_simple_command(:delete, 'v1beta2/{+name}', options)
|
272
|
-
command.response_representation = Google::Apis::CloudfunctionsV1beta2::Operation::Representation
|
273
|
-
command.response_class = Google::Apis::CloudfunctionsV1beta2::Operation
|
274
|
-
command.params['name'] = name unless name.nil?
|
275
|
-
command.query['fields'] = fields unless fields.nil?
|
276
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
277
|
-
execute_or_queue_command(command, &block)
|
278
|
-
end
|
279
|
-
|
280
|
-
# Returns a signed URL for downloading deployed function source code.
|
281
|
-
# The URL is only valid for a limited period and should be used within
|
282
|
-
# minutes after generation.
|
283
|
-
# For more information about the signed URL usage see:
|
284
|
-
# https://cloud.google.com/storage/docs/access-control/signed-urls
|
285
|
-
# @param [String] name
|
286
|
-
# The name of function for which source code Google Cloud Storage signed
|
287
|
-
# URL should be generated.
|
288
|
-
# @param [Google::Apis::CloudfunctionsV1beta2::GenerateDownloadUrlRequest] generate_download_url_request_object
|
289
|
-
# @param [String] fields
|
290
|
-
# Selector specifying which fields to include in a partial response.
|
291
|
-
# @param [String] quota_user
|
292
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
293
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
294
|
-
# @param [Google::Apis::RequestOptions] options
|
295
|
-
# Request-specific options
|
296
|
-
#
|
297
|
-
# @yield [result, err] Result & error if block supplied
|
298
|
-
# @yieldparam result [Google::Apis::CloudfunctionsV1beta2::GenerateDownloadUrlResponse] parsed result object
|
299
|
-
# @yieldparam err [StandardError] error object if request failed
|
300
|
-
#
|
301
|
-
# @return [Google::Apis::CloudfunctionsV1beta2::GenerateDownloadUrlResponse]
|
302
|
-
#
|
303
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
304
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
305
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
306
|
-
def generate_function_download_url(name, generate_download_url_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
307
|
-
command = make_simple_command(:post, 'v1beta2/{+name}:generateDownloadUrl', options)
|
308
|
-
command.request_representation = Google::Apis::CloudfunctionsV1beta2::GenerateDownloadUrlRequest::Representation
|
309
|
-
command.request_object = generate_download_url_request_object
|
310
|
-
command.response_representation = Google::Apis::CloudfunctionsV1beta2::GenerateDownloadUrlResponse::Representation
|
311
|
-
command.response_class = Google::Apis::CloudfunctionsV1beta2::GenerateDownloadUrlResponse
|
312
|
-
command.params['name'] = name unless name.nil?
|
313
|
-
command.query['fields'] = fields unless fields.nil?
|
314
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
315
|
-
execute_or_queue_command(command, &block)
|
316
|
-
end
|
317
|
-
|
318
|
-
# Returns a signed URL for uploading a function source code.
|
319
|
-
# For more information about the signed URL usage see:
|
320
|
-
# https://cloud.google.com/storage/docs/access-control/signed-urls
|
321
|
-
# Once the function source code upload is complete, the used signed
|
322
|
-
# URL should be provided in CreateFunction or UpdateFunction request
|
323
|
-
# as a reference to the function source code.
|
324
|
-
# When uploading source code to the generated signed URL, please follow
|
325
|
-
# these restrictions:
|
326
|
-
# * Source file type should be a zip file.
|
327
|
-
# * Source file size should not exceed 100MB limit.
|
328
|
-
# * No credentials should be attached - the signed URLs provide access to the
|
329
|
-
# target bucket using internal service identity; if credentials were
|
330
|
-
# attached, the identity from the credentials would be used, but that
|
331
|
-
# identity does not have permissions to upload files to the URL.
|
332
|
-
# When making a HTTP PUT request, these two headers need to be specified:
|
333
|
-
# * `content-type: application/zip`
|
334
|
-
# * `x-goog-content-length-range: 0,104857600`
|
335
|
-
# And this header SHOULD NOT be specified:
|
336
|
-
# * `Authorization: Bearer YOUR_TOKEN`
|
337
|
-
# @param [String] parent
|
338
|
-
# The project and location in which the Google Cloud Storage signed URL
|
339
|
-
# should be generated, specified in the format `projects/*/locations/*`.
|
340
|
-
# @param [Google::Apis::CloudfunctionsV1beta2::GenerateUploadUrlRequest] generate_upload_url_request_object
|
341
|
-
# @param [String] fields
|
342
|
-
# Selector specifying which fields to include in a partial response.
|
343
|
-
# @param [String] quota_user
|
344
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
345
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
346
|
-
# @param [Google::Apis::RequestOptions] options
|
347
|
-
# Request-specific options
|
348
|
-
#
|
349
|
-
# @yield [result, err] Result & error if block supplied
|
350
|
-
# @yieldparam result [Google::Apis::CloudfunctionsV1beta2::GenerateUploadUrlResponse] parsed result object
|
351
|
-
# @yieldparam err [StandardError] error object if request failed
|
352
|
-
#
|
353
|
-
# @return [Google::Apis::CloudfunctionsV1beta2::GenerateUploadUrlResponse]
|
354
|
-
#
|
355
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
356
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
357
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
358
|
-
def generate_function_upload_url(parent, generate_upload_url_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
359
|
-
command = make_simple_command(:post, 'v1beta2/{+parent}/functions:generateUploadUrl', options)
|
360
|
-
command.request_representation = Google::Apis::CloudfunctionsV1beta2::GenerateUploadUrlRequest::Representation
|
361
|
-
command.request_object = generate_upload_url_request_object
|
362
|
-
command.response_representation = Google::Apis::CloudfunctionsV1beta2::GenerateUploadUrlResponse::Representation
|
363
|
-
command.response_class = Google::Apis::CloudfunctionsV1beta2::GenerateUploadUrlResponse
|
364
|
-
command.params['parent'] = parent unless parent.nil?
|
365
|
-
command.query['fields'] = fields unless fields.nil?
|
366
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
367
|
-
execute_or_queue_command(command, &block)
|
368
|
-
end
|
369
|
-
|
370
|
-
# Returns a function with the given name from the requested project.
|
371
|
-
# @param [String] name
|
372
|
-
# Required. The name of the function which details should be obtained.
|
373
|
-
# @param [String] fields
|
374
|
-
# Selector specifying which fields to include in a partial response.
|
375
|
-
# @param [String] quota_user
|
376
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
377
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
378
|
-
# @param [Google::Apis::RequestOptions] options
|
379
|
-
# Request-specific options
|
380
|
-
#
|
381
|
-
# @yield [result, err] Result & error if block supplied
|
382
|
-
# @yieldparam result [Google::Apis::CloudfunctionsV1beta2::CloudFunction] parsed result object
|
383
|
-
# @yieldparam err [StandardError] error object if request failed
|
384
|
-
#
|
385
|
-
# @return [Google::Apis::CloudfunctionsV1beta2::CloudFunction]
|
386
|
-
#
|
387
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
388
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
389
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
390
|
-
def get_project_location_function(name, fields: nil, quota_user: nil, options: nil, &block)
|
391
|
-
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
392
|
-
command.response_representation = Google::Apis::CloudfunctionsV1beta2::CloudFunction::Representation
|
393
|
-
command.response_class = Google::Apis::CloudfunctionsV1beta2::CloudFunction
|
394
|
-
command.params['name'] = name unless name.nil?
|
395
|
-
command.query['fields'] = fields unless fields.nil?
|
396
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
397
|
-
execute_or_queue_command(command, &block)
|
398
|
-
end
|
399
|
-
|
400
|
-
# Returns a list of functions that belong to the requested project.
|
401
|
-
# @param [String] location
|
402
|
-
# Required. The project and location from which the function should be listed,
|
403
|
-
# specified in the format `projects/*/locations/*`
|
404
|
-
# If you want to list functions in all locations, use "-" in place of a
|
405
|
-
# location. When listing functions in all locations, if one or more
|
406
|
-
# location(s) are unreachable, the response will contain functions from all
|
407
|
-
# reachable locations along with the names of any unreachable locations.
|
408
|
-
# @param [Fixnum] page_size
|
409
|
-
# Maximum number of functions to return per call.
|
410
|
-
# @param [String] page_token
|
411
|
-
# The value returned by the last
|
412
|
-
# `ListFunctionsResponse`; indicates that
|
413
|
-
# this is a continuation of a prior `ListFunctions` call, and that the
|
414
|
-
# system should return the next page of data.
|
415
|
-
# @param [String] fields
|
416
|
-
# Selector specifying which fields to include in a partial response.
|
417
|
-
# @param [String] quota_user
|
418
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
419
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
420
|
-
# @param [Google::Apis::RequestOptions] options
|
421
|
-
# Request-specific options
|
422
|
-
#
|
423
|
-
# @yield [result, err] Result & error if block supplied
|
424
|
-
# @yieldparam result [Google::Apis::CloudfunctionsV1beta2::ListFunctionsResponse] parsed result object
|
425
|
-
# @yieldparam err [StandardError] error object if request failed
|
426
|
-
#
|
427
|
-
# @return [Google::Apis::CloudfunctionsV1beta2::ListFunctionsResponse]
|
428
|
-
#
|
429
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
430
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
431
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
432
|
-
def list_project_location_functions(location, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
433
|
-
command = make_simple_command(:get, 'v1beta2/{+location}/functions', options)
|
434
|
-
command.response_representation = Google::Apis::CloudfunctionsV1beta2::ListFunctionsResponse::Representation
|
435
|
-
command.response_class = Google::Apis::CloudfunctionsV1beta2::ListFunctionsResponse
|
436
|
-
command.params['location'] = location unless location.nil?
|
437
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
438
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
439
|
-
command.query['fields'] = fields unless fields.nil?
|
440
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
441
|
-
execute_or_queue_command(command, &block)
|
442
|
-
end
|
443
|
-
|
444
|
-
# Updates existing function.
|
445
|
-
# @param [String] name
|
446
|
-
# Required. The name of the function to be updated.
|
447
|
-
# @param [Google::Apis::CloudfunctionsV1beta2::CloudFunction] cloud_function_object
|
448
|
-
# @param [String] fields
|
449
|
-
# Selector specifying which fields to include in a partial response.
|
450
|
-
# @param [String] quota_user
|
451
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
452
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
453
|
-
# @param [Google::Apis::RequestOptions] options
|
454
|
-
# Request-specific options
|
455
|
-
#
|
456
|
-
# @yield [result, err] Result & error if block supplied
|
457
|
-
# @yieldparam result [Google::Apis::CloudfunctionsV1beta2::Operation] parsed result object
|
458
|
-
# @yieldparam err [StandardError] error object if request failed
|
459
|
-
#
|
460
|
-
# @return [Google::Apis::CloudfunctionsV1beta2::Operation]
|
461
|
-
#
|
462
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
463
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
464
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
465
|
-
def update_project_location_function(name, cloud_function_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
466
|
-
command = make_simple_command(:put, 'v1beta2/{+name}', options)
|
467
|
-
command.request_representation = Google::Apis::CloudfunctionsV1beta2::CloudFunction::Representation
|
468
|
-
command.request_object = cloud_function_object
|
469
|
-
command.response_representation = Google::Apis::CloudfunctionsV1beta2::Operation::Representation
|
470
|
-
command.response_class = Google::Apis::CloudfunctionsV1beta2::Operation
|
471
|
-
command.params['name'] = name unless name.nil?
|
472
|
-
command.query['fields'] = fields unless fields.nil?
|
473
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
474
|
-
execute_or_queue_command(command, &block)
|
475
|
-
end
|
476
|
-
|
477
|
-
protected
|
478
|
-
|
479
|
-
def apply_command_defaults(command)
|
480
|
-
command.query['key'] = key unless key.nil?
|
481
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
482
|
-
end
|
483
|
-
end
|
484
|
-
end
|
485
|
-
end
|
486
|
-
end
|