google-api-client 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +75 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +17 -35
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +958 -82
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +147 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +54 -0
- data/generated/google/apis/admin_directory_v1/service.rb +71 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -19
- data/generated/google/apis/androidenterprise_v1/service.rb +39 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +12 -11
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +0 -189
- data/generated/google/apis/androidpublisher_v2/representations.rb +0 -120
- data/generated/google/apis/androidpublisher_v2/service.rb +0 -35
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1 -46
- data/generated/google/apis/appengine_v1/representations.rb +0 -17
- data/generated/google/apis/appengine_v1/service.rb +5 -1
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1alpha/classes.rb +0 -45
- data/generated/google/apis/appengine_v1alpha/representations.rb +0 -17
- data/generated/google/apis/appengine_v1alpha/service.rb +5 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +5 -47
- data/generated/google/apis/appengine_v1beta/representations.rb +0 -17
- data/generated/google/apis/appengine_v1beta/service.rb +5 -1
- data/generated/google/apis/appengine_v1beta4.rb +1 -1
- data/generated/google/apis/appengine_v1beta4/classes.rb +44 -45
- data/generated/google/apis/appengine_v1beta4/representations.rb +16 -17
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +4 -46
- data/generated/google/apis/appengine_v1beta5/representations.rb +0 -17
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +41 -24
- data/generated/google/apis/bigquery_v2/representations.rb +3 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +3 -7
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +0 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +15 -3
- data/generated/google/apis/classroom_v1.rb +4 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +26 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +14 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +91 -0
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +482 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +210 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +288 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +119 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +68 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +77 -0
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/service.rb +7 -3
- data/generated/google/apis/cloudiot_v1beta1.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +2 -4
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +2 -2
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +4 -14
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +10 -7
- data/generated/google/apis/cloudtrace_v2/representations.rb +2 -2
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +143 -83
- data/generated/google/apis/compute_alpha/representations.rb +50 -30
- data/generated/google/apis/compute_alpha/service.rb +171 -5
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +47 -43
- data/generated/google/apis/compute_beta/representations.rb +1 -2
- data/generated/google/apis/compute_beta/service.rb +60 -5
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1326 -168
- data/generated/google/apis/compute_v1/representations.rb +402 -0
- data/generated/google/apis/compute_v1/service.rb +751 -5
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +23 -16
- data/generated/google/apis/content_v2/service.rb +142 -162
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/service.rb +43 -43
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +44 -35
- data/generated/google/apis/dataflow_v1b3/representations.rb +6 -17
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +39 -37
- data/generated/google/apis/dataproc_v1beta2/service.rb +30 -30
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +39 -60
- data/generated/google/apis/datastore_v1/representations.rb +27 -0
- data/generated/google/apis/datastore_v1/service.rb +34 -0
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +39 -60
- data/generated/google/apis/datastore_v1beta3/representations.rb +27 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +34 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +108 -0
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +50 -0
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +6 -0
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1 -0
- data/generated/google/apis/dlp_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/classes.rb +116 -10
- data/generated/google/apis/dlp_v2beta1/representations.rb +45 -0
- data/generated/google/apis/dns_v1beta2.rb +43 -0
- data/generated/google/apis/dns_v1beta2/classes.rb +915 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +368 -0
- data/generated/google/apis/dns_v1beta2/service.rb +769 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +6 -0
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +51 -8
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +6 -0
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +45 -7
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +25 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +15 -0
- data/generated/google/apis/firebaseremoteconfig_v1.rb +1 -1
- data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +21 -1
- data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +2 -0
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +26 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +15 -0
- data/generated/google/apis/firebaserules_v1/service.rb +37 -0
- data/generated/google/apis/firestore_v1beta1/classes.rb +29 -146
- data/generated/google/apis/firestore_v1beta1/representations.rb +8 -27
- data/generated/google/apis/firestore_v1beta1/service.rb +4 -8
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +18 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +5 -7
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +78 -0
- data/generated/google/apis/language_v1/representations.rb +45 -0
- data/generated/google/apis/language_v1/service.rb +30 -0
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/language_v1beta2/classes.rb +3 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +9 -0
- data/generated/google/apis/logging_v2/representations.rb +1 -0
- data/generated/google/apis/logging_v2/service.rb +517 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +9 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +6 -6
- data/generated/google/apis/manufacturers_v1/representations.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +22 -6
- data/generated/google/apis/ml_v1/service.rb +8 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +358 -0
- data/generated/google/apis/monitoring_v3/representations.rb +145 -0
- data/generated/google/apis/monitoring_v3/service.rb +229 -0
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +13 -8
- data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +36 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +9 -4
- data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1beta/service.rb +36 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +7 -60
- data/generated/google/apis/partners_v2/representations.rb +1 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -4
- data/generated/google/apis/script_v1.rb +2 -2
- data/generated/google/apis/script_v1/classes.rb +57 -51
- data/generated/google/apis/script_v1/representations.rb +0 -1
- data/generated/google/apis/script_v1/service.rb +2 -2
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +5 -2
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +13 -31
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +13 -31
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +1 -2
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +505 -11
- data/generated/google/apis/slides_v1/representations.rb +220 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +1 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +10 -1
- data/generated/google/apis/speech_v1/representations.rb +1 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +127 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +63 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/service.rb +51 -72
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -61
- data/generated/google/apis/streetviewpublish_v1/service.rb +2 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +8 -3
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +17 -16
- data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +108 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +49 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +42 -0
- data/google-api-client.gemspec +1 -1
- data/lib/google/apis/generator/model.rb +9 -3
- data/lib/google/apis/generator/templates/_class.tmpl +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +14 -12
- data/generated/google/apis/playmoviespartner_v1.rb +0 -34
- data/generated/google/apis/playmoviespartner_v1/classes.rb +0 -782
- data/generated/google/apis/playmoviespartner_v1/representations.rb +0 -191
- data/generated/google/apis/playmoviespartner_v1/service.rb +0 -354
- data/generated/google/apis/qpx_express_v1.rb +0 -31
- data/generated/google/apis/qpx_express_v1/classes.rb +0 -1274
- data/generated/google/apis/qpx_express_v1/representations.rb +0 -473
- data/generated/google/apis/qpx_express_v1/service.rb +0 -101
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/classroom/
|
|
26
26
|
module ClassroomV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20171028'
|
|
29
29
|
|
|
30
30
|
# View and manage announcements in Google Classroom
|
|
31
31
|
AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements'
|
|
@@ -66,6 +66,9 @@ module Google
|
|
|
66
66
|
# View the profile photos of people in your classes
|
|
67
67
|
AUTH_CLASSROOM_PROFILE_PHOTOS = 'https://www.googleapis.com/auth/classroom.profile.photos'
|
|
68
68
|
|
|
69
|
+
# Receive notifications about your Google Classroom data
|
|
70
|
+
AUTH_CLASSROOM_PUSH_NOTIFICATIONS = 'https://www.googleapis.com/auth/classroom.push-notifications'
|
|
71
|
+
|
|
69
72
|
# Manage your Google Classroom class rosters
|
|
70
73
|
AUTH_CLASSROOM_ROSTERS = 'https://www.googleapis.com/auth/classroom.rosters'
|
|
71
74
|
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/container-builder/docs/
|
|
26
26
|
module CloudbuildV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20171031'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -230,6 +230,12 @@ module Google
|
|
|
230
230
|
class BuildOptions
|
|
231
231
|
include Google::Apis::Core::Hashable
|
|
232
232
|
|
|
233
|
+
# LogStreamingOption to define build log streaming behavior to Google Cloud
|
|
234
|
+
# Storage.
|
|
235
|
+
# Corresponds to the JSON property `logStreamingOption`
|
|
236
|
+
# @return [String]
|
|
237
|
+
attr_accessor :log_streaming_option
|
|
238
|
+
|
|
233
239
|
# Requested verifiability options.
|
|
234
240
|
# Corresponds to the JSON property `requestedVerifyOption`
|
|
235
241
|
# @return [String]
|
|
@@ -251,6 +257,7 @@ module Google
|
|
|
251
257
|
|
|
252
258
|
# Update properties of this object
|
|
253
259
|
def update!(**args)
|
|
260
|
+
@log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option)
|
|
254
261
|
@requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
|
|
255
262
|
@source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
|
|
256
263
|
@substitution_option = args[:substitution_option] if args.key?(:substitution_option)
|
|
@@ -734,6 +741,11 @@ module Google
|
|
|
734
741
|
# @return [String]
|
|
735
742
|
attr_accessor :commit_sha
|
|
736
743
|
|
|
744
|
+
# Directory, relative to the source root, in which to run the build.
|
|
745
|
+
# Corresponds to the JSON property `dir`
|
|
746
|
+
# @return [String]
|
|
747
|
+
attr_accessor :dir
|
|
748
|
+
|
|
737
749
|
# ID of the project that owns the repo. If omitted, the project ID requesting
|
|
738
750
|
# the build is assumed.
|
|
739
751
|
# Corresponds to the JSON property `projectId`
|
|
@@ -758,6 +770,7 @@ module Google
|
|
|
758
770
|
def update!(**args)
|
|
759
771
|
@branch_name = args[:branch_name] if args.key?(:branch_name)
|
|
760
772
|
@commit_sha = args[:commit_sha] if args.key?(:commit_sha)
|
|
773
|
+
@dir = args[:dir] if args.key?(:dir)
|
|
761
774
|
@project_id = args[:project_id] if args.key?(:project_id)
|
|
762
775
|
@repo_name = args[:repo_name] if args.key?(:repo_name)
|
|
763
776
|
@tag_name = args[:tag_name] if args.key?(:tag_name)
|
|
@@ -789,6 +802,19 @@ module Google
|
|
|
789
802
|
end
|
|
790
803
|
end
|
|
791
804
|
|
|
805
|
+
# RetryBuildRequest specifies a build to retry.
|
|
806
|
+
class RetryBuildRequest
|
|
807
|
+
include Google::Apis::Core::Hashable
|
|
808
|
+
|
|
809
|
+
def initialize(**args)
|
|
810
|
+
update!(**args)
|
|
811
|
+
end
|
|
812
|
+
|
|
813
|
+
# Update properties of this object
|
|
814
|
+
def update!(**args)
|
|
815
|
+
end
|
|
816
|
+
end
|
|
817
|
+
|
|
792
818
|
# Secret pairs a set of secret environment variables containing encrypted
|
|
793
819
|
# values with the Cloud KMS key to use to decrypt the value.
|
|
794
820
|
class Secret
|
|
@@ -124,6 +124,12 @@ module Google
|
|
|
124
124
|
include Google::Apis::Core::JsonObjectSupport
|
|
125
125
|
end
|
|
126
126
|
|
|
127
|
+
class RetryBuildRequest
|
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
129
|
+
|
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
131
|
+
end
|
|
132
|
+
|
|
127
133
|
class Secret
|
|
128
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
129
135
|
|
|
@@ -203,6 +209,7 @@ module Google
|
|
|
203
209
|
class BuildOptions
|
|
204
210
|
# @private
|
|
205
211
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
212
|
+
property :log_streaming_option, as: 'logStreamingOption'
|
|
206
213
|
property :requested_verify_option, as: 'requestedVerifyOption'
|
|
207
214
|
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
|
208
215
|
property :substitution_option, as: 'substitutionOption'
|
|
@@ -326,6 +333,7 @@ module Google
|
|
|
326
333
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
327
334
|
property :branch_name, as: 'branchName'
|
|
328
335
|
property :commit_sha, as: 'commitSha'
|
|
336
|
+
property :dir, as: 'dir'
|
|
329
337
|
property :project_id, as: 'projectId'
|
|
330
338
|
property :repo_name, as: 'repoName'
|
|
331
339
|
property :tag_name, as: 'tagName'
|
|
@@ -341,6 +349,12 @@ module Google
|
|
|
341
349
|
end
|
|
342
350
|
end
|
|
343
351
|
|
|
352
|
+
class RetryBuildRequest
|
|
353
|
+
# @private
|
|
354
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
355
|
+
end
|
|
356
|
+
end
|
|
357
|
+
|
|
344
358
|
class Secret
|
|
345
359
|
# @private
|
|
346
360
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -316,6 +316,61 @@ module Google
|
|
|
316
316
|
execute_or_queue_command(command, &block)
|
|
317
317
|
end
|
|
318
318
|
|
|
319
|
+
# Creates a new build based on the given build.
|
|
320
|
+
# This API creates a new build using the original build request, which may
|
|
321
|
+
# or may not result in an identical build.
|
|
322
|
+
# For triggered builds:
|
|
323
|
+
# * Triggered builds resolve to a precise revision, so a retry of a triggered
|
|
324
|
+
# build will result in a build that uses the same revision.
|
|
325
|
+
# For non-triggered builds that specify RepoSource:
|
|
326
|
+
# * If the original build built from the tip of a branch, the retried build
|
|
327
|
+
# will build from the tip of that branch, which may not be the same revision
|
|
328
|
+
# as the original build.
|
|
329
|
+
# * If the original build specified a commit sha or revision ID, the retried
|
|
330
|
+
# build will use the identical source.
|
|
331
|
+
# For builds that specify StorageSource:
|
|
332
|
+
# * If the original build pulled source from Cloud Storage without specifying
|
|
333
|
+
# the generation of the object, the new build will use the current object,
|
|
334
|
+
# which may be different from the original build source.
|
|
335
|
+
# * If the original build pulled source from Cloud Storage and specified the
|
|
336
|
+
# generation of the object, the new build will attempt to use the same
|
|
337
|
+
# object, which may or may not be available depending on the bucket's
|
|
338
|
+
# lifecycle management settings.
|
|
339
|
+
# @param [String] project_id
|
|
340
|
+
# ID of the project.
|
|
341
|
+
# @param [String] id
|
|
342
|
+
# Build ID of the original build.
|
|
343
|
+
# @param [Google::Apis::CloudbuildV1::RetryBuildRequest] retry_build_request_object
|
|
344
|
+
# @param [String] fields
|
|
345
|
+
# Selector specifying which fields to include in a partial response.
|
|
346
|
+
# @param [String] quota_user
|
|
347
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
348
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
349
|
+
# @param [Google::Apis::RequestOptions] options
|
|
350
|
+
# Request-specific options
|
|
351
|
+
#
|
|
352
|
+
# @yield [result, err] Result & error if block supplied
|
|
353
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
|
354
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
355
|
+
#
|
|
356
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
|
357
|
+
#
|
|
358
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
359
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
360
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
361
|
+
def retry_build(project_id, id, retry_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
362
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:retry', options)
|
|
363
|
+
command.request_representation = Google::Apis::CloudbuildV1::RetryBuildRequest::Representation
|
|
364
|
+
command.request_object = retry_build_request_object
|
|
365
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
|
366
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
|
367
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
368
|
+
command.params['id'] = id unless id.nil?
|
|
369
|
+
command.query['fields'] = fields unless fields.nil?
|
|
370
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
371
|
+
execute_or_queue_command(command, &block)
|
|
372
|
+
end
|
|
373
|
+
|
|
319
374
|
# Creates a new BuildTrigger.
|
|
320
375
|
# This API is experimental.
|
|
321
376
|
# @param [String] project_id
|
|
@@ -485,6 +540,42 @@ module Google
|
|
|
485
540
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
486
541
|
execute_or_queue_command(command, &block)
|
|
487
542
|
end
|
|
543
|
+
|
|
544
|
+
# Runs a BuildTrigger at a particular source revision.
|
|
545
|
+
# @param [String] project_id
|
|
546
|
+
# ID of the project.
|
|
547
|
+
# @param [String] trigger_id
|
|
548
|
+
# ID of the trigger.
|
|
549
|
+
# @param [Google::Apis::CloudbuildV1::RepoSource] repo_source_object
|
|
550
|
+
# @param [String] fields
|
|
551
|
+
# Selector specifying which fields to include in a partial response.
|
|
552
|
+
# @param [String] quota_user
|
|
553
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
554
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
555
|
+
# @param [Google::Apis::RequestOptions] options
|
|
556
|
+
# Request-specific options
|
|
557
|
+
#
|
|
558
|
+
# @yield [result, err] Result & error if block supplied
|
|
559
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
|
560
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
561
|
+
#
|
|
562
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
|
563
|
+
#
|
|
564
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
565
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
566
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
567
|
+
def run_project_trigger(project_id, trigger_id, repo_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
568
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers/{triggerId}:run', options)
|
|
569
|
+
command.request_representation = Google::Apis::CloudbuildV1::RepoSource::Representation
|
|
570
|
+
command.request_object = repo_source_object
|
|
571
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
|
572
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
|
573
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
574
|
+
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
|
575
|
+
command.query['fields'] = fields unless fields.nil?
|
|
576
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
577
|
+
execute_or_queue_command(command, &block)
|
|
578
|
+
end
|
|
488
579
|
|
|
489
580
|
protected
|
|
490
581
|
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/functions
|
|
27
27
|
module CloudfunctionsV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20171017'
|
|
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,6 +22,392 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module CloudfunctionsV1
|
|
24
24
|
|
|
25
|
+
# Request for the `CallFunction` method.
|
|
26
|
+
class CallFunctionRequest
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# Input to be passed to the function.
|
|
30
|
+
# Corresponds to the JSON property `data`
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :data
|
|
33
|
+
|
|
34
|
+
def initialize(**args)
|
|
35
|
+
update!(**args)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Update properties of this object
|
|
39
|
+
def update!(**args)
|
|
40
|
+
@data = args[:data] if args.key?(:data)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Response of `CallFunction` method.
|
|
45
|
+
class CallFunctionResponse
|
|
46
|
+
include Google::Apis::Core::Hashable
|
|
47
|
+
|
|
48
|
+
# Either system or user-function generated error. Set if execution
|
|
49
|
+
# was not successful.
|
|
50
|
+
# Corresponds to the JSON property `error`
|
|
51
|
+
# @return [String]
|
|
52
|
+
attr_accessor :error
|
|
53
|
+
|
|
54
|
+
# Execution id of function invocation.
|
|
55
|
+
# Corresponds to the JSON property `executionId`
|
|
56
|
+
# @return [String]
|
|
57
|
+
attr_accessor :execution_id
|
|
58
|
+
|
|
59
|
+
# Result populated for successful execution of synchronous function. Will
|
|
60
|
+
# not be populated if function does not return a result through context.
|
|
61
|
+
# Corresponds to the JSON property `result`
|
|
62
|
+
# @return [String]
|
|
63
|
+
attr_accessor :result
|
|
64
|
+
|
|
65
|
+
def initialize(**args)
|
|
66
|
+
update!(**args)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Update properties of this object
|
|
70
|
+
def update!(**args)
|
|
71
|
+
@error = args[:error] if args.key?(:error)
|
|
72
|
+
@execution_id = args[:execution_id] if args.key?(:execution_id)
|
|
73
|
+
@result = args[:result] if args.key?(:result)
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Describes a Cloud Function that contains user computation executed in
|
|
78
|
+
# response to an event. It encapsulate function and triggers configurations.
|
|
79
|
+
class CloudFunction
|
|
80
|
+
include Google::Apis::Core::Hashable
|
|
81
|
+
|
|
82
|
+
# The amount of memory in MB available for a function.
|
|
83
|
+
# Defaults to 256MB.
|
|
84
|
+
# Corresponds to the JSON property `availableMemoryMb`
|
|
85
|
+
# @return [Fixnum]
|
|
86
|
+
attr_accessor :available_memory_mb
|
|
87
|
+
|
|
88
|
+
# User-provided description of a function.
|
|
89
|
+
# Corresponds to the JSON property `description`
|
|
90
|
+
# @return [String]
|
|
91
|
+
attr_accessor :description
|
|
92
|
+
|
|
93
|
+
# The name of the function (as defined in source code) that will be
|
|
94
|
+
# executed. Defaults to the resource name suffix, if not specified. For
|
|
95
|
+
# backward compatibility, if function with given name is not found, then the
|
|
96
|
+
# system will try to use function named "function".
|
|
97
|
+
# For Node.js this is name of a function exported by the module specified
|
|
98
|
+
# in `source_location`.
|
|
99
|
+
# Corresponds to the JSON property `entryPoint`
|
|
100
|
+
# @return [String]
|
|
101
|
+
attr_accessor :entry_point
|
|
102
|
+
|
|
103
|
+
# Describes EventTrigger, used to request events be sent from another
|
|
104
|
+
# service.
|
|
105
|
+
# Corresponds to the JSON property `eventTrigger`
|
|
106
|
+
# @return [Google::Apis::CloudfunctionsV1::EventTrigger]
|
|
107
|
+
attr_accessor :event_trigger
|
|
108
|
+
|
|
109
|
+
# Describes HttpsTrigger, could be used to connect web hooks to function.
|
|
110
|
+
# Corresponds to the JSON property `httpsTrigger`
|
|
111
|
+
# @return [Google::Apis::CloudfunctionsV1::HttpsTrigger]
|
|
112
|
+
attr_accessor :https_trigger
|
|
113
|
+
|
|
114
|
+
# Labels associated with this Cloud Function.
|
|
115
|
+
# Corresponds to the JSON property `labels`
|
|
116
|
+
# @return [Hash<String,String>]
|
|
117
|
+
attr_accessor :labels
|
|
118
|
+
|
|
119
|
+
# A user-defined name of the function. Function names must be unique
|
|
120
|
+
# globally and match pattern `projects/*/locations/*/functions/*`
|
|
121
|
+
# Corresponds to the JSON property `name`
|
|
122
|
+
# @return [String]
|
|
123
|
+
attr_accessor :name
|
|
124
|
+
|
|
125
|
+
# Output only. The email of the function's service account.
|
|
126
|
+
# Corresponds to the JSON property `serviceAccountEmail`
|
|
127
|
+
# @return [String]
|
|
128
|
+
attr_accessor :service_account_email
|
|
129
|
+
|
|
130
|
+
# The Google Cloud Storage URL, starting with gs://, pointing to the zip
|
|
131
|
+
# archive which contains the function.
|
|
132
|
+
# Corresponds to the JSON property `sourceArchiveUrl`
|
|
133
|
+
# @return [String]
|
|
134
|
+
attr_accessor :source_archive_url
|
|
135
|
+
|
|
136
|
+
# Describes SourceRepository, used to represent parameters related to
|
|
137
|
+
# source repository where a function is hosted.
|
|
138
|
+
# Corresponds to the JSON property `sourceRepository`
|
|
139
|
+
# @return [Google::Apis::CloudfunctionsV1::SourceRepository]
|
|
140
|
+
attr_accessor :source_repository
|
|
141
|
+
|
|
142
|
+
# The Google Cloud Storage signed URL used for source uploading, generated
|
|
143
|
+
# by google.cloud.functions.v1.GenerateUploadUrl
|
|
144
|
+
# Corresponds to the JSON property `sourceUploadUrl`
|
|
145
|
+
# @return [String]
|
|
146
|
+
attr_accessor :source_upload_url
|
|
147
|
+
|
|
148
|
+
# Output only. Status of the function deployment.
|
|
149
|
+
# Corresponds to the JSON property `status`
|
|
150
|
+
# @return [String]
|
|
151
|
+
attr_accessor :status
|
|
152
|
+
|
|
153
|
+
# The function execution timeout. Execution is considered failed and
|
|
154
|
+
# can be terminated if the function is not completed at the end of the
|
|
155
|
+
# timeout period. Defaults to 60 seconds.
|
|
156
|
+
# Corresponds to the JSON property `timeout`
|
|
157
|
+
# @return [String]
|
|
158
|
+
attr_accessor :timeout
|
|
159
|
+
|
|
160
|
+
# Output only. The last update timestamp of a Cloud Function.
|
|
161
|
+
# Corresponds to the JSON property `updateTime`
|
|
162
|
+
# @return [String]
|
|
163
|
+
attr_accessor :update_time
|
|
164
|
+
|
|
165
|
+
# Output only.
|
|
166
|
+
# The version identifier of the Cloud Function. Each deployment attempt
|
|
167
|
+
# results in a new version of a function being created.
|
|
168
|
+
# Corresponds to the JSON property `versionId`
|
|
169
|
+
# @return [Fixnum]
|
|
170
|
+
attr_accessor :version_id
|
|
171
|
+
|
|
172
|
+
def initialize(**args)
|
|
173
|
+
update!(**args)
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Update properties of this object
|
|
177
|
+
def update!(**args)
|
|
178
|
+
@available_memory_mb = args[:available_memory_mb] if args.key?(:available_memory_mb)
|
|
179
|
+
@description = args[:description] if args.key?(:description)
|
|
180
|
+
@entry_point = args[:entry_point] if args.key?(:entry_point)
|
|
181
|
+
@event_trigger = args[:event_trigger] if args.key?(:event_trigger)
|
|
182
|
+
@https_trigger = args[:https_trigger] if args.key?(:https_trigger)
|
|
183
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
184
|
+
@name = args[:name] if args.key?(:name)
|
|
185
|
+
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
|
|
186
|
+
@source_archive_url = args[:source_archive_url] if args.key?(:source_archive_url)
|
|
187
|
+
@source_repository = args[:source_repository] if args.key?(:source_repository)
|
|
188
|
+
@source_upload_url = args[:source_upload_url] if args.key?(:source_upload_url)
|
|
189
|
+
@status = args[:status] if args.key?(:status)
|
|
190
|
+
@timeout = args[:timeout] if args.key?(:timeout)
|
|
191
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
|
192
|
+
@version_id = args[:version_id] if args.key?(:version_id)
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Describes EventTrigger, used to request events be sent from another
|
|
197
|
+
# service.
|
|
198
|
+
class EventTrigger
|
|
199
|
+
include Google::Apis::Core::Hashable
|
|
200
|
+
|
|
201
|
+
# Required. The type of event to observe. For example:
|
|
202
|
+
# `google.storage.object.finalized` and
|
|
203
|
+
# `google.firebase.analytics.event.log`.
|
|
204
|
+
# Event type consists of three parts:
|
|
205
|
+
# 1. namespace: The domain name of the organization in reverse-domain
|
|
206
|
+
# notation (e.g. `acme.net` appears as `net.acme`) and any orginization
|
|
207
|
+
# specific subdivisions. If the organization's top-level domain is `com`,
|
|
208
|
+
# the top-level domain is ommited (e.g. `google.com` appears as
|
|
209
|
+
# `google`). For example, `google.storage` and
|
|
210
|
+
# `google.firebase.analytics`.
|
|
211
|
+
# 2. resource type: The type of resource on which event ocurs. For
|
|
212
|
+
# example, the Google Cloud Storage API includes the type `object`.
|
|
213
|
+
# 3. action: The action that generates the event. For example, actions for
|
|
214
|
+
# a Google Cloud Storage Object include 'finalize' and 'delete'.
|
|
215
|
+
# These parts are lower case and joined by '.'.
|
|
216
|
+
# Corresponds to the JSON property `eventType`
|
|
217
|
+
# @return [String]
|
|
218
|
+
attr_accessor :event_type
|
|
219
|
+
|
|
220
|
+
# Describes the policy in case of function's execution failure.
|
|
221
|
+
# If empty, then defaults to ignoring failures (i.e. not retrying them).
|
|
222
|
+
# Corresponds to the JSON property `failurePolicy`
|
|
223
|
+
# @return [Google::Apis::CloudfunctionsV1::FailurePolicy]
|
|
224
|
+
attr_accessor :failure_policy
|
|
225
|
+
|
|
226
|
+
# Required. The resource(s) from which to observe events, for example,
|
|
227
|
+
# `projects/_/buckets/myBucket`.
|
|
228
|
+
# Not all syntactically correct values are accepted by all services. For
|
|
229
|
+
# example:
|
|
230
|
+
# 1. The authorization model must support it. Google Cloud Functions
|
|
231
|
+
# only allows EventTriggers to be deployed that observe resources in the
|
|
232
|
+
# same project as the `CloudFunction`.
|
|
233
|
+
# 2. The resource type must match the pattern expected for an
|
|
234
|
+
# `event_type`. For example, an `EventTrigger` that has an
|
|
235
|
+
# `event_type` of "google.pubsub.topic.publish" should have a resource
|
|
236
|
+
# that matches Google Cloud Pub/Sub topics.
|
|
237
|
+
# Additionally, some services may support short names when creating an
|
|
238
|
+
# `EventTrigger`. These will always be returned in the normalized "long"
|
|
239
|
+
# format.
|
|
240
|
+
# See each *service's* documentation for supported formats.
|
|
241
|
+
# Corresponds to the JSON property `resource`
|
|
242
|
+
# @return [String]
|
|
243
|
+
attr_accessor :resource
|
|
244
|
+
|
|
245
|
+
# The hostname of the service that should be observed.
|
|
246
|
+
# If no string is provided, the default service implementing the API will
|
|
247
|
+
# be used. For example, `storage.googleapis.com` is the default for all
|
|
248
|
+
# event types in the 'google.storage` namespace.
|
|
249
|
+
# Corresponds to the JSON property `service`
|
|
250
|
+
# @return [String]
|
|
251
|
+
attr_accessor :service
|
|
252
|
+
|
|
253
|
+
def initialize(**args)
|
|
254
|
+
update!(**args)
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Update properties of this object
|
|
258
|
+
def update!(**args)
|
|
259
|
+
@event_type = args[:event_type] if args.key?(:event_type)
|
|
260
|
+
@failure_policy = args[:failure_policy] if args.key?(:failure_policy)
|
|
261
|
+
@resource = args[:resource] if args.key?(:resource)
|
|
262
|
+
@service = args[:service] if args.key?(:service)
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# Describes the policy in case of function's execution failure.
|
|
267
|
+
# If empty, then defaults to ignoring failures (i.e. not retrying them).
|
|
268
|
+
class FailurePolicy
|
|
269
|
+
include Google::Apis::Core::Hashable
|
|
270
|
+
|
|
271
|
+
# Describes the retry policy in case of function's execution failure.
|
|
272
|
+
# A function execution will be retried on any failure.
|
|
273
|
+
# A failed execution will be retried up to 7 days with an exponential backoff
|
|
274
|
+
# (capped at 10 seconds).
|
|
275
|
+
# Retried execution is charged as any other execution.
|
|
276
|
+
# Corresponds to the JSON property `retry`
|
|
277
|
+
# @return [Google::Apis::CloudfunctionsV1::Retry]
|
|
278
|
+
attr_accessor :retry
|
|
279
|
+
|
|
280
|
+
def initialize(**args)
|
|
281
|
+
update!(**args)
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# Update properties of this object
|
|
285
|
+
def update!(**args)
|
|
286
|
+
@retry = args[:retry] if args.key?(:retry)
|
|
287
|
+
end
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
# Request of `GenerateDownloadUrl` method.
|
|
291
|
+
class GenerateDownloadUrlRequest
|
|
292
|
+
include Google::Apis::Core::Hashable
|
|
293
|
+
|
|
294
|
+
# The optional version of function. If not set, default, current version
|
|
295
|
+
# is used.
|
|
296
|
+
# Corresponds to the JSON property `versionId`
|
|
297
|
+
# @return [Fixnum]
|
|
298
|
+
attr_accessor :version_id
|
|
299
|
+
|
|
300
|
+
def initialize(**args)
|
|
301
|
+
update!(**args)
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
# Update properties of this object
|
|
305
|
+
def update!(**args)
|
|
306
|
+
@version_id = args[:version_id] if args.key?(:version_id)
|
|
307
|
+
end
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# Response of `GenerateDownloadUrl` method.
|
|
311
|
+
class GenerateDownloadUrlResponse
|
|
312
|
+
include Google::Apis::Core::Hashable
|
|
313
|
+
|
|
314
|
+
# The generated Google Cloud Storage signed URL that should be used for
|
|
315
|
+
# function source code download.
|
|
316
|
+
# Corresponds to the JSON property `downloadUrl`
|
|
317
|
+
# @return [String]
|
|
318
|
+
attr_accessor :download_url
|
|
319
|
+
|
|
320
|
+
def initialize(**args)
|
|
321
|
+
update!(**args)
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
# Update properties of this object
|
|
325
|
+
def update!(**args)
|
|
326
|
+
@download_url = args[:download_url] if args.key?(:download_url)
|
|
327
|
+
end
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
# Request of `GenerateSourceUploadUrl` method.
|
|
331
|
+
class GenerateUploadUrlRequest
|
|
332
|
+
include Google::Apis::Core::Hashable
|
|
333
|
+
|
|
334
|
+
def initialize(**args)
|
|
335
|
+
update!(**args)
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
# Update properties of this object
|
|
339
|
+
def update!(**args)
|
|
340
|
+
end
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# Response of `GenerateSourceUploadUrl` method.
|
|
344
|
+
class GenerateUploadUrlResponse
|
|
345
|
+
include Google::Apis::Core::Hashable
|
|
346
|
+
|
|
347
|
+
# The generated Google Cloud Storage signed URL that should be used for a
|
|
348
|
+
# function source code upload. The uploaded file should be a zip archive
|
|
349
|
+
# which contains a function.
|
|
350
|
+
# Corresponds to the JSON property `uploadUrl`
|
|
351
|
+
# @return [String]
|
|
352
|
+
attr_accessor :upload_url
|
|
353
|
+
|
|
354
|
+
def initialize(**args)
|
|
355
|
+
update!(**args)
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# Update properties of this object
|
|
359
|
+
def update!(**args)
|
|
360
|
+
@upload_url = args[:upload_url] if args.key?(:upload_url)
|
|
361
|
+
end
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
# Describes HttpsTrigger, could be used to connect web hooks to function.
|
|
365
|
+
class HttpsTrigger
|
|
366
|
+
include Google::Apis::Core::Hashable
|
|
367
|
+
|
|
368
|
+
# Output only. The deployed url for the function.
|
|
369
|
+
# Corresponds to the JSON property `url`
|
|
370
|
+
# @return [String]
|
|
371
|
+
attr_accessor :url
|
|
372
|
+
|
|
373
|
+
def initialize(**args)
|
|
374
|
+
update!(**args)
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
# Update properties of this object
|
|
378
|
+
def update!(**args)
|
|
379
|
+
@url = args[:url] if args.key?(:url)
|
|
380
|
+
end
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
# Response for the `ListFunctions` method.
|
|
384
|
+
class ListFunctionsResponse
|
|
385
|
+
include Google::Apis::Core::Hashable
|
|
386
|
+
|
|
387
|
+
# The functions that match the request.
|
|
388
|
+
# Corresponds to the JSON property `functions`
|
|
389
|
+
# @return [Array<Google::Apis::CloudfunctionsV1::CloudFunction>]
|
|
390
|
+
attr_accessor :functions
|
|
391
|
+
|
|
392
|
+
# If not empty, indicates that there may be more functions that match
|
|
393
|
+
# the request; this value should be passed in a new
|
|
394
|
+
# google.cloud.functions.v1.ListFunctionsRequest
|
|
395
|
+
# to get more functions.
|
|
396
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
397
|
+
# @return [String]
|
|
398
|
+
attr_accessor :next_page_token
|
|
399
|
+
|
|
400
|
+
def initialize(**args)
|
|
401
|
+
update!(**args)
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
# Update properties of this object
|
|
405
|
+
def update!(**args)
|
|
406
|
+
@functions = args[:functions] if args.key?(:functions)
|
|
407
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
408
|
+
end
|
|
409
|
+
end
|
|
410
|
+
|
|
25
411
|
# The response message for Locations.ListLocations.
|
|
26
412
|
class ListLocationsResponse
|
|
27
413
|
include Google::Apis::Core::Hashable
|
|
@@ -209,6 +595,45 @@ module Google
|
|
|
209
595
|
end
|
|
210
596
|
end
|
|
211
597
|
|
|
598
|
+
# Metadata describing an Operation
|
|
599
|
+
class OperationMetadataV1
|
|
600
|
+
include Google::Apis::Core::Hashable
|
|
601
|
+
|
|
602
|
+
# The original request that started the operation.
|
|
603
|
+
# Corresponds to the JSON property `request`
|
|
604
|
+
# @return [Hash<String,Object>]
|
|
605
|
+
attr_accessor :request
|
|
606
|
+
|
|
607
|
+
# Target of the operation - for example
|
|
608
|
+
# projects/project-1/locations/region-1/functions/function-1
|
|
609
|
+
# Corresponds to the JSON property `target`
|
|
610
|
+
# @return [String]
|
|
611
|
+
attr_accessor :target
|
|
612
|
+
|
|
613
|
+
# Type of operation.
|
|
614
|
+
# Corresponds to the JSON property `type`
|
|
615
|
+
# @return [String]
|
|
616
|
+
attr_accessor :type
|
|
617
|
+
|
|
618
|
+
# Version id of the function created or updated by an API call.
|
|
619
|
+
# This field is only pupulated for Create and Update operations.
|
|
620
|
+
# Corresponds to the JSON property `versionId`
|
|
621
|
+
# @return [Fixnum]
|
|
622
|
+
attr_accessor :version_id
|
|
623
|
+
|
|
624
|
+
def initialize(**args)
|
|
625
|
+
update!(**args)
|
|
626
|
+
end
|
|
627
|
+
|
|
628
|
+
# Update properties of this object
|
|
629
|
+
def update!(**args)
|
|
630
|
+
@request = args[:request] if args.key?(:request)
|
|
631
|
+
@target = args[:target] if args.key?(:target)
|
|
632
|
+
@type = args[:type] if args.key?(:type)
|
|
633
|
+
@version_id = args[:version_id] if args.key?(:version_id)
|
|
634
|
+
end
|
|
635
|
+
end
|
|
636
|
+
|
|
212
637
|
# Metadata describing an Operation
|
|
213
638
|
class OperationMetadataV1Beta2
|
|
214
639
|
include Google::Apis::Core::Hashable
|
|
@@ -248,6 +673,63 @@ module Google
|
|
|
248
673
|
end
|
|
249
674
|
end
|
|
250
675
|
|
|
676
|
+
# Describes the retry policy in case of function's execution failure.
|
|
677
|
+
# A function execution will be retried on any failure.
|
|
678
|
+
# A failed execution will be retried up to 7 days with an exponential backoff
|
|
679
|
+
# (capped at 10 seconds).
|
|
680
|
+
# Retried execution is charged as any other execution.
|
|
681
|
+
class Retry
|
|
682
|
+
include Google::Apis::Core::Hashable
|
|
683
|
+
|
|
684
|
+
def initialize(**args)
|
|
685
|
+
update!(**args)
|
|
686
|
+
end
|
|
687
|
+
|
|
688
|
+
# Update properties of this object
|
|
689
|
+
def update!(**args)
|
|
690
|
+
end
|
|
691
|
+
end
|
|
692
|
+
|
|
693
|
+
# Describes SourceRepository, used to represent parameters related to
|
|
694
|
+
# source repository where a function is hosted.
|
|
695
|
+
class SourceRepository
|
|
696
|
+
include Google::Apis::Core::Hashable
|
|
697
|
+
|
|
698
|
+
# Output only. The URL pointing to the hosted repository where the function
|
|
699
|
+
# were defined at the time of deployment. It always points to a specific
|
|
700
|
+
# commit in the format described above.
|
|
701
|
+
# Corresponds to the JSON property `deployedUrl`
|
|
702
|
+
# @return [String]
|
|
703
|
+
attr_accessor :deployed_url
|
|
704
|
+
|
|
705
|
+
# The URL pointing to the hosted repository where the function is defined.
|
|
706
|
+
# There are supported Cloud Source Repository URLs in the following
|
|
707
|
+
# formats:
|
|
708
|
+
# To refer to a specific commit:
|
|
709
|
+
# `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
|
|
710
|
+
# To refer to a moveable alias (branch):
|
|
711
|
+
# `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/
|
|
712
|
+
# paths/*`
|
|
713
|
+
# In particular, to refer to HEAD use `master` moveable alias.
|
|
714
|
+
# To refer to a specific fixed alias (tag):
|
|
715
|
+
# `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/
|
|
716
|
+
# *`
|
|
717
|
+
# You may omit `paths/*` if you want to use the main directory.
|
|
718
|
+
# Corresponds to the JSON property `url`
|
|
719
|
+
# @return [String]
|
|
720
|
+
attr_accessor :url
|
|
721
|
+
|
|
722
|
+
def initialize(**args)
|
|
723
|
+
update!(**args)
|
|
724
|
+
end
|
|
725
|
+
|
|
726
|
+
# Update properties of this object
|
|
727
|
+
def update!(**args)
|
|
728
|
+
@deployed_url = args[:deployed_url] if args.key?(:deployed_url)
|
|
729
|
+
@url = args[:url] if args.key?(:url)
|
|
730
|
+
end
|
|
731
|
+
end
|
|
732
|
+
|
|
251
733
|
# The `Status` type defines a logical error model that is suitable for different
|
|
252
734
|
# programming environments, including REST APIs and RPC APIs. It is used by
|
|
253
735
|
# [gRPC](https://github.com/grpc). The error model is designed to be:
|