google-api-client 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/MIGRATING.md +22 -7
- data/README.md +4 -8
- data/api_names.yaml +1210 -37815
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
- data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
- data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
- data/generated/google/apis/appengine_v1.rb +40 -0
- data/generated/google/apis/appengine_v1/classes.rb +2251 -0
- data/generated/google/apis/appengine_v1/representations.rb +858 -0
- data/generated/google/apis/appengine_v1/service.rb +894 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +11 -6
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +26 -0
- data/generated/google/apis/books_v1/representations.rb +15 -0
- data/generated/google/apis/books_v1/service.rb +4 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
- data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
- data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
- data/generated/google/apis/clouddebugger_v2.rb +3 -3
- data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
- data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
- data/generated/google/apis/cloudfunctions_v1.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
- data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
- data/generated/google/apis/cloudkms_v1/service.rb +194 -194
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
- data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +32 -7
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_beta/service.rb +11 -11
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +95 -2
- data/generated/google/apis/compute_v1/representations.rb +33 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
- data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
- data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
- data/generated/google/apis/dataproc_v1/representations.rb +200 -200
- data/generated/google/apis/dataproc_v1/service.rb +356 -356
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +701 -690
- data/generated/google/apis/datastore_v1/representations.rb +160 -160
- data/generated/google/apis/datastore_v1/service.rb +52 -52
- data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +158 -35
- data/generated/google/apis/drive_v2/representations.rb +39 -0
- data/generated/google/apis/drive_v2/service.rb +4 -4
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +162 -33
- data/generated/google/apis/drive_v3/representations.rb +39 -0
- data/generated/google/apis/drive_v3/service.rb +4 -4
- data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
- data/generated/google/apis/firebaserules_v1.rb +41 -0
- data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
- data/generated/google/apis/firebaserules_v1/service.rb +495 -0
- data/generated/google/apis/games_v1/classes.rb +4 -0
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
- data/generated/google/apis/genomics_v1/representations.rb +387 -387
- data/generated/google/apis/genomics_v1/service.rb +1187 -1187
- data/generated/google/apis/gmail_v1/classes.rb +3 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +123 -117
- data/generated/google/apis/iam_v1/representations.rb +33 -33
- data/generated/google/apis/iam_v1/service.rb +109 -109
- data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +36 -0
- data/generated/google/apis/language_v1/classes.rb +757 -0
- data/generated/google/apis/language_v1/representations.rb +338 -0
- data/generated/google/apis/language_v1/service.rb +185 -0
- data/generated/google/apis/language_v1beta1/classes.rb +407 -407
- data/generated/google/apis/language_v1beta1/representations.rb +103 -103
- data/generated/google/apis/language_v1beta1/service.rb +45 -45
- data/generated/google/apis/logging_v2.rb +46 -0
- data/generated/google/apis/logging_v2/classes.rb +1271 -0
- data/generated/google/apis/logging_v2/representations.rb +421 -0
- data/generated/google/apis/logging_v2/service.rb +1569 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
- data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
- data/generated/google/apis/logging_v2beta1/service.rb +235 -235
- data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
- data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
- data/generated/google/apis/ml_v1.rb +34 -0
- data/generated/google/apis/ml_v1/classes.rb +1617 -0
- data/generated/google/apis/ml_v1/representations.rb +498 -0
- data/generated/google/apis/ml_v1/service.rb +769 -0
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +630 -630
- data/generated/google/apis/monitoring_v3/representations.rb +134 -134
- data/generated/google/apis/monitoring_v3/service.rb +240 -240
- data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +639 -639
- data/generated/google/apis/partners_v2/representations.rb +168 -168
- data/generated/google/apis/partners_v2/service.rb +381 -381
- data/generated/google/apis/people_v1.rb +10 -10
- data/generated/google/apis/people_v1/classes.rb +524 -524
- data/generated/google/apis/people_v1/representations.rb +143 -143
- data/generated/google/apis/people_v1/service.rb +30 -30
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
- data/generated/google/apis/pubsub_v1/classes.rb +175 -173
- data/generated/google/apis/pubsub_v1/representations.rb +53 -53
- data/generated/google/apis/pubsub_v1/service.rb +210 -210
- data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
- data/generated/google/apis/runtimeconfig_v1.rb +38 -0
- data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
- data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
- data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -6
- data/generated/google/apis/script_v1/representations.rb +1 -1
- data/generated/google/apis/searchconsole_v1.rb +31 -0
- data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
- data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
- data/generated/google/apis/searchconsole_v1/service.rb +88 -0
- data/generated/google/apis/servicecontrol_v1.rb +38 -0
- data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
- data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
- data/generated/google/apis/servicemanagement_v1.rb +45 -0
- data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
- data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
- data/generated/google/apis/serviceuser_v1.rb +42 -0
- data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
- data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
- data/generated/google/apis/serviceuser_v1/service.rb +214 -0
- data/generated/google/apis/sheets_v4.rb +3 -3
- data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
- data/generated/google/apis/sheets_v4/representations.rb +381 -381
- data/generated/google/apis/sheets_v4/service.rb +48 -48
- data/generated/google/apis/slides_v1.rb +3 -3
- data/generated/google/apis/slides_v1/classes.rb +2860 -2860
- data/generated/google/apis/slides_v1/representations.rb +693 -693
- data/generated/google/apis/slides_v1/service.rb +30 -30
- data/generated/google/apis/sourcerepo_v1.rb +34 -0
- data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
- data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
- data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
- data/generated/google/apis/spanner_v1.rb +35 -0
- data/generated/google/apis/spanner_v1/classes.rb +3294 -0
- data/generated/google/apis/spanner_v1/representations.rb +984 -0
- data/generated/google/apis/spanner_v1/service.rb +1504 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
- data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
- data/generated/google/apis/speech_v1beta1/service.rb +27 -27
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +131 -0
- data/generated/google/apis/storage_v1/representations.rb +51 -0
- data/generated/google/apis/storage_v1/service.rb +182 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
- data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
- data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
- data/generated/google/apis/surveys_v2.rb +40 -0
- data/generated/google/apis/surveys_v2/classes.rb +806 -0
- data/generated/google/apis/surveys_v2/representations.rb +347 -0
- data/generated/google/apis/surveys_v2/service.rb +477 -0
- data/generated/google/apis/tagmanager_v2.rb +52 -0
- data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
- data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
- data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
- data/generated/google/apis/toolresults_v1beta3.rb +34 -0
- data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
- data/generated/google/apis/tracing_v1.rb +40 -0
- data/generated/google/apis/tracing_v1/classes.rb +664 -0
- data/generated/google/apis/tracing_v1/representations.rb +279 -0
- data/generated/google/apis/tracing_v1/service.rb +225 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1223 -1222
- data/generated/google/apis/vision_v1/representations.rb +234 -234
- data/generated/google/apis/vision_v1/service.rb +10 -10
- data/generated/google/apis/webfonts_v1.rb +33 -0
- data/generated/google/apis/webfonts_v1/classes.rb +113 -0
- data/generated/google/apis/webfonts_v1/representations.rb +62 -0
- data/generated/google/apis/webfonts_v1/service.rb +102 -0
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
- data/generated/google/apis/youtube_v3/classes.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
- data/lib/google/apis/generator/annotator.rb +5 -4
- data/lib/google/apis/generator/templates/_class.tmpl +3 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/adsense.rb +99 -0
- data/samples/cli/lib/samples/analytics.rb +18 -0
- data/samples/cli/lib/samples/gmail.rb +33 -0
- data/samples/cli/lib/samples/vision.rb +69 -0
- metadata +89 -4
- data/sync.rb +0 -71
@@ -22,209 +22,132 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CloudbuildV1
|
24
24
|
|
25
|
-
class
|
25
|
+
class Empty
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
27
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
-
class
|
31
|
+
class BuildTrigger
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
33
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
-
class
|
37
|
+
class Build
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
39
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
-
class
|
43
|
+
class CancelBuildRequest
|
44
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
45
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
-
class
|
49
|
+
class ListBuildsResponse
|
50
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
51
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
-
class
|
55
|
+
class ListOperationsResponse
|
56
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
57
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
-
class
|
61
|
+
class Source
|
62
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
63
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
-
class
|
67
|
+
class BuildOptions
|
68
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
69
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
71
71
|
end
|
72
72
|
|
73
|
-
class
|
73
|
+
class StorageSource
|
74
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
75
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
77
77
|
end
|
78
78
|
|
79
|
-
class
|
79
|
+
class Results
|
80
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
81
|
|
82
82
|
include Google::Apis::Core::JsonObjectSupport
|
83
83
|
end
|
84
84
|
|
85
|
-
class
|
85
|
+
class BuildOperationMetadata
|
86
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
87
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
89
89
|
end
|
90
90
|
|
91
|
-
class
|
91
|
+
class SourceProvenance
|
92
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
93
|
|
94
94
|
include Google::Apis::Core::JsonObjectSupport
|
95
95
|
end
|
96
96
|
|
97
|
-
class
|
97
|
+
class CancelOperationRequest
|
98
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
99
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
-
class
|
103
|
+
class ListBuildTriggersResponse
|
104
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
105
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
107
107
|
end
|
108
108
|
|
109
|
-
class
|
109
|
+
class Operation
|
110
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
111
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
113
113
|
end
|
114
114
|
|
115
|
-
class
|
115
|
+
class BuiltImage
|
116
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
117
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
119
119
|
end
|
120
120
|
|
121
|
-
class
|
121
|
+
class RepoSource
|
122
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
123
|
|
124
124
|
include Google::Apis::Core::JsonObjectSupport
|
125
125
|
end
|
126
126
|
|
127
|
-
class
|
127
|
+
class BuildStep
|
128
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
129
|
|
130
130
|
include Google::Apis::Core::JsonObjectSupport
|
131
131
|
end
|
132
132
|
|
133
|
-
class
|
133
|
+
class HashProp
|
134
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
135
|
|
136
136
|
include Google::Apis::Core::JsonObjectSupport
|
137
137
|
end
|
138
138
|
|
139
|
-
class
|
139
|
+
class FileHashes
|
140
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
141
|
|
142
142
|
include Google::Apis::Core::JsonObjectSupport
|
143
143
|
end
|
144
144
|
|
145
|
-
class
|
145
|
+
class Status
|
146
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
147
|
|
148
148
|
include Google::Apis::Core::JsonObjectSupport
|
149
149
|
end
|
150
150
|
|
151
|
-
class Operation
|
152
|
-
# @private
|
153
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
154
|
-
hash :response, as: 'response'
|
155
|
-
property :name, as: 'name'
|
156
|
-
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
157
|
-
|
158
|
-
hash :metadata, as: 'metadata'
|
159
|
-
property :done, as: 'done'
|
160
|
-
end
|
161
|
-
end
|
162
|
-
|
163
|
-
class ListBuildTriggersResponse
|
164
|
-
# @private
|
165
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
166
|
-
collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
167
|
-
|
168
|
-
end
|
169
|
-
end
|
170
|
-
|
171
|
-
class BuiltImage
|
172
|
-
# @private
|
173
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
174
|
-
property :name, as: 'name'
|
175
|
-
property :digest, as: 'digest'
|
176
|
-
end
|
177
|
-
end
|
178
|
-
|
179
|
-
class RepoSource
|
180
|
-
# @private
|
181
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
182
|
-
property :tag_name, as: 'tagName'
|
183
|
-
property :commit_sha, as: 'commitSha'
|
184
|
-
property :project_id, as: 'projectId'
|
185
|
-
property :repo_name, as: 'repoName'
|
186
|
-
property :branch_name, as: 'branchName'
|
187
|
-
end
|
188
|
-
end
|
189
|
-
|
190
|
-
class HashProp
|
191
|
-
# @private
|
192
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
193
|
-
property :type, as: 'type'
|
194
|
-
property :value, :base64 => true, as: 'value'
|
195
|
-
end
|
196
|
-
end
|
197
|
-
|
198
|
-
class BuildStep
|
199
|
-
# @private
|
200
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
201
|
-
property :entrypoint, as: 'entrypoint'
|
202
|
-
property :id, as: 'id'
|
203
|
-
property :dir, as: 'dir'
|
204
|
-
collection :env, as: 'env'
|
205
|
-
collection :wait_for, as: 'waitFor'
|
206
|
-
collection :args, as: 'args'
|
207
|
-
property :name, as: 'name'
|
208
|
-
end
|
209
|
-
end
|
210
|
-
|
211
|
-
class FileHashes
|
212
|
-
# @private
|
213
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
214
|
-
collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::HashProp, decorator: Google::Apis::CloudbuildV1::HashProp::Representation
|
215
|
-
|
216
|
-
end
|
217
|
-
end
|
218
|
-
|
219
|
-
class Status
|
220
|
-
# @private
|
221
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
222
|
-
collection :details, as: 'details'
|
223
|
-
property :code, as: 'code'
|
224
|
-
property :message, as: 'message'
|
225
|
-
end
|
226
|
-
end
|
227
|
-
|
228
151
|
class Empty
|
229
152
|
# @private
|
230
153
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -250,29 +173,29 @@ module Google
|
|
250
173
|
class Build
|
251
174
|
# @private
|
252
175
|
class Representation < Google::Apis::Core::JsonRepresentation
|
253
|
-
property :create_time, as: 'createTime'
|
254
|
-
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
|
255
|
-
|
256
|
-
collection :images, as: 'images'
|
257
|
-
property :project_id, as: 'projectId'
|
258
|
-
property :log_url, as: 'logUrl'
|
259
|
-
property :finish_time, as: 'finishTime'
|
260
176
|
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
|
261
177
|
|
262
178
|
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
|
263
179
|
|
264
|
-
property :timeout, as: 'timeout'
|
265
|
-
property :status, as: 'status'
|
266
180
|
property :status_detail, as: 'statusDetail'
|
181
|
+
property :status, as: 'status'
|
182
|
+
property :timeout, as: 'timeout'
|
183
|
+
property :logs_bucket, as: 'logsBucket'
|
267
184
|
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
|
268
185
|
|
269
|
-
property :logs_bucket, as: 'logsBucket'
|
270
186
|
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
|
271
187
|
|
272
188
|
property :build_trigger_id, as: 'buildTriggerId'
|
273
189
|
property :id, as: 'id'
|
274
190
|
property :start_time, as: 'startTime'
|
275
191
|
hash :substitutions, as: 'substitutions'
|
192
|
+
property :create_time, as: 'createTime'
|
193
|
+
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
|
194
|
+
|
195
|
+
collection :images, as: 'images'
|
196
|
+
property :project_id, as: 'projectId'
|
197
|
+
property :finish_time, as: 'finishTime'
|
198
|
+
property :log_url, as: 'logUrl'
|
276
199
|
end
|
277
200
|
end
|
278
201
|
|
@@ -313,17 +236,17 @@ module Google
|
|
313
236
|
class BuildOptions
|
314
237
|
# @private
|
315
238
|
class Representation < Google::Apis::Core::JsonRepresentation
|
316
|
-
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
317
239
|
property :requested_verify_option, as: 'requestedVerifyOption'
|
240
|
+
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
318
241
|
end
|
319
242
|
end
|
320
243
|
|
321
244
|
class StorageSource
|
322
245
|
# @private
|
323
246
|
class Representation < Google::Apis::Core::JsonRepresentation
|
324
|
-
property :generation, as: 'generation'
|
325
247
|
property :bucket, as: 'bucket'
|
326
248
|
property :object, as: 'object'
|
249
|
+
property :generation, as: 'generation'
|
327
250
|
end
|
328
251
|
end
|
329
252
|
|
@@ -361,6 +284,83 @@ module Google
|
|
361
284
|
class Representation < Google::Apis::Core::JsonRepresentation
|
362
285
|
end
|
363
286
|
end
|
287
|
+
|
288
|
+
class ListBuildTriggersResponse
|
289
|
+
# @private
|
290
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
291
|
+
collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
292
|
+
|
293
|
+
end
|
294
|
+
end
|
295
|
+
|
296
|
+
class Operation
|
297
|
+
# @private
|
298
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
299
|
+
property :done, as: 'done'
|
300
|
+
hash :response, as: 'response'
|
301
|
+
property :name, as: 'name'
|
302
|
+
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
303
|
+
|
304
|
+
hash :metadata, as: 'metadata'
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
308
|
+
class BuiltImage
|
309
|
+
# @private
|
310
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
311
|
+
property :name, as: 'name'
|
312
|
+
property :digest, as: 'digest'
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
316
|
+
class RepoSource
|
317
|
+
# @private
|
318
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
319
|
+
property :project_id, as: 'projectId'
|
320
|
+
property :repo_name, as: 'repoName'
|
321
|
+
property :branch_name, as: 'branchName'
|
322
|
+
property :tag_name, as: 'tagName'
|
323
|
+
property :commit_sha, as: 'commitSha'
|
324
|
+
end
|
325
|
+
end
|
326
|
+
|
327
|
+
class BuildStep
|
328
|
+
# @private
|
329
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
330
|
+
property :dir, as: 'dir'
|
331
|
+
collection :env, as: 'env'
|
332
|
+
collection :wait_for, as: 'waitFor'
|
333
|
+
collection :args, as: 'args'
|
334
|
+
property :name, as: 'name'
|
335
|
+
property :entrypoint, as: 'entrypoint'
|
336
|
+
property :id, as: 'id'
|
337
|
+
end
|
338
|
+
end
|
339
|
+
|
340
|
+
class HashProp
|
341
|
+
# @private
|
342
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
343
|
+
property :type, as: 'type'
|
344
|
+
property :value, :base64 => true, as: 'value'
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
348
|
+
class FileHashes
|
349
|
+
# @private
|
350
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
351
|
+
collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::HashProp, decorator: Google::Apis::CloudbuildV1::HashProp::Representation
|
352
|
+
|
353
|
+
end
|
354
|
+
end
|
355
|
+
|
356
|
+
class Status
|
357
|
+
# @private
|
358
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
359
|
+
property :code, as: 'code'
|
360
|
+
property :message, as: 'message'
|
361
|
+
collection :details, as: 'details'
|
362
|
+
end
|
363
|
+
end
|
364
364
|
end
|
365
365
|
end
|
366
366
|
end
|
@@ -46,42 +46,6 @@ module Google
|
|
46
46
|
super('https://cloudbuild.googleapis.com/', '')
|
47
47
|
end
|
48
48
|
|
49
|
-
# Cancels a requested build in progress.
|
50
|
-
# @param [String] project_id
|
51
|
-
# ID of the project.
|
52
|
-
# @param [String] id
|
53
|
-
# ID of the build.
|
54
|
-
# @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
|
55
|
-
# @param [String] quota_user
|
56
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
57
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
58
|
-
# @param [String] fields
|
59
|
-
# Selector specifying which fields to include in a partial response.
|
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::CloudbuildV1::Build] parsed result object
|
65
|
-
# @yieldparam err [StandardError] error object if request failed
|
66
|
-
#
|
67
|
-
# @return [Google::Apis::CloudbuildV1::Build]
|
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 cancel_build(project_id, id, cancel_build_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
73
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
|
74
|
-
command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
|
75
|
-
command.request_object = cancel_build_request_object
|
76
|
-
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
77
|
-
command.response_class = Google::Apis::CloudbuildV1::Build
|
78
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
79
|
-
command.params['id'] = id unless id.nil?
|
80
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
81
|
-
command.query['fields'] = fields unless fields.nil?
|
82
|
-
execute_or_queue_command(command, &block)
|
83
|
-
end
|
84
|
-
|
85
49
|
# Returns information about a previously requested build.
|
86
50
|
# The Build that is returned includes its status (e.g., success or failure,
|
87
51
|
# or in-progress), and timing information.
|
@@ -89,11 +53,11 @@ module Google
|
|
89
53
|
# ID of the project.
|
90
54
|
# @param [String] id
|
91
55
|
# ID of the build.
|
56
|
+
# @param [String] fields
|
57
|
+
# Selector specifying which fields to include in a partial response.
|
92
58
|
# @param [String] quota_user
|
93
59
|
# Available to use for quota purposes for server-side applications. Can be any
|
94
60
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
95
|
-
# @param [String] fields
|
96
|
-
# Selector specifying which fields to include in a partial response.
|
97
61
|
# @param [Google::Apis::RequestOptions] options
|
98
62
|
# Request-specific options
|
99
63
|
#
|
@@ -106,14 +70,14 @@ module Google
|
|
106
70
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
107
71
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
108
72
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
109
|
-
def get_project_build(project_id, id,
|
73
|
+
def get_project_build(project_id, id, fields: nil, quota_user: nil, options: nil, &block)
|
110
74
|
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
|
111
75
|
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
112
76
|
command.response_class = Google::Apis::CloudbuildV1::Build
|
113
77
|
command.params['projectId'] = project_id unless project_id.nil?
|
114
78
|
command.params['id'] = id unless id.nil?
|
115
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
116
79
|
command.query['fields'] = fields unless fields.nil?
|
80
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
117
81
|
execute_or_queue_command(command, &block)
|
118
82
|
end
|
119
83
|
|
@@ -122,17 +86,17 @@ module Google
|
|
122
86
|
# successfully or unsuccessfully.
|
123
87
|
# @param [String] project_id
|
124
88
|
# ID of the project.
|
89
|
+
# @param [Fixnum] page_size
|
90
|
+
# Number of results to return in the list.
|
125
91
|
# @param [String] filter
|
126
92
|
# The raw filter text to constrain the results.
|
127
93
|
# @param [String] page_token
|
128
94
|
# Token to provide to skip to a particular spot in the list.
|
129
|
-
# @param [
|
130
|
-
#
|
95
|
+
# @param [String] fields
|
96
|
+
# Selector specifying which fields to include in a partial response.
|
131
97
|
# @param [String] quota_user
|
132
98
|
# Available to use for quota purposes for server-side applications. Can be any
|
133
99
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
134
|
-
# @param [String] fields
|
135
|
-
# Selector specifying which fields to include in a partial response.
|
136
100
|
# @param [Google::Apis::RequestOptions] options
|
137
101
|
# Request-specific options
|
138
102
|
#
|
@@ -145,16 +109,16 @@ module Google
|
|
145
109
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
146
110
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
147
111
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
148
|
-
def list_project_builds(project_id,
|
112
|
+
def list_project_builds(project_id, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
149
113
|
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
|
150
114
|
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
|
151
115
|
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
|
152
116
|
command.params['projectId'] = project_id unless project_id.nil?
|
117
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
153
118
|
command.query['filter'] = filter unless filter.nil?
|
154
119
|
command.query['pageToken'] = page_token unless page_token.nil?
|
155
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
156
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
157
120
|
command.query['fields'] = fields unless fields.nil?
|
121
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
158
122
|
execute_or_queue_command(command, &block)
|
159
123
|
end
|
160
124
|
|
@@ -165,11 +129,11 @@ module Google
|
|
165
129
|
# @param [String] project_id
|
166
130
|
# ID of the project.
|
167
131
|
# @param [Google::Apis::CloudbuildV1::Build] build_object
|
132
|
+
# @param [String] fields
|
133
|
+
# Selector specifying which fields to include in a partial response.
|
168
134
|
# @param [String] quota_user
|
169
135
|
# Available to use for quota purposes for server-side applications. Can be any
|
170
136
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
171
|
-
# @param [String] fields
|
172
|
-
# Selector specifying which fields to include in a partial response.
|
173
137
|
# @param [Google::Apis::RequestOptions] options
|
174
138
|
# Request-specific options
|
175
139
|
#
|
@@ -182,83 +146,51 @@ module Google
|
|
182
146
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
183
147
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
184
148
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
185
|
-
def create_project_build(project_id, build_object = nil,
|
149
|
+
def create_project_build(project_id, build_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
186
150
|
command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
|
187
151
|
command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
|
188
152
|
command.request_object = build_object
|
189
153
|
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
190
154
|
command.response_class = Google::Apis::CloudbuildV1::Operation
|
191
155
|
command.params['projectId'] = project_id unless project_id.nil?
|
192
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
193
156
|
command.query['fields'] = fields unless fields.nil?
|
157
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
194
158
|
execute_or_queue_command(command, &block)
|
195
159
|
end
|
196
160
|
|
197
|
-
#
|
198
|
-
# This API is experimental.
|
161
|
+
# Cancels a requested build in progress.
|
199
162
|
# @param [String] project_id
|
200
|
-
# ID of the project
|
201
|
-
# @param [
|
202
|
-
#
|
203
|
-
#
|
204
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
163
|
+
# ID of the project.
|
164
|
+
# @param [String] id
|
165
|
+
# ID of the build.
|
166
|
+
# @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
|
205
167
|
# @param [String] fields
|
206
168
|
# Selector specifying which fields to include in a partial response.
|
207
|
-
# @param [Google::Apis::RequestOptions] options
|
208
|
-
# Request-specific options
|
209
|
-
#
|
210
|
-
# @yield [result, err] Result & error if block supplied
|
211
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
212
|
-
# @yieldparam err [StandardError] error object if request failed
|
213
|
-
#
|
214
|
-
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
215
|
-
#
|
216
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
217
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
218
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
219
|
-
def create_project_trigger(project_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
220
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
|
221
|
-
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
222
|
-
command.request_object = build_trigger_object
|
223
|
-
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
224
|
-
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
225
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
226
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
227
|
-
command.query['fields'] = fields unless fields.nil?
|
228
|
-
execute_or_queue_command(command, &block)
|
229
|
-
end
|
230
|
-
|
231
|
-
# Deletes an BuildTrigger by its project ID and trigger ID.
|
232
|
-
# This API is experimental.
|
233
|
-
# @param [String] project_id
|
234
|
-
# ID of the project that owns the trigger.
|
235
|
-
# @param [String] trigger_id
|
236
|
-
# ID of the BuildTrigger to delete.
|
237
169
|
# @param [String] quota_user
|
238
170
|
# Available to use for quota purposes for server-side applications. Can be any
|
239
171
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
240
|
-
# @param [String] fields
|
241
|
-
# Selector specifying which fields to include in a partial response.
|
242
172
|
# @param [Google::Apis::RequestOptions] options
|
243
173
|
# Request-specific options
|
244
174
|
#
|
245
175
|
# @yield [result, err] Result & error if block supplied
|
246
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::
|
176
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
247
177
|
# @yieldparam err [StandardError] error object if request failed
|
248
178
|
#
|
249
|
-
# @return [Google::Apis::CloudbuildV1::
|
179
|
+
# @return [Google::Apis::CloudbuildV1::Build]
|
250
180
|
#
|
251
181
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
252
182
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
253
183
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
254
|
-
def
|
255
|
-
command = make_simple_command(:
|
256
|
-
command.
|
257
|
-
command.
|
184
|
+
def cancel_build(project_id, id, cancel_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
185
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
|
186
|
+
command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
|
187
|
+
command.request_object = cancel_build_request_object
|
188
|
+
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
189
|
+
command.response_class = Google::Apis::CloudbuildV1::Build
|
258
190
|
command.params['projectId'] = project_id unless project_id.nil?
|
259
|
-
command.params['
|
260
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
191
|
+
command.params['id'] = id unless id.nil?
|
261
192
|
command.query['fields'] = fields unless fields.nil?
|
193
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
262
194
|
execute_or_queue_command(command, &block)
|
263
195
|
end
|
264
196
|
|
@@ -268,11 +200,11 @@ module Google
|
|
268
200
|
# ID of the project that owns the trigger.
|
269
201
|
# @param [String] trigger_id
|
270
202
|
# ID of the BuildTrigger to get.
|
203
|
+
# @param [String] fields
|
204
|
+
# Selector specifying which fields to include in a partial response.
|
271
205
|
# @param [String] quota_user
|
272
206
|
# Available to use for quota purposes for server-side applications. Can be any
|
273
207
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
274
|
-
# @param [String] fields
|
275
|
-
# Selector specifying which fields to include in a partial response.
|
276
208
|
# @param [Google::Apis::RequestOptions] options
|
277
209
|
# Request-specific options
|
278
210
|
#
|
@@ -285,14 +217,14 @@ module Google
|
|
285
217
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
286
218
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
287
219
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
288
|
-
def get_project_trigger(project_id, trigger_id,
|
220
|
+
def get_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
|
289
221
|
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
290
222
|
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
291
223
|
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
292
224
|
command.params['projectId'] = project_id unless project_id.nil?
|
293
225
|
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
294
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
295
226
|
command.query['fields'] = fields unless fields.nil?
|
227
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
296
228
|
execute_or_queue_command(command, &block)
|
297
229
|
end
|
298
230
|
|
@@ -300,11 +232,11 @@ module Google
|
|
300
232
|
# This API is experimental.
|
301
233
|
# @param [String] project_id
|
302
234
|
# ID of the project for which to list BuildTriggers.
|
235
|
+
# @param [String] fields
|
236
|
+
# Selector specifying which fields to include in a partial response.
|
303
237
|
# @param [String] quota_user
|
304
238
|
# Available to use for quota purposes for server-side applications. Can be any
|
305
239
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
306
|
-
# @param [String] fields
|
307
|
-
# Selector specifying which fields to include in a partial response.
|
308
240
|
# @param [Google::Apis::RequestOptions] options
|
309
241
|
# Request-specific options
|
310
242
|
#
|
@@ -317,13 +249,13 @@ module Google
|
|
317
249
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
318
250
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
319
251
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
320
|
-
def list_project_triggers(project_id,
|
252
|
+
def list_project_triggers(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
321
253
|
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
|
322
254
|
command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
|
323
255
|
command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
|
324
256
|
command.params['projectId'] = project_id unless project_id.nil?
|
325
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
326
257
|
command.query['fields'] = fields unless fields.nil?
|
258
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
327
259
|
execute_or_queue_command(command, &block)
|
328
260
|
end
|
329
261
|
|
@@ -334,11 +266,11 @@ module Google
|
|
334
266
|
# @param [String] trigger_id
|
335
267
|
# ID of the BuildTrigger to update.
|
336
268
|
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
269
|
+
# @param [String] fields
|
270
|
+
# Selector specifying which fields to include in a partial response.
|
337
271
|
# @param [String] quota_user
|
338
272
|
# Available to use for quota purposes for server-side applications. Can be any
|
339
273
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
340
|
-
# @param [String] fields
|
341
|
-
# Selector specifying which fields to include in a partial response.
|
342
274
|
# @param [Google::Apis::RequestOptions] options
|
343
275
|
# Request-specific options
|
344
276
|
#
|
@@ -351,7 +283,7 @@ module Google
|
|
351
283
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
352
284
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
353
285
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
354
|
-
def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil,
|
286
|
+
def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
355
287
|
command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
356
288
|
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
357
289
|
command.request_object = build_trigger_object
|
@@ -359,29 +291,56 @@ module Google
|
|
359
291
|
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
360
292
|
command.params['projectId'] = project_id unless project_id.nil?
|
361
293
|
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
362
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
363
294
|
command.query['fields'] = fields unless fields.nil?
|
295
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
364
296
|
execute_or_queue_command(command, &block)
|
365
297
|
end
|
366
298
|
|
367
|
-
#
|
368
|
-
#
|
369
|
-
#
|
370
|
-
#
|
371
|
-
#
|
372
|
-
#
|
373
|
-
#
|
374
|
-
# the operation is not deleted; instead, it becomes an operation with
|
375
|
-
# an Operation.error value with a google.rpc.Status.code of 1,
|
376
|
-
# corresponding to `Code.CANCELLED`.
|
377
|
-
# @param [String] name
|
378
|
-
# The name of the operation resource to be cancelled.
|
379
|
-
# @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
|
299
|
+
# Creates a new BuildTrigger.
|
300
|
+
# This API is experimental.
|
301
|
+
# @param [String] project_id
|
302
|
+
# ID of the project for which to configure automatic builds.
|
303
|
+
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
304
|
+
# @param [String] fields
|
305
|
+
# Selector specifying which fields to include in a partial response.
|
380
306
|
# @param [String] quota_user
|
381
307
|
# Available to use for quota purposes for server-side applications. Can be any
|
382
308
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
309
|
+
# @param [Google::Apis::RequestOptions] options
|
310
|
+
# Request-specific options
|
311
|
+
#
|
312
|
+
# @yield [result, err] Result & error if block supplied
|
313
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
314
|
+
# @yieldparam err [StandardError] error object if request failed
|
315
|
+
#
|
316
|
+
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
317
|
+
#
|
318
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
319
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
320
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
321
|
+
def create_project_trigger(project_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
322
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
|
323
|
+
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
324
|
+
command.request_object = build_trigger_object
|
325
|
+
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
326
|
+
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
327
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
328
|
+
command.query['fields'] = fields unless fields.nil?
|
329
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
330
|
+
execute_or_queue_command(command, &block)
|
331
|
+
end
|
332
|
+
|
333
|
+
# Deletes an BuildTrigger by its project ID and trigger ID.
|
334
|
+
# This API is experimental.
|
335
|
+
# @param [String] project_id
|
336
|
+
# ID of the project that owns the trigger.
|
337
|
+
# @param [String] trigger_id
|
338
|
+
# ID of the BuildTrigger to delete.
|
383
339
|
# @param [String] fields
|
384
340
|
# Selector specifying which fields to include in a partial response.
|
341
|
+
# @param [String] quota_user
|
342
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
343
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
385
344
|
# @param [Google::Apis::RequestOptions] options
|
386
345
|
# Request-specific options
|
387
346
|
#
|
@@ -394,15 +353,14 @@ module Google
|
|
394
353
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
395
354
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
396
355
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
397
|
-
def
|
398
|
-
command = make_simple_command(:
|
399
|
-
command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
|
400
|
-
command.request_object = cancel_operation_request_object
|
356
|
+
def delete_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
|
357
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
401
358
|
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
402
359
|
command.response_class = Google::Apis::CloudbuildV1::Empty
|
403
|
-
command.params['
|
404
|
-
command.
|
360
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
361
|
+
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
405
362
|
command.query['fields'] = fields unless fields.nil?
|
363
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
406
364
|
execute_or_queue_command(command, &block)
|
407
365
|
end
|
408
366
|
|
@@ -412,17 +370,17 @@ module Google
|
|
412
370
|
# to use different resource name schemes, such as `users/*/operations`.
|
413
371
|
# @param [String] name
|
414
372
|
# The name of the operation collection.
|
373
|
+
# @param [Fixnum] page_size
|
374
|
+
# The standard list page size.
|
415
375
|
# @param [String] filter
|
416
376
|
# The standard list filter.
|
417
377
|
# @param [String] page_token
|
418
378
|
# The standard list page token.
|
419
|
-
# @param [
|
420
|
-
#
|
379
|
+
# @param [String] fields
|
380
|
+
# Selector specifying which fields to include in a partial response.
|
421
381
|
# @param [String] quota_user
|
422
382
|
# Available to use for quota purposes for server-side applications. Can be any
|
423
383
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
424
|
-
# @param [String] fields
|
425
|
-
# Selector specifying which fields to include in a partial response.
|
426
384
|
# @param [Google::Apis::RequestOptions] options
|
427
385
|
# Request-specific options
|
428
386
|
#
|
@@ -435,16 +393,16 @@ module Google
|
|
435
393
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
436
394
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
437
395
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
438
|
-
def list_operations(name,
|
396
|
+
def list_operations(name, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
439
397
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
440
398
|
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
|
441
399
|
command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
|
442
400
|
command.params['name'] = name unless name.nil?
|
401
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
443
402
|
command.query['filter'] = filter unless filter.nil?
|
444
403
|
command.query['pageToken'] = page_token unless page_token.nil?
|
445
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
446
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
447
404
|
command.query['fields'] = fields unless fields.nil?
|
405
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
448
406
|
execute_or_queue_command(command, &block)
|
449
407
|
end
|
450
408
|
|
@@ -453,11 +411,11 @@ module Google
|
|
453
411
|
# service.
|
454
412
|
# @param [String] name
|
455
413
|
# The name of the operation resource.
|
414
|
+
# @param [String] fields
|
415
|
+
# Selector specifying which fields to include in a partial response.
|
456
416
|
# @param [String] quota_user
|
457
417
|
# Available to use for quota purposes for server-side applications. Can be any
|
458
418
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
459
|
-
# @param [String] fields
|
460
|
-
# Selector specifying which fields to include in a partial response.
|
461
419
|
# @param [Google::Apis::RequestOptions] options
|
462
420
|
# Request-specific options
|
463
421
|
#
|
@@ -470,13 +428,55 @@ module Google
|
|
470
428
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
471
429
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
472
430
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
473
|
-
def get_operation(name,
|
431
|
+
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
474
432
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
475
433
|
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
476
434
|
command.response_class = Google::Apis::CloudbuildV1::Operation
|
477
435
|
command.params['name'] = name unless name.nil?
|
436
|
+
command.query['fields'] = fields unless fields.nil?
|
478
437
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
438
|
+
execute_or_queue_command(command, &block)
|
439
|
+
end
|
440
|
+
|
441
|
+
# Starts asynchronous cancellation on a long-running operation. The server
|
442
|
+
# makes a best effort to cancel the operation, but success is not
|
443
|
+
# guaranteed. If the server doesn't support this method, it returns
|
444
|
+
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
445
|
+
# Operations.GetOperation or
|
446
|
+
# other methods to check whether the cancellation succeeded or whether the
|
447
|
+
# operation completed despite cancellation. On successful cancellation,
|
448
|
+
# the operation is not deleted; instead, it becomes an operation with
|
449
|
+
# an Operation.error value with a google.rpc.Status.code of 1,
|
450
|
+
# corresponding to `Code.CANCELLED`.
|
451
|
+
# @param [String] name
|
452
|
+
# The name of the operation resource to be cancelled.
|
453
|
+
# @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
|
454
|
+
# @param [String] fields
|
455
|
+
# Selector specifying which fields to include in a partial response.
|
456
|
+
# @param [String] quota_user
|
457
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
458
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
459
|
+
# @param [Google::Apis::RequestOptions] options
|
460
|
+
# Request-specific options
|
461
|
+
#
|
462
|
+
# @yield [result, err] Result & error if block supplied
|
463
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
|
464
|
+
# @yieldparam err [StandardError] error object if request failed
|
465
|
+
#
|
466
|
+
# @return [Google::Apis::CloudbuildV1::Empty]
|
467
|
+
#
|
468
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
469
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
470
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
471
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
472
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
473
|
+
command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
|
474
|
+
command.request_object = cancel_operation_request_object
|
475
|
+
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
476
|
+
command.response_class = Google::Apis::CloudbuildV1::Empty
|
477
|
+
command.params['name'] = name unless name.nil?
|
479
478
|
command.query['fields'] = fields unless fields.nil?
|
479
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
480
480
|
execute_or_queue_command(command, &block)
|
481
481
|
end
|
482
482
|
|