google-api-client 0.9.8 → 0.9.15
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 +30 -0
- data/Gemfile +9 -1
- data/README.md +10 -2
- data/api_names.yaml +61 -110
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +160 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +46 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +6 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
- data/generated/google/apis/admin_directory_v1/service.rb +2 -2
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +2 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +371 -1
- data/generated/google/apis/analytics_v3/representations.rb +135 -0
- data/generated/google/apis/analytics_v3/service.rb +218 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +722 -48
- data/generated/google/apis/androidenterprise_v1/representations.rb +305 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +1180 -146
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +9 -8
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +430 -288
- data/generated/google/apis/appengine_v1beta5/representations.rb +84 -10
- data/generated/google/apis/appengine_v1beta5/service.rb +285 -25
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +254 -6
- data/generated/google/apis/bigquery_v2/representations.rb +85 -0
- data/generated/google/apis/bigquery_v2/service.rb +8 -2
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +77 -0
- data/generated/google/apis/books_v1/representations.rb +34 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +16 -4
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
- data/generated/google/apis/civicinfo_v2/service.rb +8 -2
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +176 -37
- data/generated/google/apis/classroom_v1/representations.rb +73 -9
- data/generated/google/apis/classroom_v1/service.rb +392 -37
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +320 -12
- data/generated/google/apis/cloudbuild_v1/representations.rb +136 -2
- data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
- data/generated/google/apis/clouddebugger_v2.rb +3 -6
- data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +157 -3
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +33 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +60 -21
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +22 -5
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +2 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +61 -39
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1620 -199
- data/generated/google/apis/compute_beta/representations.rb +563 -0
- data/generated/google/apis/compute_beta/service.rb +5123 -2690
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1717 -295
- data/generated/google/apis/compute_v1/representations.rb +536 -0
- data/generated/google/apis/compute_v1/service.rb +2038 -1041
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +709 -1
- data/generated/google/apis/content_v2/representations.rb +319 -0
- data/generated/google/apis/content_v2/service.rb +244 -0
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +162 -50
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11585 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9006 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- 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 +11 -3
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +8 -2
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +36 -16
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +4 -1
- data/generated/google/apis/fitness_v1.rb +8 -2
- data/generated/google/apis/fitness_v1/classes.rb +64 -6
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +2 -4
- data/generated/google/apis/genomics_v1/classes.rb +111 -9
- data/generated/google/apis/genomics_v1/representations.rb +36 -0
- data/generated/google/apis/genomics_v1/service.rb +4 -7
- data/generated/google/apis/gmail_v1.rb +7 -1
- data/generated/google/apis/gmail_v1/classes.rb +540 -0
- data/generated/google/apis/gmail_v1/representations.rb +213 -0
- data/generated/google/apis/gmail_v1/service.rb +898 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +154 -1
- data/generated/google/apis/identitytoolkit_v3/representations.rb +35 -0
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +596 -0
- data/generated/google/apis/language_v1beta1/representations.rb +289 -0
- data/generated/google/apis/language_v1beta1/service.rb +154 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1328 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +711 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -0
- data/generated/google/apis/script_v1/representations.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +35 -0
- data/generated/google/apis/sheets_v4/representations.rb +16 -0
- data/generated/google/apis/sheets_v4/service.rb +55 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +521 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +219 -0
- data/generated/google/apis/speech_v1beta1/service.rb +268 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +26 -8
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -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/classes.rb +19 -10
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +10 -9
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +163 -2
- data/generated/google/apis/youtube_v3/representations.rb +82 -0
- data/generated/google/apis/youtube_v3/service.rb +6 -2
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/google-api-client.gemspec +2 -1
- data/lib/google/apis/core/api_command.rb +4 -0
- data/lib/google/apis/core/base_service.rb +10 -4
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +2 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/sync.rb +71 -0
- metadata +43 -13
|
@@ -46,6 +46,176 @@ module Google
|
|
|
46
46
|
super('https://cloudbuild.googleapis.com/', '')
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
+
# Creates a new BuildTrigger.
|
|
50
|
+
# This API is experimental.
|
|
51
|
+
# @param [String] project_id
|
|
52
|
+
# ID of the project for which to configure automatic builds.
|
|
53
|
+
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
|
54
|
+
# @param [String] quota_user
|
|
55
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
56
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
57
|
+
# @param [String] fields
|
|
58
|
+
# Selector specifying which fields to include in a partial response.
|
|
59
|
+
# @param [Google::Apis::RequestOptions] options
|
|
60
|
+
# Request-specific options
|
|
61
|
+
#
|
|
62
|
+
# @yield [result, err] Result & error if block supplied
|
|
63
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
|
64
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
65
|
+
#
|
|
66
|
+
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
|
67
|
+
#
|
|
68
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
69
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
70
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
71
|
+
def create_project_trigger(project_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
72
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
|
|
73
|
+
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
74
|
+
command.request_object = build_trigger_object
|
|
75
|
+
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
76
|
+
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
|
77
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
78
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
79
|
+
command.query['fields'] = fields unless fields.nil?
|
|
80
|
+
execute_or_queue_command(command, &block)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Gets information about a BuildTrigger.
|
|
84
|
+
# This API is experimental.
|
|
85
|
+
# @param [String] project_id
|
|
86
|
+
# ID of the project that owns the trigger.
|
|
87
|
+
# @param [String] trigger_id
|
|
88
|
+
# ID of the BuildTrigger to get.
|
|
89
|
+
# @param [String] quota_user
|
|
90
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
91
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
92
|
+
# @param [String] fields
|
|
93
|
+
# Selector specifying which fields to include in a partial response.
|
|
94
|
+
# @param [Google::Apis::RequestOptions] options
|
|
95
|
+
# Request-specific options
|
|
96
|
+
#
|
|
97
|
+
# @yield [result, err] Result & error if block supplied
|
|
98
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
|
99
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
100
|
+
#
|
|
101
|
+
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
|
102
|
+
#
|
|
103
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
104
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
105
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
106
|
+
def get_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
|
|
107
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
|
108
|
+
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
109
|
+
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
|
110
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
111
|
+
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
|
112
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
113
|
+
command.query['fields'] = fields unless fields.nil?
|
|
114
|
+
execute_or_queue_command(command, &block)
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Lists existing BuildTrigger.
|
|
118
|
+
# This API is experimental.
|
|
119
|
+
# @param [String] project_id
|
|
120
|
+
# ID of the project for which to list BuildTriggers.
|
|
121
|
+
# @param [String] quota_user
|
|
122
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
123
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
124
|
+
# @param [String] fields
|
|
125
|
+
# Selector specifying which fields to include in a partial response.
|
|
126
|
+
# @param [Google::Apis::RequestOptions] options
|
|
127
|
+
# Request-specific options
|
|
128
|
+
#
|
|
129
|
+
# @yield [result, err] Result & error if block supplied
|
|
130
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildTriggersResponse] parsed result object
|
|
131
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
132
|
+
#
|
|
133
|
+
# @return [Google::Apis::CloudbuildV1::ListBuildTriggersResponse]
|
|
134
|
+
#
|
|
135
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
136
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
137
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
138
|
+
def list_project_triggers(project_id, quota_user: nil, fields: nil, options: nil, &block)
|
|
139
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
|
|
140
|
+
command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
|
|
141
|
+
command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
|
|
142
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
143
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
144
|
+
command.query['fields'] = fields unless fields.nil?
|
|
145
|
+
execute_or_queue_command(command, &block)
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Deletes an BuildTrigger by its project ID and trigger ID.
|
|
149
|
+
# This API is experimental.
|
|
150
|
+
# @param [String] project_id
|
|
151
|
+
# ID of the project that owns the trigger.
|
|
152
|
+
# @param [String] trigger_id
|
|
153
|
+
# ID of the BuildTrigger to delete.
|
|
154
|
+
# @param [String] quota_user
|
|
155
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
156
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
157
|
+
# @param [String] fields
|
|
158
|
+
# Selector specifying which fields to include in a partial response.
|
|
159
|
+
# @param [Google::Apis::RequestOptions] options
|
|
160
|
+
# Request-specific options
|
|
161
|
+
#
|
|
162
|
+
# @yield [result, err] Result & error if block supplied
|
|
163
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
|
|
164
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
165
|
+
#
|
|
166
|
+
# @return [Google::Apis::CloudbuildV1::Empty]
|
|
167
|
+
#
|
|
168
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
169
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
170
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
171
|
+
def delete_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
|
|
172
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
|
173
|
+
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
|
174
|
+
command.response_class = Google::Apis::CloudbuildV1::Empty
|
|
175
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
176
|
+
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
|
177
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
178
|
+
command.query['fields'] = fields unless fields.nil?
|
|
179
|
+
execute_or_queue_command(command, &block)
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Updates an BuildTrigger by its project ID and trigger ID.
|
|
183
|
+
# This API is experimental.
|
|
184
|
+
# @param [String] project_id
|
|
185
|
+
# ID of the project that owns the trigger.
|
|
186
|
+
# @param [String] trigger_id
|
|
187
|
+
# ID of the BuildTrigger to update.
|
|
188
|
+
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
|
189
|
+
# @param [String] quota_user
|
|
190
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
191
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
192
|
+
# @param [String] fields
|
|
193
|
+
# Selector specifying which fields to include in a partial response.
|
|
194
|
+
# @param [Google::Apis::RequestOptions] options
|
|
195
|
+
# Request-specific options
|
|
196
|
+
#
|
|
197
|
+
# @yield [result, err] Result & error if block supplied
|
|
198
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
|
199
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
200
|
+
#
|
|
201
|
+
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
|
202
|
+
#
|
|
203
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
204
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
205
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
206
|
+
def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
207
|
+
command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
|
208
|
+
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
209
|
+
command.request_object = build_trigger_object
|
|
210
|
+
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
211
|
+
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
|
212
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
213
|
+
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
|
214
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
215
|
+
command.query['fields'] = fields unless fields.nil?
|
|
216
|
+
execute_or_queue_command(command, &block)
|
|
217
|
+
end
|
|
218
|
+
|
|
49
219
|
# Starts a build with the specified configuration.
|
|
50
220
|
# The long-running Operation returned by this method will include the ID of
|
|
51
221
|
# the build, which can be passed to GetBuild to determine its status (e.g.,
|
|
@@ -124,6 +294,8 @@ module Google
|
|
|
124
294
|
# ID of the project.
|
|
125
295
|
# @param [Fixnum] page_size
|
|
126
296
|
# Number of results to return in the list.
|
|
297
|
+
# @param [String] filter
|
|
298
|
+
# The raw filter text to constrain the results.
|
|
127
299
|
# @param [String] page_token
|
|
128
300
|
# Token to provide to skip to a particular spot in the list.
|
|
129
301
|
# @param [String] quota_user
|
|
@@ -143,12 +315,13 @@ module Google
|
|
|
143
315
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
144
316
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
145
317
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
146
|
-
def list_project_builds(project_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
318
|
+
def list_project_builds(project_id, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
147
319
|
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
|
|
148
320
|
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
|
|
149
321
|
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
|
|
150
322
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
151
323
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
324
|
+
command.query['filter'] = filter unless filter.nil?
|
|
152
325
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
153
326
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
154
327
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -18,24 +18,21 @@ require 'google/apis/clouddebugger_v2/representations.rb'
|
|
|
18
18
|
|
|
19
19
|
module Google
|
|
20
20
|
module Apis
|
|
21
|
-
#
|
|
21
|
+
# Stackdriver Debugger API
|
|
22
22
|
#
|
|
23
23
|
# Examines the call stack and variables of a running application without
|
|
24
24
|
# stopping or slowing it down.
|
|
25
25
|
#
|
|
26
|
-
# @see
|
|
26
|
+
# @see http://cloud.google.com/debugger
|
|
27
27
|
module ClouddebuggerV2
|
|
28
28
|
VERSION = 'V2'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20160810'
|
|
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'
|
|
33
33
|
|
|
34
34
|
# Manage cloud debugger
|
|
35
35
|
AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger'
|
|
36
|
-
|
|
37
|
-
# Manage active breakpoints in cloud debugger
|
|
38
|
-
AUTH_CLOUD_DEBUGLETCONTROLLER = 'https://www.googleapis.com/auth/cloud_debugletcontroller'
|
|
39
36
|
end
|
|
40
37
|
end
|
|
41
38
|
end
|
|
@@ -20,7 +20,7 @@ require 'google/apis/errors'
|
|
|
20
20
|
module Google
|
|
21
21
|
module Apis
|
|
22
22
|
module ClouddebuggerV2
|
|
23
|
-
#
|
|
23
|
+
# Stackdriver Debugger API
|
|
24
24
|
#
|
|
25
25
|
# Examines the call stack and variables of a running application without
|
|
26
26
|
# stopping or slowing it down.
|
|
@@ -29,10 +29,10 @@ module Google
|
|
|
29
29
|
# require 'google/apis/clouddebugger_v2'
|
|
30
30
|
#
|
|
31
31
|
# Clouddebugger = Google::Apis::ClouddebuggerV2 # Alias the module
|
|
32
|
-
# service = Clouddebugger::
|
|
32
|
+
# service = Clouddebugger::CloudDebuggerService.new
|
|
33
33
|
#
|
|
34
|
-
# @see
|
|
35
|
-
class
|
|
34
|
+
# @see http://cloud.google.com/debugger
|
|
35
|
+
class CloudDebuggerService < Google::Apis::Core::BaseService
|
|
36
36
|
# @return [String]
|
|
37
37
|
# API key. Your API key identifies your project and provides you with API access,
|
|
38
38
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/monitoring/v2beta2/
|
|
26
26
|
module CloudmonitoringV2beta2
|
|
27
27
|
VERSION = 'V2beta2'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20160718'
|
|
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'
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/resource-manager
|
|
27
27
|
module CloudresourcemanagerV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20160617'
|
|
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'
|
|
@@ -44,9 +44,10 @@ module Google
|
|
|
44
44
|
# @return [String]
|
|
45
45
|
attr_accessor :lifecycle_state
|
|
46
46
|
|
|
47
|
-
# The user-assigned name of the Project. It must be 4 to 30 characters.
|
|
48
|
-
# characters are: lowercase and uppercase letters, numbers, hyphen,
|
|
49
|
-
# double-quote, space, and exclamation point. Example: My Project
|
|
47
|
+
# The user-assigned display name of the Project. It must be 4 to 30 characters.
|
|
48
|
+
# Allowed characters are: lowercase and uppercase letters, numbers, hyphen,
|
|
49
|
+
# single-quote, double-quote, space, and exclamation point. Example: My Project
|
|
50
|
+
# Read-write.
|
|
50
51
|
# Corresponds to the JSON property `name`
|
|
51
52
|
# @return [String]
|
|
52
53
|
attr_accessor :name
|
|
@@ -350,6 +351,159 @@ module Google
|
|
|
350
351
|
@permissions = args[:permissions] if args.key?(:permissions)
|
|
351
352
|
end
|
|
352
353
|
end
|
|
354
|
+
|
|
355
|
+
# This resource represents a long-running operation that is the result of a
|
|
356
|
+
# network API call.
|
|
357
|
+
class Operation
|
|
358
|
+
include Google::Apis::Core::Hashable
|
|
359
|
+
|
|
360
|
+
# The server-assigned name, which is only unique within the same service that
|
|
361
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
|
362
|
+
# have the format of `operations/some/unique/name`.
|
|
363
|
+
# Corresponds to the JSON property `name`
|
|
364
|
+
# @return [String]
|
|
365
|
+
attr_accessor :name
|
|
366
|
+
|
|
367
|
+
# Service-specific metadata associated with the operation. It typically contains
|
|
368
|
+
# progress information and common metadata such as create time. Some services
|
|
369
|
+
# might not provide such metadata. Any method that returns a long-running
|
|
370
|
+
# operation should document the metadata type, if any.
|
|
371
|
+
# Corresponds to the JSON property `metadata`
|
|
372
|
+
# @return [Hash<String,Object>]
|
|
373
|
+
attr_accessor :metadata
|
|
374
|
+
|
|
375
|
+
# If the value is `false`, it means the operation is still in progress. If true,
|
|
376
|
+
# the operation is completed, and either `error` or `response` is available.
|
|
377
|
+
# Corresponds to the JSON property `done`
|
|
378
|
+
# @return [Boolean]
|
|
379
|
+
attr_accessor :done
|
|
380
|
+
alias_method :done?, :done
|
|
381
|
+
|
|
382
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
383
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
|
384
|
+
# gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
|
|
385
|
+
# use and understand for most users - Flexible enough to meet unexpected needs #
|
|
386
|
+
# Overview The `Status` message contains three pieces of data: error code, error
|
|
387
|
+
# message, and error details. The error code should be an enum value of google.
|
|
388
|
+
# rpc.Code, but it may accept additional error codes if needed. The error
|
|
389
|
+
# message should be a developer-facing English message that helps developers *
|
|
390
|
+
# understand* and *resolve* the error. If a localized user-facing error message
|
|
391
|
+
# is needed, put the localized message in the error details or localize it in
|
|
392
|
+
# the client. The optional error details may contain arbitrary information about
|
|
393
|
+
# the error. There is a predefined set of error detail types in the package `
|
|
394
|
+
# google.rpc` which can be used for common error conditions. # Language mapping
|
|
395
|
+
# The `Status` message is the logical representation of the error model, but it
|
|
396
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
|
397
|
+
# exposed in different client libraries and different wire protocols, it can be
|
|
398
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
399
|
+
# in Java, but more likely mapped to some error codes in C. # Other uses The
|
|
400
|
+
# error model and the `Status` message can be used in a variety of environments,
|
|
401
|
+
# either with or without APIs, to provide a consistent developer experience
|
|
402
|
+
# across different environments. Example uses of this error model include: -
|
|
403
|
+
# Partial errors. If a service needs to return partial errors to the client, it
|
|
404
|
+
# may embed the `Status` in the normal response to indicate the partial errors. -
|
|
405
|
+
# Workflow errors. A typical workflow has multiple steps. Each step may have a `
|
|
406
|
+
# Status` message for error reporting purpose. - Batch operations. If a client
|
|
407
|
+
# uses batch request and batch response, the `Status` message should be used
|
|
408
|
+
# directly inside batch response, one for each error sub-response. -
|
|
409
|
+
# Asynchronous operations. If an API call embeds asynchronous operation results
|
|
410
|
+
# in its response, the status of those operations should be represented directly
|
|
411
|
+
# using the `Status` message. - Logging. If some API errors are stored in logs,
|
|
412
|
+
# the message `Status` could be used directly after any stripping needed for
|
|
413
|
+
# security/privacy reasons.
|
|
414
|
+
# Corresponds to the JSON property `error`
|
|
415
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Status]
|
|
416
|
+
attr_accessor :error
|
|
417
|
+
|
|
418
|
+
# The normal response of the operation in case of success. If the original
|
|
419
|
+
# method returns no data on success, such as `Delete`, the response is `google.
|
|
420
|
+
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
|
421
|
+
# the response should be the resource. For other methods, the response should
|
|
422
|
+
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
|
423
|
+
# example, if the original method name is `TakeSnapshot()`, the inferred
|
|
424
|
+
# response type is `TakeSnapshotResponse`.
|
|
425
|
+
# Corresponds to the JSON property `response`
|
|
426
|
+
# @return [Hash<String,Object>]
|
|
427
|
+
attr_accessor :response
|
|
428
|
+
|
|
429
|
+
def initialize(**args)
|
|
430
|
+
update!(**args)
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
# Update properties of this object
|
|
434
|
+
def update!(**args)
|
|
435
|
+
@name = args[:name] if args.key?(:name)
|
|
436
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
437
|
+
@done = args[:done] if args.key?(:done)
|
|
438
|
+
@error = args[:error] if args.key?(:error)
|
|
439
|
+
@response = args[:response] if args.key?(:response)
|
|
440
|
+
end
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
444
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
|
445
|
+
# gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
|
|
446
|
+
# use and understand for most users - Flexible enough to meet unexpected needs #
|
|
447
|
+
# Overview The `Status` message contains three pieces of data: error code, error
|
|
448
|
+
# message, and error details. The error code should be an enum value of google.
|
|
449
|
+
# rpc.Code, but it may accept additional error codes if needed. The error
|
|
450
|
+
# message should be a developer-facing English message that helps developers *
|
|
451
|
+
# understand* and *resolve* the error. If a localized user-facing error message
|
|
452
|
+
# is needed, put the localized message in the error details or localize it in
|
|
453
|
+
# the client. The optional error details may contain arbitrary information about
|
|
454
|
+
# the error. There is a predefined set of error detail types in the package `
|
|
455
|
+
# google.rpc` which can be used for common error conditions. # Language mapping
|
|
456
|
+
# The `Status` message is the logical representation of the error model, but it
|
|
457
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
|
458
|
+
# exposed in different client libraries and different wire protocols, it can be
|
|
459
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
460
|
+
# in Java, but more likely mapped to some error codes in C. # Other uses The
|
|
461
|
+
# error model and the `Status` message can be used in a variety of environments,
|
|
462
|
+
# either with or without APIs, to provide a consistent developer experience
|
|
463
|
+
# across different environments. Example uses of this error model include: -
|
|
464
|
+
# Partial errors. If a service needs to return partial errors to the client, it
|
|
465
|
+
# may embed the `Status` in the normal response to indicate the partial errors. -
|
|
466
|
+
# Workflow errors. A typical workflow has multiple steps. Each step may have a `
|
|
467
|
+
# Status` message for error reporting purpose. - Batch operations. If a client
|
|
468
|
+
# uses batch request and batch response, the `Status` message should be used
|
|
469
|
+
# directly inside batch response, one for each error sub-response. -
|
|
470
|
+
# Asynchronous operations. If an API call embeds asynchronous operation results
|
|
471
|
+
# in its response, the status of those operations should be represented directly
|
|
472
|
+
# using the `Status` message. - Logging. If some API errors are stored in logs,
|
|
473
|
+
# the message `Status` could be used directly after any stripping needed for
|
|
474
|
+
# security/privacy reasons.
|
|
475
|
+
class Status
|
|
476
|
+
include Google::Apis::Core::Hashable
|
|
477
|
+
|
|
478
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
|
479
|
+
# Corresponds to the JSON property `code`
|
|
480
|
+
# @return [Fixnum]
|
|
481
|
+
attr_accessor :code
|
|
482
|
+
|
|
483
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
|
484
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
|
485
|
+
# field, or localized by the client.
|
|
486
|
+
# Corresponds to the JSON property `message`
|
|
487
|
+
# @return [String]
|
|
488
|
+
attr_accessor :message
|
|
489
|
+
|
|
490
|
+
# A list of messages that carry the error details. There will be a common set of
|
|
491
|
+
# message types for APIs to use.
|
|
492
|
+
# Corresponds to the JSON property `details`
|
|
493
|
+
# @return [Array<Hash<String,Object>>]
|
|
494
|
+
attr_accessor :details
|
|
495
|
+
|
|
496
|
+
def initialize(**args)
|
|
497
|
+
update!(**args)
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
# Update properties of this object
|
|
501
|
+
def update!(**args)
|
|
502
|
+
@code = args[:code] if args.key?(:code)
|
|
503
|
+
@message = args[:message] if args.key?(:message)
|
|
504
|
+
@details = args[:details] if args.key?(:details)
|
|
505
|
+
end
|
|
506
|
+
end
|
|
353
507
|
end
|
|
354
508
|
end
|
|
355
509
|
end
|
|
@@ -88,6 +88,18 @@ module Google
|
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
|
89
89
|
end
|
|
90
90
|
|
|
91
|
+
class Operation
|
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
|
+
|
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
class Status
|
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
|
+
|
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
101
|
+
end
|
|
102
|
+
|
|
91
103
|
class Project
|
|
92
104
|
# @private
|
|
93
105
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -176,6 +188,27 @@ module Google
|
|
|
176
188
|
collection :permissions, as: 'permissions'
|
|
177
189
|
end
|
|
178
190
|
end
|
|
191
|
+
|
|
192
|
+
class Operation
|
|
193
|
+
# @private
|
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
195
|
+
property :name, as: 'name'
|
|
196
|
+
hash :metadata, as: 'metadata'
|
|
197
|
+
property :done, as: 'done'
|
|
198
|
+
property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
|
|
199
|
+
|
|
200
|
+
hash :response, as: 'response'
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
class Status
|
|
205
|
+
# @private
|
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
207
|
+
property :code, as: 'code'
|
|
208
|
+
property :message, as: 'message'
|
|
209
|
+
collection :details, as: 'details'
|
|
210
|
+
end
|
|
211
|
+
end
|
|
179
212
|
end
|
|
180
213
|
end
|
|
181
214
|
end
|