google-api-client 0.13.0 → 0.13.1
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 +3 -0
- data/README.md +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +4 -1
- 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.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
- data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
- data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +747 -747
- data/generated/google/apis/appengine_v1/representations.rb +158 -158
- data/generated/google/apis/appengine_v1/service.rb +214 -214
- 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 +6 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +517 -515
- data/generated/google/apis/classroom_v1/representations.rb +147 -147
- data/generated/google/apis/classroom_v1/service.rb +1144 -1143
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
- data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
- data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
- data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
- data/generated/google/apis/cloudkms_v1/service.rb +276 -276
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +82 -6
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +1177 -834
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +371 -1
- data/generated/google/apis/compute_v1/representations.rb +139 -0
- data/generated/google/apis/compute_v1/service.rb +257 -9
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1122 -826
- data/generated/google/apis/container_v1/representations.rb +279 -135
- data/generated/google/apis/container_v1/service.rb +440 -98
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
- data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
- data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +450 -431
- data/generated/google/apis/dataproc_v1/representations.rb +92 -92
- data/generated/google/apis/dataproc_v1/service.rb +200 -200
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +397 -397
- data/generated/google/apis/datastore_v1/representations.rb +100 -100
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
- data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
- data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
- data/generated/google/apis/firebaserules_v1/service.rb +151 -151
- 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 +9 -9
- data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
- data/generated/google/apis/genomics_v1/representations.rb +306 -306
- data/generated/google/apis/genomics_v1/service.rb +1172 -1172
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +243 -243
- data/generated/google/apis/iam_v1/representations.rb +79 -79
- data/generated/google/apis/iam_v1/service.rb +137 -137
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +451 -451
- data/generated/google/apis/language_v1/representations.rb +103 -103
- data/generated/google/apis/language_v1/service.rb +49 -49
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +459 -459
- data/generated/google/apis/language_v1beta1/representations.rb +110 -110
- data/generated/google/apis/language_v1beta1/service.rb +43 -43
- data/generated/google/apis/logging_v2.rb +8 -8
- data/generated/google/apis/logging_v2/classes.rb +915 -915
- data/generated/google/apis/logging_v2/representations.rb +142 -142
- data/generated/google/apis/logging_v2/service.rb +415 -415
- data/generated/google/apis/logging_v2beta1.rb +8 -8
- data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
- data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
- data/generated/google/apis/logging_v2beta1/service.rb +221 -221
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
- data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
- data/generated/google/apis/manufacturers_v1/service.rb +101 -4
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +709 -673
- data/generated/google/apis/ml_v1/representations.rb +154 -151
- data/generated/google/apis/ml_v1/service.rb +341 -354
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +869 -869
- data/generated/google/apis/monitoring_v3/representations.rb +171 -171
- data/generated/google/apis/monitoring_v3/service.rb +340 -340
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1569 -1569
- data/generated/google/apis/partners_v2/representations.rb +256 -256
- data/generated/google/apis/partners_v2/service.rb +530 -530
- data/generated/google/apis/people_v1.rb +7 -7
- data/generated/google/apis/people_v1/classes.rb +1287 -946
- data/generated/google/apis/people_v1/representations.rb +355 -203
- data/generated/google/apis/people_v1/service.rb +409 -32
- 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.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +286 -287
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +178 -178
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
- data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/script_v1.rb +4 -4
- data/generated/google/apis/script_v1/classes.rb +172 -172
- data/generated/google/apis/script_v1/representations.rb +41 -41
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
- data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
- data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
- data/generated/google/apis/servicemanagement_v1.rb +6 -6
- data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
- data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
- data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
- data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
- data/generated/google/apis/serviceuser_v1/service.rb +59 -59
- data/generated/google/apis/sheets_v4.rb +5 -5
- data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
- data/generated/google/apis/sheets_v4/representations.rb +957 -940
- data/generated/google/apis/sheets_v4/service.rb +175 -175
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2932 -2905
- data/generated/google/apis/slides_v1/representations.rb +709 -694
- data/generated/google/apis/slides_v1/service.rb +50 -50
- data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
- data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
- data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
- data/generated/google/apis/spanner_v1.rb +7 -1
- data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
- data/generated/google/apis/spanner_v1/representations.rb +342 -323
- data/generated/google/apis/spanner_v1/service.rb +502 -492
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
- data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
- data/generated/google/apis/speech_v1beta1/service.rb +91 -91
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
- data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
- data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
- data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
- data/generated/google/apis/translate_v2/classes.rb +107 -107
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +81 -81
- data/generated/google/apis/vision_v1.rb +4 -1
- data/generated/google/apis/vision_v1/classes.rb +527 -527
- data/generated/google/apis/vision_v1/representations.rb +115 -115
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
- data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
- data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/analytics.rb +2 -2
- metadata +2 -2
|
@@ -47,96 +47,9 @@ module Google
|
|
|
47
47
|
@batch_path = 'batch'
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
#
|
|
51
|
-
# entries. Log entries written shortly before the delete operation might not be
|
|
52
|
-
# deleted.
|
|
53
|
-
# @param [String] log_name
|
|
54
|
-
# Required. The resource name of the log to delete:
|
|
55
|
-
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
|
56
|
-
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
57
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
|
58
|
-
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
|
59
|
-
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
60
|
-
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
61
|
-
# 2Factivity". For more information about log names, see LogEntry.
|
|
62
|
-
# @param [String] fields
|
|
63
|
-
# Selector specifying which fields to include in a partial response.
|
|
64
|
-
# @param [String] quota_user
|
|
65
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
66
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
67
|
-
# @param [Google::Apis::RequestOptions] options
|
|
68
|
-
# Request-specific options
|
|
69
|
-
#
|
|
70
|
-
# @yield [result, err] Result & error if block supplied
|
|
71
|
-
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
72
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
73
|
-
#
|
|
74
|
-
# @return [Google::Apis::LoggingV2::Empty]
|
|
75
|
-
#
|
|
76
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
77
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
78
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
79
|
-
def delete_project_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
80
|
-
command = make_simple_command(:delete, 'v2/{+logName}', options)
|
|
81
|
-
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
82
|
-
command.response_class = Google::Apis::LoggingV2::Empty
|
|
83
|
-
command.params['logName'] = log_name unless log_name.nil?
|
|
84
|
-
command.query['fields'] = fields unless fields.nil?
|
|
85
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
86
|
-
execute_or_queue_command(command, &block)
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
# Lists the logs in projects, organizations, folders, or billing accounts. Only
|
|
90
|
-
# logs that have entries are listed.
|
|
91
|
-
# @param [String] parent
|
|
92
|
-
# Required. The resource name that owns the logs:
|
|
93
|
-
# "projects/[PROJECT_ID]"
|
|
94
|
-
# "organizations/[ORGANIZATION_ID]"
|
|
95
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
96
|
-
# "folders/[FOLDER_ID]"
|
|
97
|
-
# @param [String] page_token
|
|
98
|
-
# Optional. If present, then retrieve the next batch of results from the
|
|
99
|
-
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
100
|
-
# from the previous response. The values of other method parameters should be
|
|
101
|
-
# identical to those in the previous call.
|
|
102
|
-
# @param [Fixnum] page_size
|
|
103
|
-
# Optional. The maximum number of results to return from this request. Non-
|
|
104
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
|
105
|
-
# indicates that more results might be available.
|
|
106
|
-
# @param [String] fields
|
|
107
|
-
# Selector specifying which fields to include in a partial response.
|
|
108
|
-
# @param [String] quota_user
|
|
109
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
110
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
111
|
-
# @param [Google::Apis::RequestOptions] options
|
|
112
|
-
# Request-specific options
|
|
113
|
-
#
|
|
114
|
-
# @yield [result, err] Result & error if block supplied
|
|
115
|
-
# @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
|
|
116
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
117
|
-
#
|
|
118
|
-
# @return [Google::Apis::LoggingV2::ListLogsResponse]
|
|
119
|
-
#
|
|
120
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
121
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
122
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
123
|
-
def list_project_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
124
|
-
command = make_simple_command(:get, 'v2/{+parent}/logs', options)
|
|
125
|
-
command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
|
|
126
|
-
command.response_class = Google::Apis::LoggingV2::ListLogsResponse
|
|
127
|
-
command.params['parent'] = parent unless parent.nil?
|
|
128
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
129
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
130
|
-
command.query['fields'] = fields unless fields.nil?
|
|
131
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
132
|
-
execute_or_queue_command(command, &block)
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
# Deletes a sink. If the sink has a unique writer_identity, then that service
|
|
136
|
-
# account is also deleted.
|
|
50
|
+
# Gets a sink.
|
|
137
51
|
# @param [String] sink_name
|
|
138
|
-
# Required. The
|
|
139
|
-
# resource and the sink identifier:
|
|
52
|
+
# Required. The resource name of the sink:
|
|
140
53
|
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
141
54
|
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
142
55
|
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
@@ -151,18 +64,18 @@ module Google
|
|
|
151
64
|
# Request-specific options
|
|
152
65
|
#
|
|
153
66
|
# @yield [result, err] Result & error if block supplied
|
|
154
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
67
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
|
155
68
|
# @yieldparam err [StandardError] error object if request failed
|
|
156
69
|
#
|
|
157
|
-
# @return [Google::Apis::LoggingV2::
|
|
70
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
|
158
71
|
#
|
|
159
72
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
160
73
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
161
74
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
162
|
-
def
|
|
163
|
-
command = make_simple_command(:
|
|
164
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
165
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
75
|
+
def get_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
76
|
+
command = make_simple_command(:get, 'v2/{+sinkName}', options)
|
|
77
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
78
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
166
79
|
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
167
80
|
command.query['fields'] = fields unless fields.nil?
|
|
168
81
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -214,41 +127,6 @@ module Google
|
|
|
214
127
|
execute_or_queue_command(command, &block)
|
|
215
128
|
end
|
|
216
129
|
|
|
217
|
-
# Gets a sink.
|
|
218
|
-
# @param [String] sink_name
|
|
219
|
-
# Required. The resource name of the sink:
|
|
220
|
-
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
221
|
-
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
222
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
223
|
-
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
224
|
-
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
225
|
-
# @param [String] fields
|
|
226
|
-
# Selector specifying which fields to include in a partial response.
|
|
227
|
-
# @param [String] quota_user
|
|
228
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
229
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
230
|
-
# @param [Google::Apis::RequestOptions] options
|
|
231
|
-
# Request-specific options
|
|
232
|
-
#
|
|
233
|
-
# @yield [result, err] Result & error if block supplied
|
|
234
|
-
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
|
235
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
236
|
-
#
|
|
237
|
-
# @return [Google::Apis::LoggingV2::LogSink]
|
|
238
|
-
#
|
|
239
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
240
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
241
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
242
|
-
def get_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
243
|
-
command = make_simple_command(:get, 'v2/{+sinkName}', options)
|
|
244
|
-
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
245
|
-
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
246
|
-
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
247
|
-
command.query['fields'] = fields unless fields.nil?
|
|
248
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
249
|
-
execute_or_queue_command(command, &block)
|
|
250
|
-
end
|
|
251
|
-
|
|
252
130
|
# Updates a sink. If the named sink doesn't exist, then this method is identical
|
|
253
131
|
# to sinks.create. If the named sink does exist, then this method replaces the
|
|
254
132
|
# following fields in the existing sink with values from the new sink:
|
|
@@ -357,10 +235,16 @@ module Google
|
|
|
357
235
|
execute_or_queue_command(command, &block)
|
|
358
236
|
end
|
|
359
237
|
|
|
360
|
-
# Deletes a
|
|
361
|
-
#
|
|
362
|
-
#
|
|
363
|
-
#
|
|
238
|
+
# Deletes a sink. If the sink has a unique writer_identity, then that service
|
|
239
|
+
# account is also deleted.
|
|
240
|
+
# @param [String] sink_name
|
|
241
|
+
# Required. The full resource name of the sink to delete, including the parent
|
|
242
|
+
# resource and the sink identifier:
|
|
243
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
244
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
245
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
246
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
247
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
364
248
|
# @param [String] fields
|
|
365
249
|
# Selector specifying which fields to include in a partial response.
|
|
366
250
|
# @param [String] quota_user
|
|
@@ -378,29 +262,72 @@ module Google
|
|
|
378
262
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
379
263
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
380
264
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
381
|
-
def
|
|
382
|
-
command = make_simple_command(:delete, 'v2/{+
|
|
265
|
+
def delete_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
266
|
+
command = make_simple_command(:delete, 'v2/{+sinkName}', options)
|
|
383
267
|
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
384
268
|
command.response_class = Google::Apis::LoggingV2::Empty
|
|
385
|
-
command.params['
|
|
269
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
386
270
|
command.query['fields'] = fields unless fields.nil?
|
|
387
271
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
388
272
|
execute_or_queue_command(command, &block)
|
|
389
273
|
end
|
|
390
274
|
|
|
391
|
-
#
|
|
275
|
+
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
276
|
+
# entries. Log entries written shortly before the delete operation might not be
|
|
277
|
+
# deleted.
|
|
278
|
+
# @param [String] log_name
|
|
279
|
+
# Required. The resource name of the log to delete:
|
|
280
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
|
281
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
282
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
|
283
|
+
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
|
284
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
285
|
+
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
286
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
|
287
|
+
# @param [String] fields
|
|
288
|
+
# Selector specifying which fields to include in a partial response.
|
|
289
|
+
# @param [String] quota_user
|
|
290
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
291
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
292
|
+
# @param [Google::Apis::RequestOptions] options
|
|
293
|
+
# Request-specific options
|
|
294
|
+
#
|
|
295
|
+
# @yield [result, err] Result & error if block supplied
|
|
296
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
297
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
298
|
+
#
|
|
299
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
300
|
+
#
|
|
301
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
302
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
303
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
304
|
+
def delete_project_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
305
|
+
command = make_simple_command(:delete, 'v2/{+logName}', options)
|
|
306
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
307
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
308
|
+
command.params['logName'] = log_name unless log_name.nil?
|
|
309
|
+
command.query['fields'] = fields unless fields.nil?
|
|
310
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
311
|
+
execute_or_queue_command(command, &block)
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
# Lists the logs in projects, organizations, folders, or billing accounts. Only
|
|
315
|
+
# logs that have entries are listed.
|
|
392
316
|
# @param [String] parent
|
|
393
|
-
# Required. The name
|
|
317
|
+
# Required. The resource name that owns the logs:
|
|
394
318
|
# "projects/[PROJECT_ID]"
|
|
395
|
-
#
|
|
396
|
-
#
|
|
397
|
-
#
|
|
398
|
-
# indicates that more results might be available.
|
|
319
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
320
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
321
|
+
# "folders/[FOLDER_ID]"
|
|
399
322
|
# @param [String] page_token
|
|
400
323
|
# Optional. If present, then retrieve the next batch of results from the
|
|
401
324
|
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
402
325
|
# from the previous response. The values of other method parameters should be
|
|
403
326
|
# identical to those in the previous call.
|
|
327
|
+
# @param [Fixnum] page_size
|
|
328
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
329
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
330
|
+
# indicates that more results might be available.
|
|
404
331
|
# @param [String] fields
|
|
405
332
|
# Selector specifying which fields to include in a partial response.
|
|
406
333
|
# @param [String] quota_user
|
|
@@ -410,29 +337,29 @@ module Google
|
|
|
410
337
|
# Request-specific options
|
|
411
338
|
#
|
|
412
339
|
# @yield [result, err] Result & error if block supplied
|
|
413
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
340
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
|
|
414
341
|
# @yieldparam err [StandardError] error object if request failed
|
|
415
342
|
#
|
|
416
|
-
# @return [Google::Apis::LoggingV2::
|
|
343
|
+
# @return [Google::Apis::LoggingV2::ListLogsResponse]
|
|
417
344
|
#
|
|
418
345
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
419
346
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
420
347
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
421
|
-
def
|
|
422
|
-
command = make_simple_command(:get, 'v2/{+parent}/
|
|
423
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
424
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
348
|
+
def list_project_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
349
|
+
command = make_simple_command(:get, 'v2/{+parent}/logs', options)
|
|
350
|
+
command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
|
|
351
|
+
command.response_class = Google::Apis::LoggingV2::ListLogsResponse
|
|
425
352
|
command.params['parent'] = parent unless parent.nil?
|
|
426
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
427
353
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
354
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
428
355
|
command.query['fields'] = fields unless fields.nil?
|
|
429
356
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
430
357
|
execute_or_queue_command(command, &block)
|
|
431
358
|
end
|
|
432
359
|
|
|
433
|
-
#
|
|
360
|
+
# Deletes a logs-based metric.
|
|
434
361
|
# @param [String] metric_name
|
|
435
|
-
# The resource name of the
|
|
362
|
+
# The resource name of the metric to delete:
|
|
436
363
|
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
|
437
364
|
# @param [String] fields
|
|
438
365
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -443,32 +370,28 @@ module Google
|
|
|
443
370
|
# Request-specific options
|
|
444
371
|
#
|
|
445
372
|
# @yield [result, err] Result & error if block supplied
|
|
446
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
373
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
447
374
|
# @yieldparam err [StandardError] error object if request failed
|
|
448
375
|
#
|
|
449
|
-
# @return [Google::Apis::LoggingV2::
|
|
376
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
450
377
|
#
|
|
451
378
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
452
379
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
453
380
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
454
|
-
def
|
|
455
|
-
command = make_simple_command(:
|
|
456
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
457
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
381
|
+
def delete_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
382
|
+
command = make_simple_command(:delete, 'v2/{+metricName}', options)
|
|
383
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
384
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
458
385
|
command.params['metricName'] = metric_name unless metric_name.nil?
|
|
459
386
|
command.query['fields'] = fields unless fields.nil?
|
|
460
387
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
461
388
|
execute_or_queue_command(command, &block)
|
|
462
389
|
end
|
|
463
390
|
|
|
464
|
-
#
|
|
391
|
+
# Gets a logs-based metric.
|
|
465
392
|
# @param [String] metric_name
|
|
466
|
-
# The resource name of the metric
|
|
393
|
+
# The resource name of the desired metric:
|
|
467
394
|
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
|
468
|
-
# The updated metric must be provided in the request and it's name field must be
|
|
469
|
-
# the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
|
|
470
|
-
# new metric is created.
|
|
471
|
-
# @param [Google::Apis::LoggingV2::LogMetric] log_metric_object
|
|
472
395
|
# @param [String] fields
|
|
473
396
|
# Selector specifying which fields to include in a partial response.
|
|
474
397
|
# @param [String] quota_user
|
|
@@ -486,10 +409,8 @@ module Google
|
|
|
486
409
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
487
410
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
488
411
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
489
|
-
def
|
|
490
|
-
command = make_simple_command(:
|
|
491
|
-
command.request_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
|
492
|
-
command.request_object = log_metric_object
|
|
412
|
+
def get_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
413
|
+
command = make_simple_command(:get, 'v2/{+metricName}', options)
|
|
493
414
|
command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
|
494
415
|
command.response_class = Google::Apis::LoggingV2::LogMetric
|
|
495
416
|
command.params['metricName'] = metric_name unless metric_name.nil?
|
|
@@ -498,11 +419,55 @@ module Google
|
|
|
498
419
|
execute_or_queue_command(command, &block)
|
|
499
420
|
end
|
|
500
421
|
|
|
501
|
-
#
|
|
422
|
+
# Lists logs-based metrics.
|
|
502
423
|
# @param [String] parent
|
|
503
|
-
# The
|
|
424
|
+
# Required. The name of the project containing the metrics:
|
|
504
425
|
# "projects/[PROJECT_ID]"
|
|
505
|
-
#
|
|
426
|
+
# @param [String] page_token
|
|
427
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
428
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
429
|
+
# from the previous response. The values of other method parameters should be
|
|
430
|
+
# identical to those in the previous call.
|
|
431
|
+
# @param [Fixnum] page_size
|
|
432
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
433
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
434
|
+
# indicates that more results might be available.
|
|
435
|
+
# @param [String] fields
|
|
436
|
+
# Selector specifying which fields to include in a partial response.
|
|
437
|
+
# @param [String] quota_user
|
|
438
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
439
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
440
|
+
# @param [Google::Apis::RequestOptions] options
|
|
441
|
+
# Request-specific options
|
|
442
|
+
#
|
|
443
|
+
# @yield [result, err] Result & error if block supplied
|
|
444
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListLogMetricsResponse] parsed result object
|
|
445
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
446
|
+
#
|
|
447
|
+
# @return [Google::Apis::LoggingV2::ListLogMetricsResponse]
|
|
448
|
+
#
|
|
449
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
450
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
451
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
452
|
+
def list_project_metrics(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
453
|
+
command = make_simple_command(:get, 'v2/{+parent}/metrics', options)
|
|
454
|
+
command.response_representation = Google::Apis::LoggingV2::ListLogMetricsResponse::Representation
|
|
455
|
+
command.response_class = Google::Apis::LoggingV2::ListLogMetricsResponse
|
|
456
|
+
command.params['parent'] = parent unless parent.nil?
|
|
457
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
458
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
459
|
+
command.query['fields'] = fields unless fields.nil?
|
|
460
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
461
|
+
execute_or_queue_command(command, &block)
|
|
462
|
+
end
|
|
463
|
+
|
|
464
|
+
# Creates or updates a logs-based metric.
|
|
465
|
+
# @param [String] metric_name
|
|
466
|
+
# The resource name of the metric to update:
|
|
467
|
+
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
|
468
|
+
# The updated metric must be provided in the request and it's name field must be
|
|
469
|
+
# the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
|
|
470
|
+
# new metric is created.
|
|
506
471
|
# @param [Google::Apis::LoggingV2::LogMetric] log_metric_object
|
|
507
472
|
# @param [String] fields
|
|
508
473
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -521,30 +486,24 @@ module Google
|
|
|
521
486
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
522
487
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
523
488
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
524
|
-
def
|
|
525
|
-
command = make_simple_command(:
|
|
489
|
+
def update_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
490
|
+
command = make_simple_command(:put, 'v2/{+metricName}', options)
|
|
526
491
|
command.request_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
|
527
492
|
command.request_object = log_metric_object
|
|
528
493
|
command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
|
529
494
|
command.response_class = Google::Apis::LoggingV2::LogMetric
|
|
530
|
-
command.params['
|
|
495
|
+
command.params['metricName'] = metric_name unless metric_name.nil?
|
|
531
496
|
command.query['fields'] = fields unless fields.nil?
|
|
532
497
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
533
498
|
execute_or_queue_command(command, &block)
|
|
534
499
|
end
|
|
535
500
|
|
|
536
|
-
#
|
|
537
|
-
#
|
|
538
|
-
#
|
|
539
|
-
#
|
|
540
|
-
#
|
|
541
|
-
#
|
|
542
|
-
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
543
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
|
544
|
-
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
|
545
|
-
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
546
|
-
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
547
|
-
# 2Factivity". For more information about log names, see LogEntry.
|
|
501
|
+
# Creates a logs-based metric.
|
|
502
|
+
# @param [String] parent
|
|
503
|
+
# The resource name of the project in which to create the metric:
|
|
504
|
+
# "projects/[PROJECT_ID]"
|
|
505
|
+
# The new metric must be provided in the request.
|
|
506
|
+
# @param [Google::Apis::LoggingV2::LogMetric] log_metric_object
|
|
548
507
|
# @param [String] fields
|
|
549
508
|
# Selector specifying which fields to include in a partial response.
|
|
550
509
|
# @param [String] quota_user
|
|
@@ -554,41 +513,34 @@ module Google
|
|
|
554
513
|
# Request-specific options
|
|
555
514
|
#
|
|
556
515
|
# @yield [result, err] Result & error if block supplied
|
|
557
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
516
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object
|
|
558
517
|
# @yieldparam err [StandardError] error object if request failed
|
|
559
518
|
#
|
|
560
|
-
# @return [Google::Apis::LoggingV2::
|
|
519
|
+
# @return [Google::Apis::LoggingV2::LogMetric]
|
|
561
520
|
#
|
|
562
521
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
563
522
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
564
523
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
565
|
-
def
|
|
566
|
-
command = make_simple_command(:
|
|
567
|
-
command.
|
|
568
|
-
command.
|
|
569
|
-
command.
|
|
524
|
+
def create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
525
|
+
command = make_simple_command(:post, 'v2/{+parent}/metrics', options)
|
|
526
|
+
command.request_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
|
527
|
+
command.request_object = log_metric_object
|
|
528
|
+
command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation
|
|
529
|
+
command.response_class = Google::Apis::LoggingV2::LogMetric
|
|
530
|
+
command.params['parent'] = parent unless parent.nil?
|
|
570
531
|
command.query['fields'] = fields unless fields.nil?
|
|
571
532
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
572
533
|
execute_or_queue_command(command, &block)
|
|
573
534
|
end
|
|
574
535
|
|
|
575
|
-
#
|
|
576
|
-
#
|
|
577
|
-
#
|
|
578
|
-
#
|
|
579
|
-
# "
|
|
580
|
-
# "
|
|
581
|
-
# "
|
|
582
|
-
# "
|
|
583
|
-
# @param [String] page_token
|
|
584
|
-
# Optional. If present, then retrieve the next batch of results from the
|
|
585
|
-
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
586
|
-
# from the previous response. The values of other method parameters should be
|
|
587
|
-
# identical to those in the previous call.
|
|
588
|
-
# @param [Fixnum] page_size
|
|
589
|
-
# Optional. The maximum number of results to return from this request. Non-
|
|
590
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
|
591
|
-
# indicates that more results might be available.
|
|
536
|
+
# Gets a sink.
|
|
537
|
+
# @param [String] sink_name
|
|
538
|
+
# Required. The resource name of the sink:
|
|
539
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
540
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
541
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
542
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
543
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
592
544
|
# @param [String] fields
|
|
593
545
|
# Selector specifying which fields to include in a partial response.
|
|
594
546
|
# @param [String] quota_user
|
|
@@ -598,21 +550,19 @@ module Google
|
|
|
598
550
|
# Request-specific options
|
|
599
551
|
#
|
|
600
552
|
# @yield [result, err] Result & error if block supplied
|
|
601
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
553
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
|
602
554
|
# @yieldparam err [StandardError] error object if request failed
|
|
603
555
|
#
|
|
604
|
-
# @return [Google::Apis::LoggingV2::
|
|
556
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
|
605
557
|
#
|
|
606
558
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
607
559
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
608
560
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
609
|
-
def
|
|
610
|
-
command = make_simple_command(:get, 'v2/{+
|
|
611
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
612
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
613
|
-
command.params['
|
|
614
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
615
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
561
|
+
def get_billing_account_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
562
|
+
command = make_simple_command(:get, 'v2/{+sinkName}', options)
|
|
563
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
564
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
565
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
616
566
|
command.query['fields'] = fields unless fields.nil?
|
|
617
567
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
618
568
|
execute_or_queue_command(command, &block)
|
|
@@ -663,41 +613,6 @@ module Google
|
|
|
663
613
|
execute_or_queue_command(command, &block)
|
|
664
614
|
end
|
|
665
615
|
|
|
666
|
-
# Gets a sink.
|
|
667
|
-
# @param [String] sink_name
|
|
668
|
-
# Required. The resource name of the sink:
|
|
669
|
-
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
670
|
-
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
671
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
672
|
-
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
673
|
-
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
674
|
-
# @param [String] fields
|
|
675
|
-
# Selector specifying which fields to include in a partial response.
|
|
676
|
-
# @param [String] quota_user
|
|
677
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
678
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
679
|
-
# @param [Google::Apis::RequestOptions] options
|
|
680
|
-
# Request-specific options
|
|
681
|
-
#
|
|
682
|
-
# @yield [result, err] Result & error if block supplied
|
|
683
|
-
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
|
684
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
685
|
-
#
|
|
686
|
-
# @return [Google::Apis::LoggingV2::LogSink]
|
|
687
|
-
#
|
|
688
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
689
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
690
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
691
|
-
def get_billing_account_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
692
|
-
command = make_simple_command(:get, 'v2/{+sinkName}', options)
|
|
693
|
-
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
694
|
-
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
695
|
-
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
696
|
-
command.query['fields'] = fields unless fields.nil?
|
|
697
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
698
|
-
execute_or_queue_command(command, &block)
|
|
699
|
-
end
|
|
700
|
-
|
|
701
616
|
# Updates a sink. If the named sink doesn't exist, then this method is identical
|
|
702
617
|
# to sinks.create. If the named sink does exist, then this method replaces the
|
|
703
618
|
# following fields in the existing sink with values from the new sink:
|
|
@@ -843,45 +758,6 @@ module Google
|
|
|
843
758
|
execute_or_queue_command(command, &block)
|
|
844
759
|
end
|
|
845
760
|
|
|
846
|
-
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
847
|
-
# entries. Log entries written shortly before the delete operation might not be
|
|
848
|
-
# deleted.
|
|
849
|
-
# @param [String] log_name
|
|
850
|
-
# Required. The resource name of the log to delete:
|
|
851
|
-
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
|
852
|
-
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
853
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
|
854
|
-
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
|
855
|
-
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
856
|
-
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
857
|
-
# 2Factivity". For more information about log names, see LogEntry.
|
|
858
|
-
# @param [String] fields
|
|
859
|
-
# Selector specifying which fields to include in a partial response.
|
|
860
|
-
# @param [String] quota_user
|
|
861
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
862
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
863
|
-
# @param [Google::Apis::RequestOptions] options
|
|
864
|
-
# Request-specific options
|
|
865
|
-
#
|
|
866
|
-
# @yield [result, err] Result & error if block supplied
|
|
867
|
-
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
868
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
869
|
-
#
|
|
870
|
-
# @return [Google::Apis::LoggingV2::Empty]
|
|
871
|
-
#
|
|
872
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
873
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
874
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
875
|
-
def delete_folder_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
876
|
-
command = make_simple_command(:delete, 'v2/{+logName}', options)
|
|
877
|
-
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
878
|
-
command.response_class = Google::Apis::LoggingV2::Empty
|
|
879
|
-
command.params['logName'] = log_name unless log_name.nil?
|
|
880
|
-
command.query['fields'] = fields unless fields.nil?
|
|
881
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
882
|
-
execute_or_queue_command(command, &block)
|
|
883
|
-
end
|
|
884
|
-
|
|
885
761
|
# Lists the logs in projects, organizations, folders, or billing accounts. Only
|
|
886
762
|
# logs that have entries are listed.
|
|
887
763
|
# @param [String] parent
|
|
@@ -916,7 +792,7 @@ module Google
|
|
|
916
792
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
917
793
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
918
794
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
919
|
-
def
|
|
795
|
+
def list_billing_account_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
920
796
|
command = make_simple_command(:get, 'v2/{+parent}/logs', options)
|
|
921
797
|
command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
|
|
922
798
|
command.response_class = Google::Apis::LoggingV2::ListLogsResponse
|
|
@@ -928,6 +804,45 @@ module Google
|
|
|
928
804
|
execute_or_queue_command(command, &block)
|
|
929
805
|
end
|
|
930
806
|
|
|
807
|
+
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
808
|
+
# entries. Log entries written shortly before the delete operation might not be
|
|
809
|
+
# deleted.
|
|
810
|
+
# @param [String] log_name
|
|
811
|
+
# Required. The resource name of the log to delete:
|
|
812
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
|
813
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
814
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
|
815
|
+
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
|
816
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
817
|
+
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
818
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
|
819
|
+
# @param [String] fields
|
|
820
|
+
# Selector specifying which fields to include in a partial response.
|
|
821
|
+
# @param [String] quota_user
|
|
822
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
823
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
824
|
+
# @param [Google::Apis::RequestOptions] options
|
|
825
|
+
# Request-specific options
|
|
826
|
+
#
|
|
827
|
+
# @yield [result, err] Result & error if block supplied
|
|
828
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
829
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
830
|
+
#
|
|
831
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
832
|
+
#
|
|
833
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
834
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
835
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
836
|
+
def delete_billing_account_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
837
|
+
command = make_simple_command(:delete, 'v2/{+logName}', options)
|
|
838
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
839
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
840
|
+
command.params['logName'] = log_name unless log_name.nil?
|
|
841
|
+
command.query['fields'] = fields unless fields.nil?
|
|
842
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
843
|
+
execute_or_queue_command(command, &block)
|
|
844
|
+
end
|
|
845
|
+
|
|
931
846
|
# Deletes a sink. If the sink has a unique writer_identity, then that service
|
|
932
847
|
# account is also deleted.
|
|
933
848
|
# @param [String] sink_name
|
|
@@ -965,22 +880,14 @@ module Google
|
|
|
965
880
|
execute_or_queue_command(command, &block)
|
|
966
881
|
end
|
|
967
882
|
|
|
968
|
-
#
|
|
969
|
-
# @param [String]
|
|
970
|
-
# Required. The
|
|
971
|
-
# "projects/[PROJECT_ID]"
|
|
972
|
-
# "organizations/[ORGANIZATION_ID]"
|
|
973
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
974
|
-
# "folders/[FOLDER_ID]"
|
|
975
|
-
#
|
|
976
|
-
# Optional. If present, then retrieve the next batch of results from the
|
|
977
|
-
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
978
|
-
# from the previous response. The values of other method parameters should be
|
|
979
|
-
# identical to those in the previous call.
|
|
980
|
-
# @param [Fixnum] page_size
|
|
981
|
-
# Optional. The maximum number of results to return from this request. Non-
|
|
982
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
|
983
|
-
# indicates that more results might be available.
|
|
883
|
+
# Gets a sink.
|
|
884
|
+
# @param [String] sink_name
|
|
885
|
+
# Required. The resource name of the sink:
|
|
886
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
887
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
888
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
889
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
890
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
984
891
|
# @param [String] fields
|
|
985
892
|
# Selector specifying which fields to include in a partial response.
|
|
986
893
|
# @param [String] quota_user
|
|
@@ -990,34 +897,40 @@ module Google
|
|
|
990
897
|
# Request-specific options
|
|
991
898
|
#
|
|
992
899
|
# @yield [result, err] Result & error if block supplied
|
|
993
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
900
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
|
994
901
|
# @yieldparam err [StandardError] error object if request failed
|
|
995
902
|
#
|
|
996
|
-
# @return [Google::Apis::LoggingV2::
|
|
903
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
|
997
904
|
#
|
|
998
905
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
999
906
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1000
907
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1001
|
-
def
|
|
1002
|
-
command = make_simple_command(:get, 'v2/{+
|
|
1003
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
1004
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
1005
|
-
command.params['
|
|
1006
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1007
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
908
|
+
def get_folder_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
909
|
+
command = make_simple_command(:get, 'v2/{+sinkName}', options)
|
|
910
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
|
911
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
|
912
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
1008
913
|
command.query['fields'] = fields unless fields.nil?
|
|
1009
914
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1010
915
|
execute_or_queue_command(command, &block)
|
|
1011
916
|
end
|
|
1012
917
|
|
|
1013
|
-
#
|
|
1014
|
-
# @param [String]
|
|
1015
|
-
# Required. The resource
|
|
1016
|
-
# "projects/[PROJECT_ID]
|
|
1017
|
-
# "organizations/[ORGANIZATION_ID]
|
|
1018
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]
|
|
1019
|
-
# "folders/[FOLDER_ID]
|
|
1020
|
-
#
|
|
918
|
+
# Lists sinks.
|
|
919
|
+
# @param [String] parent
|
|
920
|
+
# Required. The parent resource whose sinks are to be listed:
|
|
921
|
+
# "projects/[PROJECT_ID]"
|
|
922
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
923
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
924
|
+
# "folders/[FOLDER_ID]"
|
|
925
|
+
# @param [Fixnum] page_size
|
|
926
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
927
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
928
|
+
# indicates that more results might be available.
|
|
929
|
+
# @param [String] page_token
|
|
930
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
931
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
932
|
+
# from the previous response. The values of other method parameters should be
|
|
933
|
+
# identical to those in the previous call.
|
|
1021
934
|
# @param [String] fields
|
|
1022
935
|
# Selector specifying which fields to include in a partial response.
|
|
1023
936
|
# @param [String] quota_user
|
|
@@ -1027,19 +940,21 @@ module Google
|
|
|
1027
940
|
# Request-specific options
|
|
1028
941
|
#
|
|
1029
942
|
# @yield [result, err] Result & error if block supplied
|
|
1030
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
943
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListSinksResponse] parsed result object
|
|
1031
944
|
# @yieldparam err [StandardError] error object if request failed
|
|
1032
945
|
#
|
|
1033
|
-
# @return [Google::Apis::LoggingV2::
|
|
946
|
+
# @return [Google::Apis::LoggingV2::ListSinksResponse]
|
|
1034
947
|
#
|
|
1035
948
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1036
949
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1037
950
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1038
|
-
def
|
|
1039
|
-
command = make_simple_command(:get, 'v2/{+
|
|
1040
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
1041
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
1042
|
-
command.params['
|
|
951
|
+
def list_folder_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
952
|
+
command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
|
|
953
|
+
command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
|
|
954
|
+
command.response_class = Google::Apis::LoggingV2::ListSinksResponse
|
|
955
|
+
command.params['parent'] = parent unless parent.nil?
|
|
956
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
957
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1043
958
|
command.query['fields'] = fields unless fields.nil?
|
|
1044
959
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1045
960
|
execute_or_queue_command(command, &block)
|
|
@@ -1153,16 +1068,18 @@ module Google
|
|
|
1153
1068
|
execute_or_queue_command(command, &block)
|
|
1154
1069
|
end
|
|
1155
1070
|
|
|
1156
|
-
#
|
|
1157
|
-
#
|
|
1158
|
-
#
|
|
1159
|
-
#
|
|
1160
|
-
#
|
|
1161
|
-
#
|
|
1162
|
-
#
|
|
1163
|
-
#
|
|
1164
|
-
#
|
|
1165
|
-
#
|
|
1071
|
+
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
1072
|
+
# entries. Log entries written shortly before the delete operation might not be
|
|
1073
|
+
# deleted.
|
|
1074
|
+
# @param [String] log_name
|
|
1075
|
+
# Required. The resource name of the log to delete:
|
|
1076
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
|
1077
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
1078
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
|
1079
|
+
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
|
1080
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
1081
|
+
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
1082
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
|
1166
1083
|
# @param [String] fields
|
|
1167
1084
|
# Selector specifying which fields to include in a partial response.
|
|
1168
1085
|
# @param [String] quota_user
|
|
@@ -1172,20 +1089,19 @@ module Google
|
|
|
1172
1089
|
# Request-specific options
|
|
1173
1090
|
#
|
|
1174
1091
|
# @yield [result, err] Result & error if block supplied
|
|
1175
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
1092
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
1176
1093
|
# @yieldparam err [StandardError] error object if request failed
|
|
1177
1094
|
#
|
|
1178
|
-
# @return [Google::Apis::LoggingV2::
|
|
1095
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
1179
1096
|
#
|
|
1180
1097
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1181
1098
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1182
1099
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1183
|
-
def
|
|
1184
|
-
command = make_simple_command(:
|
|
1185
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
1186
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
1187
|
-
command.
|
|
1188
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1100
|
+
def delete_folder_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1101
|
+
command = make_simple_command(:delete, 'v2/{+logName}', options)
|
|
1102
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
1103
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
1104
|
+
command.params['logName'] = log_name unless log_name.nil?
|
|
1189
1105
|
command.query['fields'] = fields unless fields.nil?
|
|
1190
1106
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1191
1107
|
execute_or_queue_command(command, &block)
|
|
@@ -1199,15 +1115,15 @@ module Google
|
|
|
1199
1115
|
# "organizations/[ORGANIZATION_ID]"
|
|
1200
1116
|
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
1201
1117
|
# "folders/[FOLDER_ID]"
|
|
1202
|
-
# @param [Fixnum] page_size
|
|
1203
|
-
# Optional. The maximum number of results to return from this request. Non-
|
|
1204
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
|
1205
|
-
# indicates that more results might be available.
|
|
1206
1118
|
# @param [String] page_token
|
|
1207
1119
|
# Optional. If present, then retrieve the next batch of results from the
|
|
1208
1120
|
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
1209
1121
|
# from the previous response. The values of other method parameters should be
|
|
1210
1122
|
# identical to those in the previous call.
|
|
1123
|
+
# @param [Fixnum] page_size
|
|
1124
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
1125
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
1126
|
+
# indicates that more results might be available.
|
|
1211
1127
|
# @param [String] fields
|
|
1212
1128
|
# Selector specifying which fields to include in a partial response.
|
|
1213
1129
|
# @param [String] quota_user
|
|
@@ -1225,30 +1141,28 @@ module Google
|
|
|
1225
1141
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1226
1142
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1227
1143
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1228
|
-
def
|
|
1144
|
+
def list_folder_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1229
1145
|
command = make_simple_command(:get, 'v2/{+parent}/logs', options)
|
|
1230
1146
|
command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
|
|
1231
1147
|
command.response_class = Google::Apis::LoggingV2::ListLogsResponse
|
|
1232
1148
|
command.params['parent'] = parent unless parent.nil?
|
|
1233
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1234
1149
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1150
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1235
1151
|
command.query['fields'] = fields unless fields.nil?
|
|
1236
1152
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1237
1153
|
execute_or_queue_command(command, &block)
|
|
1238
1154
|
end
|
|
1239
1155
|
|
|
1240
|
-
#
|
|
1241
|
-
#
|
|
1242
|
-
#
|
|
1243
|
-
#
|
|
1244
|
-
#
|
|
1245
|
-
#
|
|
1246
|
-
#
|
|
1247
|
-
#
|
|
1248
|
-
#
|
|
1249
|
-
#
|
|
1250
|
-
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
1251
|
-
# 2Factivity". For more information about log names, see LogEntry.
|
|
1156
|
+
# Lists the descriptors for monitored resource types used by Stackdriver Logging.
|
|
1157
|
+
# @param [String] page_token
|
|
1158
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
1159
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
1160
|
+
# from the previous response. The values of other method parameters should be
|
|
1161
|
+
# identical to those in the previous call.
|
|
1162
|
+
# @param [Fixnum] page_size
|
|
1163
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
1164
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
1165
|
+
# indicates that more results might be available.
|
|
1252
1166
|
# @param [String] fields
|
|
1253
1167
|
# Selector specifying which fields to include in a partial response.
|
|
1254
1168
|
# @param [String] quota_user
|
|
@@ -1258,40 +1172,35 @@ module Google
|
|
|
1258
1172
|
# Request-specific options
|
|
1259
1173
|
#
|
|
1260
1174
|
# @yield [result, err] Result & error if block supplied
|
|
1261
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
1175
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse] parsed result object
|
|
1262
1176
|
# @yieldparam err [StandardError] error object if request failed
|
|
1263
1177
|
#
|
|
1264
|
-
# @return [Google::Apis::LoggingV2::
|
|
1178
|
+
# @return [Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse]
|
|
1265
1179
|
#
|
|
1266
1180
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1267
1181
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1268
1182
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1269
|
-
def
|
|
1270
|
-
command = make_simple_command(:
|
|
1271
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
1272
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
1273
|
-
command.
|
|
1183
|
+
def list_monitored_resource_descriptors(page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1184
|
+
command = make_simple_command(:get, 'v2/monitoredResourceDescriptors', options)
|
|
1185
|
+
command.response_representation = Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse::Representation
|
|
1186
|
+
command.response_class = Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse
|
|
1187
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1188
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1274
1189
|
command.query['fields'] = fields unless fields.nil?
|
|
1275
1190
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1276
1191
|
execute_or_queue_command(command, &block)
|
|
1277
1192
|
end
|
|
1278
1193
|
|
|
1279
|
-
#
|
|
1280
|
-
#
|
|
1281
|
-
#
|
|
1282
|
-
#
|
|
1283
|
-
#
|
|
1284
|
-
# "
|
|
1285
|
-
# "
|
|
1286
|
-
#
|
|
1287
|
-
#
|
|
1288
|
-
#
|
|
1289
|
-
# from the previous response. The values of other method parameters should be
|
|
1290
|
-
# identical to those in the previous call.
|
|
1291
|
-
# @param [Fixnum] page_size
|
|
1292
|
-
# Optional. The maximum number of results to return from this request. Non-
|
|
1293
|
-
# positive values are ignored. The presence of nextPageToken in the response
|
|
1294
|
-
# indicates that more results might be available.
|
|
1194
|
+
# Deletes a sink. If the sink has a unique writer_identity, then that service
|
|
1195
|
+
# account is also deleted.
|
|
1196
|
+
# @param [String] sink_name
|
|
1197
|
+
# Required. The full resource name of the sink to delete, including the parent
|
|
1198
|
+
# resource and the sink identifier:
|
|
1199
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
|
1200
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
|
1201
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
|
1202
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
|
1203
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
|
1295
1204
|
# @param [String] fields
|
|
1296
1205
|
# Selector specifying which fields to include in a partial response.
|
|
1297
1206
|
# @param [String] quota_user
|
|
@@ -1301,21 +1210,19 @@ module Google
|
|
|
1301
1210
|
# Request-specific options
|
|
1302
1211
|
#
|
|
1303
1212
|
# @yield [result, err] Result & error if block supplied
|
|
1304
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
|
1213
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
|
1305
1214
|
# @yieldparam err [StandardError] error object if request failed
|
|
1306
1215
|
#
|
|
1307
|
-
# @return [Google::Apis::LoggingV2::
|
|
1216
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
|
1308
1217
|
#
|
|
1309
1218
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1310
1219
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1311
1220
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1312
|
-
def
|
|
1313
|
-
command = make_simple_command(:
|
|
1314
|
-
command.response_representation = Google::Apis::LoggingV2::
|
|
1315
|
-
command.response_class = Google::Apis::LoggingV2::
|
|
1316
|
-
command.params['
|
|
1317
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1318
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1221
|
+
def delete_organization_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1222
|
+
command = make_simple_command(:delete, 'v2/{+sinkName}', options)
|
|
1223
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
1224
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
|
1225
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
|
1319
1226
|
command.query['fields'] = fields unless fields.nil?
|
|
1320
1227
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1321
1228
|
execute_or_queue_command(command, &block)
|
|
@@ -1356,6 +1263,51 @@ module Google
|
|
|
1356
1263
|
execute_or_queue_command(command, &block)
|
|
1357
1264
|
end
|
|
1358
1265
|
|
|
1266
|
+
# Lists sinks.
|
|
1267
|
+
# @param [String] parent
|
|
1268
|
+
# Required. The parent resource whose sinks are to be listed:
|
|
1269
|
+
# "projects/[PROJECT_ID]"
|
|
1270
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
1271
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
1272
|
+
# "folders/[FOLDER_ID]"
|
|
1273
|
+
# @param [Fixnum] page_size
|
|
1274
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
1275
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
1276
|
+
# indicates that more results might be available.
|
|
1277
|
+
# @param [String] page_token
|
|
1278
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
1279
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
1280
|
+
# from the previous response. The values of other method parameters should be
|
|
1281
|
+
# identical to those in the previous call.
|
|
1282
|
+
# @param [String] fields
|
|
1283
|
+
# Selector specifying which fields to include in a partial response.
|
|
1284
|
+
# @param [String] quota_user
|
|
1285
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1286
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1287
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1288
|
+
# Request-specific options
|
|
1289
|
+
#
|
|
1290
|
+
# @yield [result, err] Result & error if block supplied
|
|
1291
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListSinksResponse] parsed result object
|
|
1292
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1293
|
+
#
|
|
1294
|
+
# @return [Google::Apis::LoggingV2::ListSinksResponse]
|
|
1295
|
+
#
|
|
1296
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1297
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1298
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1299
|
+
def list_organization_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1300
|
+
command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
|
|
1301
|
+
command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
|
|
1302
|
+
command.response_class = Google::Apis::LoggingV2::ListSinksResponse
|
|
1303
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1304
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1305
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1306
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1307
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1308
|
+
execute_or_queue_command(command, &block)
|
|
1309
|
+
end
|
|
1310
|
+
|
|
1359
1311
|
# Updates a sink. If the named sink doesn't exist, then this method is identical
|
|
1360
1312
|
# to sinks.create. If the named sink does exist, then this method replaces the
|
|
1361
1313
|
# following fields in the existing sink with values from the new sink:
|
|
@@ -1464,16 +1416,18 @@ module Google
|
|
|
1464
1416
|
execute_or_queue_command(command, &block)
|
|
1465
1417
|
end
|
|
1466
1418
|
|
|
1467
|
-
# Deletes
|
|
1468
|
-
#
|
|
1469
|
-
#
|
|
1470
|
-
#
|
|
1471
|
-
# resource
|
|
1472
|
-
# "projects/[PROJECT_ID]/
|
|
1473
|
-
# "organizations/[ORGANIZATION_ID]/
|
|
1474
|
-
# "billingAccounts/[BILLING_ACCOUNT_ID]/
|
|
1475
|
-
# "folders/[FOLDER_ID]/
|
|
1476
|
-
#
|
|
1419
|
+
# Deletes all the log entries in a log. The log reappears if it receives new
|
|
1420
|
+
# entries. Log entries written shortly before the delete operation might not be
|
|
1421
|
+
# deleted.
|
|
1422
|
+
# @param [String] log_name
|
|
1423
|
+
# Required. The resource name of the log to delete:
|
|
1424
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
|
1425
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
|
1426
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
|
1427
|
+
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
|
1428
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
|
1429
|
+
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
|
1430
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
|
1477
1431
|
# @param [String] fields
|
|
1478
1432
|
# Selector specifying which fields to include in a partial response.
|
|
1479
1433
|
# @param [String] quota_user
|
|
@@ -1491,11 +1445,57 @@ module Google
|
|
|
1491
1445
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1492
1446
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1493
1447
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1494
|
-
def
|
|
1495
|
-
command = make_simple_command(:delete, 'v2/{+
|
|
1448
|
+
def delete_organization_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1449
|
+
command = make_simple_command(:delete, 'v2/{+logName}', options)
|
|
1496
1450
|
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
|
1497
1451
|
command.response_class = Google::Apis::LoggingV2::Empty
|
|
1498
|
-
command.params['
|
|
1452
|
+
command.params['logName'] = log_name unless log_name.nil?
|
|
1453
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1454
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1455
|
+
execute_or_queue_command(command, &block)
|
|
1456
|
+
end
|
|
1457
|
+
|
|
1458
|
+
# Lists the logs in projects, organizations, folders, or billing accounts. Only
|
|
1459
|
+
# logs that have entries are listed.
|
|
1460
|
+
# @param [String] parent
|
|
1461
|
+
# Required. The resource name that owns the logs:
|
|
1462
|
+
# "projects/[PROJECT_ID]"
|
|
1463
|
+
# "organizations/[ORGANIZATION_ID]"
|
|
1464
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
|
1465
|
+
# "folders/[FOLDER_ID]"
|
|
1466
|
+
# @param [String] page_token
|
|
1467
|
+
# Optional. If present, then retrieve the next batch of results from the
|
|
1468
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
|
1469
|
+
# from the previous response. The values of other method parameters should be
|
|
1470
|
+
# identical to those in the previous call.
|
|
1471
|
+
# @param [Fixnum] page_size
|
|
1472
|
+
# Optional. The maximum number of results to return from this request. Non-
|
|
1473
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
|
1474
|
+
# indicates that more results might be available.
|
|
1475
|
+
# @param [String] fields
|
|
1476
|
+
# Selector specifying which fields to include in a partial response.
|
|
1477
|
+
# @param [String] quota_user
|
|
1478
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1479
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1480
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1481
|
+
# Request-specific options
|
|
1482
|
+
#
|
|
1483
|
+
# @yield [result, err] Result & error if block supplied
|
|
1484
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
|
|
1485
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1486
|
+
#
|
|
1487
|
+
# @return [Google::Apis::LoggingV2::ListLogsResponse]
|
|
1488
|
+
#
|
|
1489
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1490
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1491
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1492
|
+
def list_organization_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1493
|
+
command = make_simple_command(:get, 'v2/{+parent}/logs', options)
|
|
1494
|
+
command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
|
|
1495
|
+
command.response_class = Google::Apis::LoggingV2::ListLogsResponse
|
|
1496
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1497
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1498
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1499
1499
|
command.query['fields'] = fields unless fields.nil?
|
|
1500
1500
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1501
1501
|
execute_or_queue_command(command, &block)
|