google-api-client 0.37.0 → 0.37.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +76 -0
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +236 -22
- data/generated/google/apis/accesscontextmanager_v1/representations.rb +104 -0
- data/generated/google/apis/accesscontextmanager_v1/service.rb +135 -0
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +24 -22
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +64 -0
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +31 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +10 -1
- data/generated/google/apis/chat_v1/representations.rb +1 -0
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +98 -34
- data/generated/google/apis/cloudasset_v1/representations.rb +19 -0
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +152 -151
- data/generated/google/apis/cloudidentity_v1/representations.rb +72 -72
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +0 -560
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +0 -226
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtrace_v2beta1.rb +44 -0
- data/generated/google/apis/cloudtrace_v2beta1/classes.rb +144 -0
- data/generated/google/apis/cloudtrace_v2beta1/representations.rb +82 -0
- data/generated/google/apis/cloudtrace_v2beta1/service.rb +258 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +190 -46
- data/generated/google/apis/compute_alpha/representations.rb +35 -14
- data/generated/google/apis/compute_alpha/service.rb +40 -56
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +98 -24
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_beta/service.rb +1 -2
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +123 -19
- data/generated/google/apis/compute_v1/representations.rb +19 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +2 -2
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +2 -2
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +4 -3
- data/generated/google/apis/datacatalog_v1beta1/service.rb +190 -17
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +40 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +16 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +67 -0
- data/generated/google/apis/dataproc_v1/representations.rb +23 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +2 -1
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/domainsrdap_v1.rb +1 -1
- data/generated/google/apis/driveactivity_v2.rb +1 -1
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +6 -19
- data/generated/google/apis/file_v1/service.rb +1 -1
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +4 -17
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +10 -5
- data/generated/google/apis/fitness_v1/service.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +3 -3
- data/generated/google/apis/homegraph_v1.rb +1 -1
- data/generated/google/apis/indexing_v3.rb +1 -1
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +84 -0
- data/generated/google/apis/logging_v2/representations.rb +33 -0
- data/generated/google/apis/logging_v2/service.rb +680 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +21 -18
- data/generated/google/apis/monitoring_v3/service.rb +27 -18
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/secretmanager_v1.rb +35 -0
- data/generated/google/apis/secretmanager_v1/classes.rb +970 -0
- data/generated/google/apis/secretmanager_v1/representations.rb +388 -0
- data/generated/google/apis/secretmanager_v1/service.rb +675 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +36 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +19 -0
- data/generated/google/apis/servicenetworking_v1/representations.rb +2 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +94 -85
- data/generated/google/apis/storagetransfer_v1/service.rb +17 -11
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +29 -0
- data/generated/google/apis/testing_v1/representations.rb +15 -0
- data/generated/google/apis/toolresults_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +11 -3
@@ -0,0 +1,258 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module CloudtraceV2beta1
|
23
|
+
# Stackdriver Trace API
|
24
|
+
#
|
25
|
+
# Sends application trace data to Stackdriver Trace for viewing. Trace data is
|
26
|
+
# collected for all App Engine applications by default. Trace data from other
|
27
|
+
# applications can be provided using this API. This library is used to interact
|
28
|
+
# with the Trace API directly. If you are looking to instrument your application
|
29
|
+
# for Stackdriver Trace, we recommend using OpenCensus.
|
30
|
+
#
|
31
|
+
# @example
|
32
|
+
# require 'google/apis/cloudtrace_v2beta1'
|
33
|
+
#
|
34
|
+
# Cloudtrace = Google::Apis::CloudtraceV2beta1 # Alias the module
|
35
|
+
# service = Cloudtrace::CloudTraceService.new
|
36
|
+
#
|
37
|
+
# @see https://cloud.google.com/trace
|
38
|
+
class CloudTraceService < Google::Apis::Core::BaseService
|
39
|
+
# @return [String]
|
40
|
+
# API key. Your API key identifies your project and provides you with API access,
|
41
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
42
|
+
attr_accessor :key
|
43
|
+
|
44
|
+
# @return [String]
|
45
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
46
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
47
|
+
attr_accessor :quota_user
|
48
|
+
|
49
|
+
def initialize
|
50
|
+
super('https://cloudtrace.googleapis.com/', '')
|
51
|
+
@batch_path = 'batch'
|
52
|
+
end
|
53
|
+
|
54
|
+
# Creates a sink that exports trace spans to a destination. The
|
55
|
+
# export of newly-ingested traces begins immediately, unless the sink's
|
56
|
+
# `writer_identity` is not permitted to write to the destination. A sink can
|
57
|
+
# export traces only from the resource owning the sink (the 'parent').
|
58
|
+
# @param [String] parent
|
59
|
+
# Required. The resource in which to create the sink (currently only project
|
60
|
+
# sinks are supported):
|
61
|
+
# "projects/[PROJECT_ID]"
|
62
|
+
# Examples: `"projects/my-trace-project"`, `"projects/123456789"`.
|
63
|
+
# @param [Google::Apis::CloudtraceV2beta1::TraceSink] trace_sink_object
|
64
|
+
# @param [String] fields
|
65
|
+
# Selector specifying which fields to include in a partial response.
|
66
|
+
# @param [String] quota_user
|
67
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
68
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
69
|
+
# @param [Google::Apis::RequestOptions] options
|
70
|
+
# Request-specific options
|
71
|
+
#
|
72
|
+
# @yield [result, err] Result & error if block supplied
|
73
|
+
# @yieldparam result [Google::Apis::CloudtraceV2beta1::TraceSink] parsed result object
|
74
|
+
# @yieldparam err [StandardError] error object if request failed
|
75
|
+
#
|
76
|
+
# @return [Google::Apis::CloudtraceV2beta1::TraceSink]
|
77
|
+
#
|
78
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
79
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
80
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
81
|
+
def create_project_trace_sink(parent, trace_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
82
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/traceSinks', options)
|
83
|
+
command.request_representation = Google::Apis::CloudtraceV2beta1::TraceSink::Representation
|
84
|
+
command.request_object = trace_sink_object
|
85
|
+
command.response_representation = Google::Apis::CloudtraceV2beta1::TraceSink::Representation
|
86
|
+
command.response_class = Google::Apis::CloudtraceV2beta1::TraceSink
|
87
|
+
command.params['parent'] = parent unless parent.nil?
|
88
|
+
command.query['fields'] = fields unless fields.nil?
|
89
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
90
|
+
execute_or_queue_command(command, &block)
|
91
|
+
end
|
92
|
+
|
93
|
+
# Deletes a sink.
|
94
|
+
# @param [String] name
|
95
|
+
# Required. The full resource name of the sink to delete, including the
|
96
|
+
# parent resource and the sink identifier:
|
97
|
+
# "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]"
|
98
|
+
# Example: `"projects/12345/traceSinks/my-sink-id"`.
|
99
|
+
# @param [String] fields
|
100
|
+
# Selector specifying which fields to include in a partial response.
|
101
|
+
# @param [String] quota_user
|
102
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
103
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
104
|
+
# @param [Google::Apis::RequestOptions] options
|
105
|
+
# Request-specific options
|
106
|
+
#
|
107
|
+
# @yield [result, err] Result & error if block supplied
|
108
|
+
# @yieldparam result [Google::Apis::CloudtraceV2beta1::Empty] parsed result object
|
109
|
+
# @yieldparam err [StandardError] error object if request failed
|
110
|
+
#
|
111
|
+
# @return [Google::Apis::CloudtraceV2beta1::Empty]
|
112
|
+
#
|
113
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
114
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
115
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
116
|
+
def delete_project_trace_sink(name, fields: nil, quota_user: nil, options: nil, &block)
|
117
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
118
|
+
command.response_representation = Google::Apis::CloudtraceV2beta1::Empty::Representation
|
119
|
+
command.response_class = Google::Apis::CloudtraceV2beta1::Empty
|
120
|
+
command.params['name'] = name unless name.nil?
|
121
|
+
command.query['fields'] = fields unless fields.nil?
|
122
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
123
|
+
execute_or_queue_command(command, &block)
|
124
|
+
end
|
125
|
+
|
126
|
+
# Get a trace sink by name under the parent resource (GCP project).
|
127
|
+
# @param [String] name
|
128
|
+
# Required. The resource name of the sink:
|
129
|
+
# "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]"
|
130
|
+
# Example: `"projects/12345/traceSinks/my-sink-id"`.
|
131
|
+
# @param [String] fields
|
132
|
+
# Selector specifying which fields to include in a partial response.
|
133
|
+
# @param [String] quota_user
|
134
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
135
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
136
|
+
# @param [Google::Apis::RequestOptions] options
|
137
|
+
# Request-specific options
|
138
|
+
#
|
139
|
+
# @yield [result, err] Result & error if block supplied
|
140
|
+
# @yieldparam result [Google::Apis::CloudtraceV2beta1::TraceSink] parsed result object
|
141
|
+
# @yieldparam err [StandardError] error object if request failed
|
142
|
+
#
|
143
|
+
# @return [Google::Apis::CloudtraceV2beta1::TraceSink]
|
144
|
+
#
|
145
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
146
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
147
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
148
|
+
def get_project_trace_sink(name, fields: nil, quota_user: nil, options: nil, &block)
|
149
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
150
|
+
command.response_representation = Google::Apis::CloudtraceV2beta1::TraceSink::Representation
|
151
|
+
command.response_class = Google::Apis::CloudtraceV2beta1::TraceSink
|
152
|
+
command.params['name'] = name unless name.nil?
|
153
|
+
command.query['fields'] = fields unless fields.nil?
|
154
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
155
|
+
execute_or_queue_command(command, &block)
|
156
|
+
end
|
157
|
+
|
158
|
+
# List all sinks for the parent resource (GCP project).
|
159
|
+
# @param [String] parent
|
160
|
+
# Required. The parent resource whose sinks are to be listed (currently only
|
161
|
+
# project parent resources are supported):
|
162
|
+
# "projects/[PROJECT_ID]"
|
163
|
+
# @param [Fixnum] page_size
|
164
|
+
# Optional. The maximum number of results to return from this request.
|
165
|
+
# Non-positive values are ignored. The presence of `nextPageToken` in the
|
166
|
+
# response indicates that more results might be available.
|
167
|
+
# @param [String] page_token
|
168
|
+
# Optional. If present, then retrieve the next batch of results from the
|
169
|
+
# preceding call to this method. `pageToken` must be the value of
|
170
|
+
# `nextPageToken` from the previous response. The values of other method
|
171
|
+
# parameters should be identical to those in the previous call.
|
172
|
+
# @param [String] fields
|
173
|
+
# Selector specifying which fields to include in a partial response.
|
174
|
+
# @param [String] quota_user
|
175
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
176
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
177
|
+
# @param [Google::Apis::RequestOptions] options
|
178
|
+
# Request-specific options
|
179
|
+
#
|
180
|
+
# @yield [result, err] Result & error if block supplied
|
181
|
+
# @yieldparam result [Google::Apis::CloudtraceV2beta1::ListTraceSinksResponse] parsed result object
|
182
|
+
# @yieldparam err [StandardError] error object if request failed
|
183
|
+
#
|
184
|
+
# @return [Google::Apis::CloudtraceV2beta1::ListTraceSinksResponse]
|
185
|
+
#
|
186
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
187
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
188
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
189
|
+
def list_project_trace_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
190
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/traceSinks', options)
|
191
|
+
command.response_representation = Google::Apis::CloudtraceV2beta1::ListTraceSinksResponse::Representation
|
192
|
+
command.response_class = Google::Apis::CloudtraceV2beta1::ListTraceSinksResponse
|
193
|
+
command.params['parent'] = parent unless parent.nil?
|
194
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
195
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
196
|
+
command.query['fields'] = fields unless fields.nil?
|
197
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
198
|
+
execute_or_queue_command(command, &block)
|
199
|
+
end
|
200
|
+
|
201
|
+
# Updates a sink. This method updates fields in the existing sink according
|
202
|
+
# to the provided update mask. The sink's name cannot be changed nor any
|
203
|
+
# output-only fields (e.g. the writer_identity).
|
204
|
+
# @param [String] name
|
205
|
+
# Required. The full resource name of the sink to update, including the
|
206
|
+
# parent resource and the sink identifier:
|
207
|
+
# "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]"
|
208
|
+
# Example: `"projects/12345/traceSinks/my-sink-id"`.
|
209
|
+
# @param [Google::Apis::CloudtraceV2beta1::TraceSink] trace_sink_object
|
210
|
+
# @param [String] update_mask
|
211
|
+
# Required. Field mask that specifies the fields in `trace_sink` that are to
|
212
|
+
# be updated. A sink field is overwritten if, and only if, it is
|
213
|
+
# in the update mask. `name` and `writer_identity` fields cannot be updated.
|
214
|
+
# An empty updateMask is considered an error.
|
215
|
+
# For a detailed `FieldMask` definition, see
|
216
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
217
|
+
# fieldmask
|
218
|
+
# Example: `updateMask=output_config`.
|
219
|
+
# @param [String] fields
|
220
|
+
# Selector specifying which fields to include in a partial response.
|
221
|
+
# @param [String] quota_user
|
222
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
223
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
224
|
+
# @param [Google::Apis::RequestOptions] options
|
225
|
+
# Request-specific options
|
226
|
+
#
|
227
|
+
# @yield [result, err] Result & error if block supplied
|
228
|
+
# @yieldparam result [Google::Apis::CloudtraceV2beta1::TraceSink] parsed result object
|
229
|
+
# @yieldparam err [StandardError] error object if request failed
|
230
|
+
#
|
231
|
+
# @return [Google::Apis::CloudtraceV2beta1::TraceSink]
|
232
|
+
#
|
233
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
234
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
235
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
236
|
+
def patch_project_trace_sink(name, trace_sink_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
237
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
238
|
+
command.request_representation = Google::Apis::CloudtraceV2beta1::TraceSink::Representation
|
239
|
+
command.request_object = trace_sink_object
|
240
|
+
command.response_representation = Google::Apis::CloudtraceV2beta1::TraceSink::Representation
|
241
|
+
command.response_class = Google::Apis::CloudtraceV2beta1::TraceSink
|
242
|
+
command.params['name'] = name unless name.nil?
|
243
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
244
|
+
command.query['fields'] = fields unless fields.nil?
|
245
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
246
|
+
execute_or_queue_command(command, &block)
|
247
|
+
end
|
248
|
+
|
249
|
+
protected
|
250
|
+
|
251
|
+
def apply_command_defaults(command)
|
252
|
+
command.query['key'] = key unless key.nil?
|
253
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
254
|
+
end
|
255
|
+
end
|
256
|
+
end
|
257
|
+
end
|
258
|
+
end
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/compute/docs/reference/latest/
|
26
26
|
module ComputeAlpha
|
27
27
|
VERSION = 'Alpha'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20200120'
|
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'
|
@@ -2255,6 +2255,17 @@ module Google
|
|
2255
2255
|
class AutoscalingPolicyCpuUtilization
|
2256
2256
|
include Google::Apis::Core::Hashable
|
2257
2257
|
|
2258
|
+
# Indicates which method of prediction is used for CPU utilization metric, if
|
2259
|
+
# any. Current set of possible values: * NONE: No predictions are made based on
|
2260
|
+
# the scaling metric when calculating the number of VM instances. * STANDARD:
|
2261
|
+
# Standard predictive autoscaling predicts the future values of the scaling
|
2262
|
+
# metric and then scales a MIG to ensure that new VM instances are ready in time
|
2263
|
+
# to cover the predicted peak. New values might be added in the future. Some of
|
2264
|
+
# the values might not be available in all API versions.
|
2265
|
+
# Corresponds to the JSON property `predictiveMethod`
|
2266
|
+
# @return [String]
|
2267
|
+
attr_accessor :predictive_method
|
2268
|
+
|
2258
2269
|
# The target CPU utilization that the autoscaler should maintain. Must be a
|
2259
2270
|
# float value in the range (0, 1]. If not specified, the default is 0.6.
|
2260
2271
|
# If the CPU level is below the target utilization, the autoscaler scales down
|
@@ -2274,6 +2285,7 @@ module Google
|
|
2274
2285
|
|
2275
2286
|
# Update properties of this object
|
2276
2287
|
def update!(**args)
|
2288
|
+
@predictive_method = args[:predictive_method] if args.key?(:predictive_method)
|
2277
2289
|
@utilization_target = args[:utilization_target] if args.key?(:utilization_target)
|
2278
2290
|
end
|
2279
2291
|
end
|
@@ -4070,9 +4082,26 @@ module Google
|
|
4070
4082
|
class Binding
|
4071
4083
|
include Google::Apis::Core::Hashable
|
4072
4084
|
|
4073
|
-
# Represents
|
4074
|
-
#
|
4075
|
-
#
|
4085
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
4086
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
4087
|
+
# documented at https://github.com/google/cel-spec.
|
4088
|
+
# Example (Comparison):
|
4089
|
+
# title: "Summary size limit" description: "Determines if a summary is less than
|
4090
|
+
# 100 chars" expression: "document.summary.size() < 100"
|
4091
|
+
# Example (Equality):
|
4092
|
+
# title: "Requestor is owner" description: "Determines if requestor is the
|
4093
|
+
# document owner" expression: "document.owner == request.auth.claims.email"
|
4094
|
+
# Example (Logic):
|
4095
|
+
# title: "Public documents" description: "Determine whether the document should
|
4096
|
+
# be publicly visible" expression: "document.type != 'private' && document.type !
|
4097
|
+
# = 'internal'"
|
4098
|
+
# Example (Data Manipulation):
|
4099
|
+
# title: "Notification string" description: "Create a notification string with a
|
4100
|
+
# timestamp." expression: "'New message received at ' + string(document.
|
4101
|
+
# create_time)"
|
4102
|
+
# The exact variables and functions that may be referenced within an expression
|
4103
|
+
# are determined by the service that evaluates it. See the service documentation
|
4104
|
+
# for additional information.
|
4076
4105
|
# Corresponds to the JSON property `condition`
|
4077
4106
|
# @return [Google::Apis::ComputeAlpha::Expr]
|
4078
4107
|
attr_accessor :condition
|
@@ -6698,33 +6727,48 @@ module Google
|
|
6698
6727
|
end
|
6699
6728
|
end
|
6700
6729
|
|
6701
|
-
# Represents
|
6702
|
-
#
|
6703
|
-
#
|
6730
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
6731
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
6732
|
+
# documented at https://github.com/google/cel-spec.
|
6733
|
+
# Example (Comparison):
|
6734
|
+
# title: "Summary size limit" description: "Determines if a summary is less than
|
6735
|
+
# 100 chars" expression: "document.summary.size() < 100"
|
6736
|
+
# Example (Equality):
|
6737
|
+
# title: "Requestor is owner" description: "Determines if requestor is the
|
6738
|
+
# document owner" expression: "document.owner == request.auth.claims.email"
|
6739
|
+
# Example (Logic):
|
6740
|
+
# title: "Public documents" description: "Determine whether the document should
|
6741
|
+
# be publicly visible" expression: "document.type != 'private' && document.type !
|
6742
|
+
# = 'internal'"
|
6743
|
+
# Example (Data Manipulation):
|
6744
|
+
# title: "Notification string" description: "Create a notification string with a
|
6745
|
+
# timestamp." expression: "'New message received at ' + string(document.
|
6746
|
+
# create_time)"
|
6747
|
+
# The exact variables and functions that may be referenced within an expression
|
6748
|
+
# are determined by the service that evaluates it. See the service documentation
|
6749
|
+
# for additional information.
|
6704
6750
|
class Expr
|
6705
6751
|
include Google::Apis::Core::Hashable
|
6706
6752
|
|
6707
|
-
#
|
6708
|
-
#
|
6753
|
+
# Optional. Description of the expression. This is a longer text which describes
|
6754
|
+
# the expression, e.g. when hovered over it in a UI.
|
6709
6755
|
# Corresponds to the JSON property `description`
|
6710
6756
|
# @return [String]
|
6711
6757
|
attr_accessor :description
|
6712
6758
|
|
6713
6759
|
# Textual representation of an expression in Common Expression Language syntax.
|
6714
|
-
# The application context of the containing message determines which well-known
|
6715
|
-
# feature set of CEL is supported.
|
6716
6760
|
# Corresponds to the JSON property `expression`
|
6717
6761
|
# @return [String]
|
6718
6762
|
attr_accessor :expression
|
6719
6763
|
|
6720
|
-
#
|
6721
|
-
#
|
6764
|
+
# Optional. String indicating the location of the expression for error reporting,
|
6765
|
+
# e.g. a file name and a position in the file.
|
6722
6766
|
# Corresponds to the JSON property `location`
|
6723
6767
|
# @return [String]
|
6724
6768
|
attr_accessor :location
|
6725
6769
|
|
6726
|
-
#
|
6727
|
-
#
|
6770
|
+
# Optional. Title for the expression, i.e. a short string describing its purpose.
|
6771
|
+
# This can be used e.g. in UIs which allow to enter the expression.
|
6728
6772
|
# Corresponds to the JSON property `title`
|
6729
6773
|
# @return [String]
|
6730
6774
|
attr_accessor :title
|
@@ -9551,12 +9595,13 @@ module Google
|
|
9551
9595
|
# @return [String]
|
9552
9596
|
attr_accessor :instance
|
9553
9597
|
|
9554
|
-
#
|
9598
|
+
# A forwarding rule IP address assigned to this instance.
|
9555
9599
|
# Corresponds to the JSON property `ipAddress`
|
9556
9600
|
# @return [String]
|
9557
9601
|
attr_accessor :ip_address
|
9558
9602
|
|
9559
|
-
# The port
|
9603
|
+
# The named port of the instance group, not necessarily the port that is health-
|
9604
|
+
# checked.
|
9560
9605
|
# Corresponds to the JSON property `port`
|
9561
9606
|
# @return [Fixnum]
|
9562
9607
|
attr_accessor :port
|
@@ -12213,9 +12258,9 @@ module Google
|
|
12213
12258
|
# @return [Array<String>]
|
12214
12259
|
attr_accessor :target_pools
|
12215
12260
|
|
12216
|
-
# The target number of running instances for this managed instance group.
|
12217
|
-
#
|
12218
|
-
# changes this number.
|
12261
|
+
# The target number of running instances for this managed instance group. You
|
12262
|
+
# can reduce this number by using the instanceGroupManager deleteInstances or
|
12263
|
+
# abandonInstances methods. Resizing the group also changes this number.
|
12219
12264
|
# Corresponds to the JSON property `targetSize`
|
12220
12265
|
# @return [Fixnum]
|
12221
12266
|
attr_accessor :target_size
|
@@ -17475,7 +17520,11 @@ module Google
|
|
17475
17520
|
end
|
17476
17521
|
end
|
17477
17522
|
|
17478
|
-
#
|
17523
|
+
# Represents a machine image resource.
|
17524
|
+
# A machine image is a Compute Engine resource that stores all the configuration,
|
17525
|
+
# metadata, permissions, and data from one or more disks required to create a
|
17526
|
+
# Virtual machine (VM) instance. For more information, see Machine images. (==
|
17527
|
+
# resource_for `$api_version`.machineImages ==)
|
17479
17528
|
class MachineImage
|
17480
17529
|
include Google::Apis::Core::Hashable
|
17481
17530
|
|
@@ -20863,25 +20912,6 @@ module Google
|
|
20863
20912
|
end
|
20864
20913
|
end
|
20865
20914
|
|
20866
|
-
#
|
20867
|
-
class NodeGroupsSetAutoscalingPolicyRequest
|
20868
|
-
include Google::Apis::Core::Hashable
|
20869
|
-
|
20870
|
-
#
|
20871
|
-
# Corresponds to the JSON property `autoscalingPolicy`
|
20872
|
-
# @return [Google::Apis::ComputeAlpha::NodeGroupAutoscalingPolicy]
|
20873
|
-
attr_accessor :autoscaling_policy
|
20874
|
-
|
20875
|
-
def initialize(**args)
|
20876
|
-
update!(**args)
|
20877
|
-
end
|
20878
|
-
|
20879
|
-
# Update properties of this object
|
20880
|
-
def update!(**args)
|
20881
|
-
@autoscaling_policy = args[:autoscaling_policy] if args.key?(:autoscaling_policy)
|
20882
|
-
end
|
20883
|
-
end
|
20884
|
-
|
20885
20915
|
#
|
20886
20916
|
class NodeGroupsSetNodeTemplateRequest
|
20887
20917
|
include Google::Apis::Core::Hashable
|
@@ -24679,7 +24709,7 @@ module Google
|
|
24679
24709
|
|
24680
24710
|
# [Output Only] The status of the public delegated prefix.
|
24681
24711
|
# Corresponds to the JSON property `status`
|
24682
|
-
# @return [
|
24712
|
+
# @return [String]
|
24683
24713
|
attr_accessor :status
|
24684
24714
|
|
24685
24715
|
def initialize(**args)
|
@@ -24982,7 +25012,7 @@ module Google
|
|
24982
25012
|
|
24983
25013
|
# [Output Only] The status of the sub public delegated prefix.
|
24984
25014
|
# Corresponds to the JSON property `status`
|
24985
|
-
# @return [
|
25015
|
+
# @return [String]
|
24986
25016
|
attr_accessor :status
|
24987
25017
|
|
24988
25018
|
def initialize(**args)
|
@@ -25405,7 +25435,7 @@ module Google
|
|
25405
25435
|
class RegionCommitmentsUpdateReservationsRequest
|
25406
25436
|
include Google::Apis::Core::Hashable
|
25407
25437
|
|
25408
|
-
#
|
25438
|
+
# A list of two reservations to transfer GPUs and local SSD between.
|
25409
25439
|
# Corresponds to the JSON property `reservations`
|
25410
25440
|
# @return [Array<Google::Apis::ComputeAlpha::Reservation>]
|
25411
25441
|
attr_accessor :reservations
|
@@ -29941,6 +29971,32 @@ module Google
|
|
29941
29971
|
end
|
29942
29972
|
end
|
29943
29973
|
|
29974
|
+
# An instance's screenshot.
|
29975
|
+
class Screenshot
|
29976
|
+
include Google::Apis::Core::Hashable
|
29977
|
+
|
29978
|
+
# [Output Only] The Base64-encoded screenshot data.
|
29979
|
+
# Corresponds to the JSON property `contents`
|
29980
|
+
# @return [String]
|
29981
|
+
attr_accessor :contents
|
29982
|
+
|
29983
|
+
# [Output Only] Type of the resource. Always compute#screenshot for the
|
29984
|
+
# screenshots.
|
29985
|
+
# Corresponds to the JSON property `kind`
|
29986
|
+
# @return [String]
|
29987
|
+
attr_accessor :kind
|
29988
|
+
|
29989
|
+
def initialize(**args)
|
29990
|
+
update!(**args)
|
29991
|
+
end
|
29992
|
+
|
29993
|
+
# Update properties of this object
|
29994
|
+
def update!(**args)
|
29995
|
+
@contents = args[:contents] if args.key?(:contents)
|
29996
|
+
@kind = args[:kind] if args.key?(:kind)
|
29997
|
+
end
|
29998
|
+
end
|
29999
|
+
|
29944
30000
|
# The configuration to access the SDS server.
|
29945
30001
|
class SdsConfig
|
29946
30002
|
include Google::Apis::Core::Hashable
|
@@ -30005,7 +30061,7 @@ module Google
|
|
30005
30061
|
class SecurityPolicy
|
30006
30062
|
include Google::Apis::Core::Hashable
|
30007
30063
|
|
30008
|
-
# A list of
|
30064
|
+
# A list of associations that belong to this policy.
|
30009
30065
|
# Corresponds to the JSON property `associations`
|
30010
30066
|
# @return [Array<Google::Apis::ComputeAlpha::SecurityPolicyAssociation>]
|
30011
30067
|
attr_accessor :associations
|
@@ -30026,6 +30082,18 @@ module Google
|
|
30026
30082
|
# @return [String]
|
30027
30083
|
attr_accessor :description
|
30028
30084
|
|
30085
|
+
# User-provided name of the Organization security plicy. The name should be
|
30086
|
+
# unique in the organization in which the security policy is created. This
|
30087
|
+
# should only be used when SecurityPolicyType is FIREWALL. The name must be 1-63
|
30088
|
+
# characters long, and comply with RFC1035. Specifically, the name must be 1-63
|
30089
|
+
# characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`
|
30090
|
+
# which means the first character must be a lowercase letter, and all following
|
30091
|
+
# characters must be a dash, lowercase letter, or digit, except the last
|
30092
|
+
# character, which cannot be a dash.
|
30093
|
+
# Corresponds to the JSON property `displayName`
|
30094
|
+
# @return [String]
|
30095
|
+
attr_accessor :display_name
|
30096
|
+
|
30029
30097
|
# Specifies a fingerprint for this resource, which is essentially a hash of the
|
30030
30098
|
# metadata's contents and used for optimistic locking. The fingerprint is
|
30031
30099
|
# initially generated by Compute Engine and changes after every request to
|
@@ -30078,6 +30146,11 @@ module Google
|
|
30078
30146
|
# @return [String]
|
30079
30147
|
attr_accessor :name
|
30080
30148
|
|
30149
|
+
# [Output Only] The parent of the security policy.
|
30150
|
+
# Corresponds to the JSON property `parent`
|
30151
|
+
# @return [String]
|
30152
|
+
attr_accessor :parent
|
30153
|
+
|
30081
30154
|
# [Output Only] Total count of all security policy rule tuples. A security
|
30082
30155
|
# policy can not exceed a set number of tuples.
|
30083
30156
|
# Corresponds to the JSON property `ruleTupleCount`
|
@@ -30118,12 +30191,14 @@ module Google
|
|
30118
30191
|
@cloud_armor_config = args[:cloud_armor_config] if args.key?(:cloud_armor_config)
|
30119
30192
|
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
30120
30193
|
@description = args[:description] if args.key?(:description)
|
30194
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
30121
30195
|
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
|
30122
30196
|
@id = args[:id] if args.key?(:id)
|
30123
30197
|
@kind = args[:kind] if args.key?(:kind)
|
30124
30198
|
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
30125
30199
|
@labels = args[:labels] if args.key?(:labels)
|
30126
30200
|
@name = args[:name] if args.key?(:name)
|
30201
|
+
@parent = args[:parent] if args.key?(:parent)
|
30127
30202
|
@rule_tuple_count = args[:rule_tuple_count] if args.key?(:rule_tuple_count)
|
30128
30203
|
@rules = args[:rules] if args.key?(:rules)
|
30129
30204
|
@self_link = args[:self_link] if args.key?(:self_link)
|
@@ -30141,6 +30216,11 @@ module Google
|
|
30141
30216
|
# @return [String]
|
30142
30217
|
attr_accessor :attachment_id
|
30143
30218
|
|
30219
|
+
# [Output Only] The display name of the security policy of the association.
|
30220
|
+
# Corresponds to the JSON property `displayName`
|
30221
|
+
# @return [String]
|
30222
|
+
attr_accessor :display_name
|
30223
|
+
|
30144
30224
|
# The name for an association.
|
30145
30225
|
# Corresponds to the JSON property `name`
|
30146
30226
|
# @return [String]
|
@@ -30158,6 +30238,7 @@ module Google
|
|
30158
30238
|
# Update properties of this object
|
30159
30239
|
def update!(**args)
|
30160
30240
|
@attachment_id = args[:attachment_id] if args.key?(:attachment_id)
|
30241
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
30161
30242
|
@name = args[:name] if args.key?(:name)
|
30162
30243
|
@security_policy_id = args[:security_policy_id] if args.key?(:security_policy_id)
|
30163
30244
|
end
|
@@ -30394,6 +30475,12 @@ module Google
|
|
30394
30475
|
# @return [Array<String>]
|
30395
30476
|
attr_accessor :target_resources
|
30396
30477
|
|
30478
|
+
# A list of service accounts indicating the sets of instances that are applied
|
30479
|
+
# with this rule.
|
30480
|
+
# Corresponds to the JSON property `targetServiceAccounts`
|
30481
|
+
# @return [Array<String>]
|
30482
|
+
attr_accessor :target_service_accounts
|
30483
|
+
|
30397
30484
|
def initialize(**args)
|
30398
30485
|
update!(**args)
|
30399
30486
|
end
|
@@ -30411,6 +30498,7 @@ module Google
|
|
30411
30498
|
@rate_limit_options = args[:rate_limit_options] if args.key?(:rate_limit_options)
|
30412
30499
|
@rule_tuple_count = args[:rule_tuple_count] if args.key?(:rule_tuple_count)
|
30413
30500
|
@target_resources = args[:target_resources] if args.key?(:target_resources)
|
30501
|
+
@target_service_accounts = args[:target_service_accounts] if args.key?(:target_service_accounts)
|
30414
30502
|
end
|
30415
30503
|
end
|
30416
30504
|
|
@@ -30426,9 +30514,26 @@ module Google
|
|
30426
30514
|
# @return [Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherConfig]
|
30427
30515
|
attr_accessor :config
|
30428
30516
|
|
30429
|
-
# Represents
|
30430
|
-
#
|
30431
|
-
#
|
30517
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
30518
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
30519
|
+
# documented at https://github.com/google/cel-spec.
|
30520
|
+
# Example (Comparison):
|
30521
|
+
# title: "Summary size limit" description: "Determines if a summary is less than
|
30522
|
+
# 100 chars" expression: "document.summary.size() < 100"
|
30523
|
+
# Example (Equality):
|
30524
|
+
# title: "Requestor is owner" description: "Determines if requestor is the
|
30525
|
+
# document owner" expression: "document.owner == request.auth.claims.email"
|
30526
|
+
# Example (Logic):
|
30527
|
+
# title: "Public documents" description: "Determine whether the document should
|
30528
|
+
# be publicly visible" expression: "document.type != 'private' && document.type !
|
30529
|
+
# = 'internal'"
|
30530
|
+
# Example (Data Manipulation):
|
30531
|
+
# title: "Notification string" description: "Create a notification string with a
|
30532
|
+
# timestamp." expression: "'New message received at ' + string(document.
|
30533
|
+
# create_time)"
|
30534
|
+
# The exact variables and functions that may be referenced within an expression
|
30535
|
+
# are determined by the service that evaluates it. See the service documentation
|
30536
|
+
# for additional information.
|
30432
30537
|
# Corresponds to the JSON property `expr`
|
30433
30538
|
# @return [Google::Apis::ComputeAlpha::Expr]
|
30434
30539
|
attr_accessor :expr
|
@@ -30469,6 +30574,12 @@ module Google
|
|
30469
30574
|
# @return [Array<Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherConfigDestinationPort>]
|
30470
30575
|
attr_accessor :dest_ports
|
30471
30576
|
|
30577
|
+
# Pairs of IP protocols and ports that the rule should match.
|
30578
|
+
# This field may only be specified when versioned_expr is set to FIREWALL.
|
30579
|
+
# Corresponds to the JSON property `layer4Configs`
|
30580
|
+
# @return [Array<Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherConfigLayer4Config>]
|
30581
|
+
attr_accessor :layer4_configs
|
30582
|
+
|
30472
30583
|
# CIDR IP address range.
|
30473
30584
|
# Corresponds to the JSON property `srcIpRanges`
|
30474
30585
|
# @return [Array<String>]
|
@@ -30482,6 +30593,7 @@ module Google
|
|
30482
30593
|
def update!(**args)
|
30483
30594
|
@dest_ip_ranges = args[:dest_ip_ranges] if args.key?(:dest_ip_ranges)
|
30484
30595
|
@dest_ports = args[:dest_ports] if args.key?(:dest_ports)
|
30596
|
+
@layer4_configs = args[:layer4_configs] if args.key?(:layer4_configs)
|
30485
30597
|
@src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges)
|
30486
30598
|
end
|
30487
30599
|
end
|
@@ -30518,6 +30630,38 @@ module Google
|
|
30518
30630
|
end
|
30519
30631
|
end
|
30520
30632
|
|
30633
|
+
#
|
30634
|
+
class SecurityPolicyRuleMatcherConfigLayer4Config
|
30635
|
+
include Google::Apis::Core::Hashable
|
30636
|
+
|
30637
|
+
# The IP protocol to which this rule applies. The protocol type is required when
|
30638
|
+
# creating a firewall rule. This value can either be one of the following well
|
30639
|
+
# known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP
|
30640
|
+
# protocol number.
|
30641
|
+
# Corresponds to the JSON property `ipProtocol`
|
30642
|
+
# @return [String]
|
30643
|
+
attr_accessor :ip_protocol
|
30644
|
+
|
30645
|
+
# An optional list of ports to which this rule applies. This field is only
|
30646
|
+
# applicable for UDP or TCP protocol. Each entry must be either an integer or a
|
30647
|
+
# range. If not specified, this rule applies to connections through any port.
|
30648
|
+
# Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
|
30649
|
+
# This field may only be specified when versioned_expr is set to FIREWALL.
|
30650
|
+
# Corresponds to the JSON property `ports`
|
30651
|
+
# @return [Array<String>]
|
30652
|
+
attr_accessor :ports
|
30653
|
+
|
30654
|
+
def initialize(**args)
|
30655
|
+
update!(**args)
|
30656
|
+
end
|
30657
|
+
|
30658
|
+
# Update properties of this object
|
30659
|
+
def update!(**args)
|
30660
|
+
@ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
|
30661
|
+
@ports = args[:ports] if args.key?(:ports)
|
30662
|
+
end
|
30663
|
+
end
|
30664
|
+
|
30521
30665
|
#
|
30522
30666
|
class SecurityPolicyRuleRateLimitOptions
|
30523
30667
|
include Google::Apis::Core::Hashable
|