google-apis-beyondcorp_v1alpha 0.3.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/lib/google/apis/beyondcorp_v1alpha/classes.rb +814 -5
- data/lib/google/apis/beyondcorp_v1alpha/gem_version.rb +3 -3
- data/lib/google/apis/beyondcorp_v1alpha/representations.rb +322 -0
- data/lib/google/apis/beyondcorp_v1alpha/service.rb +497 -13
- data/lib/google/apis/beyondcorp_v1alpha.rb +1 -1
- metadata +5 -5
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# Beyondcorp Enterprise provides identity and context aware access controls for
|
26
26
|
# enterprise resources and enables zero-trust access. Using the Beyondcorp
|
27
27
|
# Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity
|
28
|
-
#
|
28
|
+
# solutions.
|
29
29
|
#
|
30
30
|
# @example
|
31
31
|
# require 'google/apis/beyondcorp_v1alpha'
|
@@ -52,6 +52,187 @@ module Google
|
|
52
52
|
@batch_path = 'batch'
|
53
53
|
end
|
54
54
|
|
55
|
+
# Gets the value for a selected particular insight based on the provided filters.
|
56
|
+
# Use the organization level path for fetching at org level and project level
|
57
|
+
# path for fetching the insight value specific to a particular project.
|
58
|
+
# @param [String] insight
|
59
|
+
# Required. The resource name of the insight using the form: `organizations/`
|
60
|
+
# organization_id`/locations/`location_id`/insights/`insight_id`` `projects/`
|
61
|
+
# project_id`/locations/`location_id`/insights/`insight_id``.
|
62
|
+
# @param [String] aggregation
|
63
|
+
# Optional. Aggregation type. Available aggregation could be fetched by calling
|
64
|
+
# insight list and get APIs in `BASIC` view.
|
65
|
+
# @param [String] custom_grouping_field_filter
|
66
|
+
# Optional. Filterable parameters to be added to the grouping clause. Available
|
67
|
+
# fields could be fetched by calling insight list and get APIs in `BASIC` view. `
|
68
|
+
# =` is the only comparison operator supported. `AND` is the only logical
|
69
|
+
# operator supported. Usage: field_filter="fieldName1=fieldVal1 AND fieldName2=
|
70
|
+
# fieldVal2". NOTE: Only `AND` conditions are allowed. NOTE: Use the `
|
71
|
+
# filter_alias` from `Insight.Metadata.Field` message for the filtering the
|
72
|
+
# corresponding fields in this filter field. (These expressions are based on the
|
73
|
+
# filter language described at https://google.aip.dev/160).
|
74
|
+
# @param [Array<String>, String] custom_grouping_group_fields
|
75
|
+
# Required. Fields to be used for grouping. NOTE: Use the `filter_alias` from `
|
76
|
+
# Insight.Metadata.Field` message for declaring the fields to be grouped-by here.
|
77
|
+
# @param [String] end_time
|
78
|
+
# Required. Ending time for the duration for which insight is to be pulled.
|
79
|
+
# @param [String] field_filter
|
80
|
+
# Optional. Other filterable/configurable parameters as applicable to the
|
81
|
+
# selected insight. Available fields could be fetched by calling insight list
|
82
|
+
# and get APIs in `BASIC` view. `=` is the only comparison operator supported. `
|
83
|
+
# AND` is the only logical operator supported. Usage: field_filter="fieldName1=
|
84
|
+
# fieldVal1 AND fieldName2=fieldVal2". NOTE: Only `AND` conditions are allowed.
|
85
|
+
# NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for the
|
86
|
+
# filtering the corresponding fields in this filter field. (These expressions
|
87
|
+
# are based on the filter language described at https://google.aip.dev/160).
|
88
|
+
# @param [String] group
|
89
|
+
# Optional. Group id of the available groupings for the insight. Available
|
90
|
+
# groupings could be fetched by calling insight list and get APIs in `BASIC`
|
91
|
+
# view.
|
92
|
+
# @param [Fixnum] page_size
|
93
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
94
|
+
# If unspecified, server will pick an appropriate default.
|
95
|
+
# @param [String] page_token
|
96
|
+
# Optional. Used to fetch the page represented by the token. Fetches the first
|
97
|
+
# page when not set.
|
98
|
+
# @param [String] start_time
|
99
|
+
# Required. Starting time for the duration for which insight is to be pulled.
|
100
|
+
# @param [String] fields
|
101
|
+
# Selector specifying which fields to include in a partial response.
|
102
|
+
# @param [String] quota_user
|
103
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
104
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
105
|
+
# @param [Google::Apis::RequestOptions] options
|
106
|
+
# Request-specific options
|
107
|
+
#
|
108
|
+
# @yield [result, err] Result & error if block supplied
|
109
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaConfiguredInsightResponse] parsed result object
|
110
|
+
# @yieldparam err [StandardError] error object if request failed
|
111
|
+
#
|
112
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaConfiguredInsightResponse]
|
113
|
+
#
|
114
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
115
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
116
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
117
|
+
def configured_organization_location_insight_insight(insight, aggregation: nil, custom_grouping_field_filter: nil, custom_grouping_group_fields: nil, end_time: nil, field_filter: nil, group: nil, page_size: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
118
|
+
command = make_simple_command(:get, 'v1alpha/{+insight}:configuredInsight', options)
|
119
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaConfiguredInsightResponse::Representation
|
120
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaConfiguredInsightResponse
|
121
|
+
command.params['insight'] = insight unless insight.nil?
|
122
|
+
command.query['aggregation'] = aggregation unless aggregation.nil?
|
123
|
+
command.query['customGrouping.fieldFilter'] = custom_grouping_field_filter unless custom_grouping_field_filter.nil?
|
124
|
+
command.query['customGrouping.groupFields'] = custom_grouping_group_fields unless custom_grouping_group_fields.nil?
|
125
|
+
command.query['endTime'] = end_time unless end_time.nil?
|
126
|
+
command.query['fieldFilter'] = field_filter unless field_filter.nil?
|
127
|
+
command.query['group'] = group unless group.nil?
|
128
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
129
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
130
|
+
command.query['startTime'] = start_time unless start_time.nil?
|
131
|
+
command.query['fields'] = fields unless fields.nil?
|
132
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
133
|
+
execute_or_queue_command(command, &block)
|
134
|
+
end
|
135
|
+
|
136
|
+
# Gets the value for a selected particular insight with default configuration.
|
137
|
+
# The default aggregation level is 'DAILY' and no grouping will be applied or
|
138
|
+
# default grouping if applicable. The data will be returned for recent 7 days.
|
139
|
+
# Use the organization level path for fetching at org level and project level
|
140
|
+
# path for fetching the insight value specific to a particular project. Setting
|
141
|
+
# the `view` to `BASIC` will only return the metadata for the insight.
|
142
|
+
# @param [String] name
|
143
|
+
# Required. The resource name of the insight using the form: `organizations/`
|
144
|
+
# organization_id`/locations/`location_id`/insights/`insight_id`` `projects/`
|
145
|
+
# project_id`/locations/`location_id`/insights/`insight_id``
|
146
|
+
# @param [String] view
|
147
|
+
# Required. Metadata only or full data view.
|
148
|
+
# @param [String] fields
|
149
|
+
# Selector specifying which fields to include in a partial response.
|
150
|
+
# @param [String] quota_user
|
151
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
152
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
153
|
+
# @param [Google::Apis::RequestOptions] options
|
154
|
+
# Request-specific options
|
155
|
+
#
|
156
|
+
# @yield [result, err] Result & error if block supplied
|
157
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaInsight] parsed result object
|
158
|
+
# @yieldparam err [StandardError] error object if request failed
|
159
|
+
#
|
160
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaInsight]
|
161
|
+
#
|
162
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
163
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
164
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
165
|
+
def get_organization_location_insight(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
166
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
167
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaInsight::Representation
|
168
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaInsight
|
169
|
+
command.params['name'] = name unless name.nil?
|
170
|
+
command.query['view'] = view unless view.nil?
|
171
|
+
command.query['fields'] = fields unless fields.nil?
|
172
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
173
|
+
execute_or_queue_command(command, &block)
|
174
|
+
end
|
175
|
+
|
176
|
+
# Lists for all the available insights that could be fetched from the system.
|
177
|
+
# Allows to filter using category. Setting the `view` to `BASIC` will let you
|
178
|
+
# iterate over the list of insight metadatas.
|
179
|
+
# @param [String] parent
|
180
|
+
# Required. The resource name of InsightMetadata using the form: `organizations/`
|
181
|
+
# organization_id`/locations/`location`` `projects/`project_id`/locations/`
|
182
|
+
# location_id``
|
183
|
+
# @param [String] filter
|
184
|
+
# Optional. Filter expression to restrict the insights returned. Supported
|
185
|
+
# filter fields: * `type` * `category` * `subCategory` Examples: * "category =
|
186
|
+
# application AND type = count" * "category = application AND subCategory = iap"
|
187
|
+
# * "type = status" Allowed values: * type: [count, latency, status, list] *
|
188
|
+
# category: [application, device, request, security] * subCategory: [iap,
|
189
|
+
# webprotect] NOTE: Only equality based comparison is allowed. Only `AND`
|
190
|
+
# conjunction is allowed. NOTE: The 'AND' in the filter field needs to be in
|
191
|
+
# capital letters only. NOTE: Just filtering on `subCategory` is not allowed. It
|
192
|
+
# should be passed in with the parent `category` too. (These expressions are
|
193
|
+
# based on the filter language described at https://google.aip.dev/160).
|
194
|
+
# @param [String] order_by
|
195
|
+
# Optional. Hint for how to order the results. This is currently ignored.
|
196
|
+
# @param [Fixnum] page_size
|
197
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
198
|
+
# If unspecified, server will pick an appropriate default. NOTE: Default page
|
199
|
+
# size is 50.
|
200
|
+
# @param [String] page_token
|
201
|
+
# Optional. A token identifying a page of results the server should return.
|
202
|
+
# @param [String] view
|
203
|
+
# Required. List only metadata or full data.
|
204
|
+
# @param [String] fields
|
205
|
+
# Selector specifying which fields to include in a partial response.
|
206
|
+
# @param [String] quota_user
|
207
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
208
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
209
|
+
# @param [Google::Apis::RequestOptions] options
|
210
|
+
# Request-specific options
|
211
|
+
#
|
212
|
+
# @yield [result, err] Result & error if block supplied
|
213
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaListInsightsResponse] parsed result object
|
214
|
+
# @yieldparam err [StandardError] error object if request failed
|
215
|
+
#
|
216
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaListInsightsResponse]
|
217
|
+
#
|
218
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
219
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
220
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
221
|
+
def list_organization_location_insights(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
222
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/insights', options)
|
223
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaListInsightsResponse::Representation
|
224
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaListInsightsResponse
|
225
|
+
command.params['parent'] = parent unless parent.nil?
|
226
|
+
command.query['filter'] = filter unless filter.nil?
|
227
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
228
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
229
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
230
|
+
command.query['view'] = view unless view.nil?
|
231
|
+
command.query['fields'] = fields unless fields.nil?
|
232
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
233
|
+
execute_or_queue_command(command, &block)
|
234
|
+
end
|
235
|
+
|
55
236
|
# Gets information about a location.
|
56
237
|
# @param [String] name
|
57
238
|
# Resource name for the location.
|
@@ -132,7 +313,7 @@ module Google
|
|
132
313
|
# @param [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection] google_cloud_beyondcorp_appconnections_v1alpha_app_connection_object
|
133
314
|
# @param [String] app_connection_id
|
134
315
|
# Optional. User-settable AppConnection resource ID. * Must start with a letter.
|
135
|
-
# * Must contain between 4-63 characters from
|
316
|
+
# * Must contain between 4-63 characters from `/a-z-/`. * Must end with a number
|
136
317
|
# or a letter.
|
137
318
|
# @param [String] request_id
|
138
319
|
# Optional. An optional request ID to identify requests. Specify a unique
|
@@ -542,7 +723,7 @@ module Google
|
|
542
723
|
# @param [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector] google_cloud_beyondcorp_appconnectors_v1alpha_app_connector_object
|
543
724
|
# @param [String] app_connector_id
|
544
725
|
# Optional. User-settable AppConnector resource ID. * Must start with a letter. *
|
545
|
-
# Must contain between 4-63 characters from
|
726
|
+
# Must contain between 4-63 characters from `/a-z-/`. * Must end with a number
|
546
727
|
# or a letter.
|
547
728
|
# @param [String] request_id
|
548
729
|
# Optional. An optional request ID to identify requests. Specify a unique
|
@@ -851,8 +1032,8 @@ module Google
|
|
851
1032
|
execute_or_queue_command(command, &block)
|
852
1033
|
end
|
853
1034
|
|
854
|
-
#
|
855
|
-
# AppConnector to get its container config.
|
1035
|
+
# Gets instance configuration for a given AppConnector. An internal method
|
1036
|
+
# called by a AppConnector to get its container config.
|
856
1037
|
# @param [String] app_connector
|
857
1038
|
# Required. BeyondCorp AppConnector name using the form: `projects/`project_id`/
|
858
1039
|
# locations/`location_id`/appConnectors/`app_connector``
|
@@ -966,7 +1147,7 @@ module Google
|
|
966
1147
|
# @param [Google::Apis::BeyondcorpV1alpha::AppGateway] app_gateway_object
|
967
1148
|
# @param [String] app_gateway_id
|
968
1149
|
# Optional. User-settable AppGateway resource ID. * Must start with a letter. *
|
969
|
-
# Must contain between 4-63 characters from
|
1150
|
+
# Must contain between 4-63 characters from `/a-z-/`. * Must end with a number
|
970
1151
|
# or a letter.
|
971
1152
|
# @param [String] request_id
|
972
1153
|
# Optional. An optional request ID to identify requests. Specify a unique
|
@@ -1262,13 +1443,134 @@ module Google
|
|
1262
1443
|
execute_or_queue_command(command, &block)
|
1263
1444
|
end
|
1264
1445
|
|
1446
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1447
|
+
# resource exists and does not have a policy set.
|
1448
|
+
# @param [String] resource
|
1449
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
1450
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1451
|
+
# appropriate value for this field.
|
1452
|
+
# @param [Fixnum] options_requested_policy_version
|
1453
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1454
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1455
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1456
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1457
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1458
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1459
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1460
|
+
# bindings, the response uses version 1. To learn which resources support
|
1461
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1462
|
+
# google.com/iam/help/conditions/resource-policies).
|
1463
|
+
# @param [String] fields
|
1464
|
+
# Selector specifying which fields to include in a partial response.
|
1465
|
+
# @param [String] quota_user
|
1466
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1467
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1468
|
+
# @param [Google::Apis::RequestOptions] options
|
1469
|
+
# Request-specific options
|
1470
|
+
#
|
1471
|
+
# @yield [result, err] Result & error if block supplied
|
1472
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
|
1473
|
+
# @yieldparam err [StandardError] error object if request failed
|
1474
|
+
#
|
1475
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
|
1476
|
+
#
|
1477
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1478
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1479
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1480
|
+
def get_project_location_application_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1481
|
+
command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
|
1482
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
|
1483
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
|
1484
|
+
command.params['resource'] = resource unless resource.nil?
|
1485
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1486
|
+
command.query['fields'] = fields unless fields.nil?
|
1487
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1488
|
+
execute_or_queue_command(command, &block)
|
1489
|
+
end
|
1490
|
+
|
1491
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1492
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1493
|
+
# PERMISSION_DENIED` errors.
|
1494
|
+
# @param [String] resource
|
1495
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
1496
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1497
|
+
# appropriate value for this field.
|
1498
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
|
1499
|
+
# @param [String] fields
|
1500
|
+
# Selector specifying which fields to include in a partial response.
|
1501
|
+
# @param [String] quota_user
|
1502
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1503
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1504
|
+
# @param [Google::Apis::RequestOptions] options
|
1505
|
+
# Request-specific options
|
1506
|
+
#
|
1507
|
+
# @yield [result, err] Result & error if block supplied
|
1508
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
|
1509
|
+
# @yieldparam err [StandardError] error object if request failed
|
1510
|
+
#
|
1511
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
|
1512
|
+
#
|
1513
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1514
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1515
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1516
|
+
def set_project_location_application_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1517
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
|
1518
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest::Representation
|
1519
|
+
command.request_object = google_iam_v1_set_iam_policy_request_object
|
1520
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
|
1521
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
|
1522
|
+
command.params['resource'] = resource unless resource.nil?
|
1523
|
+
command.query['fields'] = fields unless fields.nil?
|
1524
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1525
|
+
execute_or_queue_command(command, &block)
|
1526
|
+
end
|
1527
|
+
|
1528
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1529
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1530
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1531
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1532
|
+
# This operation may "fail open" without warning.
|
1533
|
+
# @param [String] resource
|
1534
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
1535
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
1536
|
+
# appropriate value for this field.
|
1537
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
|
1538
|
+
# @param [String] fields
|
1539
|
+
# Selector specifying which fields to include in a partial response.
|
1540
|
+
# @param [String] quota_user
|
1541
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1542
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1543
|
+
# @param [Google::Apis::RequestOptions] options
|
1544
|
+
# Request-specific options
|
1545
|
+
#
|
1546
|
+
# @yield [result, err] Result & error if block supplied
|
1547
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
1548
|
+
# @yieldparam err [StandardError] error object if request failed
|
1549
|
+
#
|
1550
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse]
|
1551
|
+
#
|
1552
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1553
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1554
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1555
|
+
def test_project_location_application_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1556
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
|
1557
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest::Representation
|
1558
|
+
command.request_object = google_iam_v1_test_iam_permissions_request_object
|
1559
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse::Representation
|
1560
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse
|
1561
|
+
command.params['resource'] = resource unless resource.nil?
|
1562
|
+
command.query['fields'] = fields unless fields.nil?
|
1563
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1564
|
+
execute_or_queue_command(command, &block)
|
1565
|
+
end
|
1566
|
+
|
1265
1567
|
# Creates a new ClientConnectorService in a given project and location.
|
1266
1568
|
# @param [String] parent
|
1267
1569
|
# Required. Value for parent.
|
1268
1570
|
# @param [Google::Apis::BeyondcorpV1alpha::ClientConnectorService] client_connector_service_object
|
1269
1571
|
# @param [String] client_connector_service_id
|
1270
1572
|
# Optional. User-settable client connector service resource ID. * Must start
|
1271
|
-
# with a letter. * Must contain between 4-63 characters from
|
1573
|
+
# with a letter. * Must contain between 4-63 characters from `/a-z-/`. * Must
|
1272
1574
|
# end with a number or a letter. A random system generated name will be assigned
|
1273
1575
|
# if not specified by the user.
|
1274
1576
|
# @param [String] request_id
|
@@ -1503,7 +1805,8 @@ module Google
|
|
1503
1805
|
# ClientConnectorService resource by the update. The fields specified in the
|
1504
1806
|
# update_mask are relative to the resource, not the full request. A field will
|
1505
1807
|
# be overwritten if it is in the mask. If the user does not provide a mask then
|
1506
|
-
# all fields will be overwritten. Mutable fields: display_name.
|
1808
|
+
# all fields will be overwritten. Mutable fields: display_name, ingress.config.
|
1809
|
+
# destination_routes.
|
1507
1810
|
# @param [Boolean] validate_only
|
1508
1811
|
# Optional. If set, validates request by executing a dry-run which would not
|
1509
1812
|
# alter the resource in any way.
|
@@ -1622,7 +1925,7 @@ module Google
|
|
1622
1925
|
# @param [Google::Apis::BeyondcorpV1alpha::ClientGateway] client_gateway_object
|
1623
1926
|
# @param [String] client_gateway_id
|
1624
1927
|
# Optional. User-settable client gateway resource ID. * Must start with a letter.
|
1625
|
-
# * Must contain between 4-63 characters from
|
1928
|
+
# * Must contain between 4-63 characters from `/a-z-/`. * Must end with a
|
1626
1929
|
# number or a letter.
|
1627
1930
|
# @param [String] request_id
|
1628
1931
|
# Optional. An optional request ID to identify requests. Specify a unique
|
@@ -1917,7 +2220,7 @@ module Google
|
|
1917
2220
|
# @param [Google::Apis::BeyondcorpV1alpha::Connection] connection_object
|
1918
2221
|
# @param [String] connection_id
|
1919
2222
|
# Optional. User-settable connection resource ID. * Must start with a letter. *
|
1920
|
-
# Must contain between 4-63 characters from
|
2223
|
+
# Must contain between 4-63 characters from `/a-z-/`. * Must end with a number
|
1921
2224
|
# or a letter.
|
1922
2225
|
# @param [String] request_id
|
1923
2226
|
# Optional. An optional request ID to identify requests. Specify a unique
|
@@ -2327,7 +2630,7 @@ module Google
|
|
2327
2630
|
# @param [Google::Apis::BeyondcorpV1alpha::Connector] connector_object
|
2328
2631
|
# @param [String] connector_id
|
2329
2632
|
# Optional. User-settable connector resource ID. * Must start with a letter. *
|
2330
|
-
# Must contain between 4-63 characters from
|
2633
|
+
# Must contain between 4-63 characters from `/a-z-/`. * Must end with a number
|
2331
2634
|
# or a letter.
|
2332
2635
|
# @param [String] request_id
|
2333
2636
|
# Optional. An optional request ID to identify requests. Specify a unique
|
@@ -2636,8 +2939,8 @@ module Google
|
|
2636
2939
|
execute_or_queue_command(command, &block)
|
2637
2940
|
end
|
2638
2941
|
|
2639
|
-
#
|
2640
|
-
# connector to get its container config.
|
2942
|
+
# Gets instance configuration for a given connector. An internal method called
|
2943
|
+
# by a connector to get its container config.
|
2641
2944
|
# @param [String] connector
|
2642
2945
|
# Required. BeyondCorp Connector name using the form: `projects/`project_id`/
|
2643
2946
|
# locations/`location_id`/connectors/`connector``
|
@@ -2744,6 +3047,187 @@ module Google
|
|
2744
3047
|
execute_or_queue_command(command, &block)
|
2745
3048
|
end
|
2746
3049
|
|
3050
|
+
# Gets the value for a selected particular insight based on the provided filters.
|
3051
|
+
# Use the organization level path for fetching at org level and project level
|
3052
|
+
# path for fetching the insight value specific to a particular project.
|
3053
|
+
# @param [String] insight
|
3054
|
+
# Required. The resource name of the insight using the form: `organizations/`
|
3055
|
+
# organization_id`/locations/`location_id`/insights/`insight_id`` `projects/`
|
3056
|
+
# project_id`/locations/`location_id`/insights/`insight_id``.
|
3057
|
+
# @param [String] aggregation
|
3058
|
+
# Optional. Aggregation type. Available aggregation could be fetched by calling
|
3059
|
+
# insight list and get APIs in `BASIC` view.
|
3060
|
+
# @param [String] custom_grouping_field_filter
|
3061
|
+
# Optional. Filterable parameters to be added to the grouping clause. Available
|
3062
|
+
# fields could be fetched by calling insight list and get APIs in `BASIC` view. `
|
3063
|
+
# =` is the only comparison operator supported. `AND` is the only logical
|
3064
|
+
# operator supported. Usage: field_filter="fieldName1=fieldVal1 AND fieldName2=
|
3065
|
+
# fieldVal2". NOTE: Only `AND` conditions are allowed. NOTE: Use the `
|
3066
|
+
# filter_alias` from `Insight.Metadata.Field` message for the filtering the
|
3067
|
+
# corresponding fields in this filter field. (These expressions are based on the
|
3068
|
+
# filter language described at https://google.aip.dev/160).
|
3069
|
+
# @param [Array<String>, String] custom_grouping_group_fields
|
3070
|
+
# Required. Fields to be used for grouping. NOTE: Use the `filter_alias` from `
|
3071
|
+
# Insight.Metadata.Field` message for declaring the fields to be grouped-by here.
|
3072
|
+
# @param [String] end_time
|
3073
|
+
# Required. Ending time for the duration for which insight is to be pulled.
|
3074
|
+
# @param [String] field_filter
|
3075
|
+
# Optional. Other filterable/configurable parameters as applicable to the
|
3076
|
+
# selected insight. Available fields could be fetched by calling insight list
|
3077
|
+
# and get APIs in `BASIC` view. `=` is the only comparison operator supported. `
|
3078
|
+
# AND` is the only logical operator supported. Usage: field_filter="fieldName1=
|
3079
|
+
# fieldVal1 AND fieldName2=fieldVal2". NOTE: Only `AND` conditions are allowed.
|
3080
|
+
# NOTE: Use the `filter_alias` from `Insight.Metadata.Field` message for the
|
3081
|
+
# filtering the corresponding fields in this filter field. (These expressions
|
3082
|
+
# are based on the filter language described at https://google.aip.dev/160).
|
3083
|
+
# @param [String] group
|
3084
|
+
# Optional. Group id of the available groupings for the insight. Available
|
3085
|
+
# groupings could be fetched by calling insight list and get APIs in `BASIC`
|
3086
|
+
# view.
|
3087
|
+
# @param [Fixnum] page_size
|
3088
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
3089
|
+
# If unspecified, server will pick an appropriate default.
|
3090
|
+
# @param [String] page_token
|
3091
|
+
# Optional. Used to fetch the page represented by the token. Fetches the first
|
3092
|
+
# page when not set.
|
3093
|
+
# @param [String] start_time
|
3094
|
+
# Required. Starting time for the duration for which insight is to be pulled.
|
3095
|
+
# @param [String] fields
|
3096
|
+
# Selector specifying which fields to include in a partial response.
|
3097
|
+
# @param [String] quota_user
|
3098
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3099
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3100
|
+
# @param [Google::Apis::RequestOptions] options
|
3101
|
+
# Request-specific options
|
3102
|
+
#
|
3103
|
+
# @yield [result, err] Result & error if block supplied
|
3104
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaConfiguredInsightResponse] parsed result object
|
3105
|
+
# @yieldparam err [StandardError] error object if request failed
|
3106
|
+
#
|
3107
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaConfiguredInsightResponse]
|
3108
|
+
#
|
3109
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3110
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3111
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3112
|
+
def configured_project_location_insight_insight(insight, aggregation: nil, custom_grouping_field_filter: nil, custom_grouping_group_fields: nil, end_time: nil, field_filter: nil, group: nil, page_size: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3113
|
+
command = make_simple_command(:get, 'v1alpha/{+insight}:configuredInsight', options)
|
3114
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaConfiguredInsightResponse::Representation
|
3115
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaConfiguredInsightResponse
|
3116
|
+
command.params['insight'] = insight unless insight.nil?
|
3117
|
+
command.query['aggregation'] = aggregation unless aggregation.nil?
|
3118
|
+
command.query['customGrouping.fieldFilter'] = custom_grouping_field_filter unless custom_grouping_field_filter.nil?
|
3119
|
+
command.query['customGrouping.groupFields'] = custom_grouping_group_fields unless custom_grouping_group_fields.nil?
|
3120
|
+
command.query['endTime'] = end_time unless end_time.nil?
|
3121
|
+
command.query['fieldFilter'] = field_filter unless field_filter.nil?
|
3122
|
+
command.query['group'] = group unless group.nil?
|
3123
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
3124
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3125
|
+
command.query['startTime'] = start_time unless start_time.nil?
|
3126
|
+
command.query['fields'] = fields unless fields.nil?
|
3127
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3128
|
+
execute_or_queue_command(command, &block)
|
3129
|
+
end
|
3130
|
+
|
3131
|
+
# Gets the value for a selected particular insight with default configuration.
|
3132
|
+
# The default aggregation level is 'DAILY' and no grouping will be applied or
|
3133
|
+
# default grouping if applicable. The data will be returned for recent 7 days.
|
3134
|
+
# Use the organization level path for fetching at org level and project level
|
3135
|
+
# path for fetching the insight value specific to a particular project. Setting
|
3136
|
+
# the `view` to `BASIC` will only return the metadata for the insight.
|
3137
|
+
# @param [String] name
|
3138
|
+
# Required. The resource name of the insight using the form: `organizations/`
|
3139
|
+
# organization_id`/locations/`location_id`/insights/`insight_id`` `projects/`
|
3140
|
+
# project_id`/locations/`location_id`/insights/`insight_id``
|
3141
|
+
# @param [String] view
|
3142
|
+
# Required. Metadata only or full data view.
|
3143
|
+
# @param [String] fields
|
3144
|
+
# Selector specifying which fields to include in a partial response.
|
3145
|
+
# @param [String] quota_user
|
3146
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3147
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3148
|
+
# @param [Google::Apis::RequestOptions] options
|
3149
|
+
# Request-specific options
|
3150
|
+
#
|
3151
|
+
# @yield [result, err] Result & error if block supplied
|
3152
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaInsight] parsed result object
|
3153
|
+
# @yieldparam err [StandardError] error object if request failed
|
3154
|
+
#
|
3155
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaInsight]
|
3156
|
+
#
|
3157
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3158
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3159
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3160
|
+
def get_project_location_insight(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3161
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
3162
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaInsight::Representation
|
3163
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaInsight
|
3164
|
+
command.params['name'] = name unless name.nil?
|
3165
|
+
command.query['view'] = view unless view.nil?
|
3166
|
+
command.query['fields'] = fields unless fields.nil?
|
3167
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3168
|
+
execute_or_queue_command(command, &block)
|
3169
|
+
end
|
3170
|
+
|
3171
|
+
# Lists for all the available insights that could be fetched from the system.
|
3172
|
+
# Allows to filter using category. Setting the `view` to `BASIC` will let you
|
3173
|
+
# iterate over the list of insight metadatas.
|
3174
|
+
# @param [String] parent
|
3175
|
+
# Required. The resource name of InsightMetadata using the form: `organizations/`
|
3176
|
+
# organization_id`/locations/`location`` `projects/`project_id`/locations/`
|
3177
|
+
# location_id``
|
3178
|
+
# @param [String] filter
|
3179
|
+
# Optional. Filter expression to restrict the insights returned. Supported
|
3180
|
+
# filter fields: * `type` * `category` * `subCategory` Examples: * "category =
|
3181
|
+
# application AND type = count" * "category = application AND subCategory = iap"
|
3182
|
+
# * "type = status" Allowed values: * type: [count, latency, status, list] *
|
3183
|
+
# category: [application, device, request, security] * subCategory: [iap,
|
3184
|
+
# webprotect] NOTE: Only equality based comparison is allowed. Only `AND`
|
3185
|
+
# conjunction is allowed. NOTE: The 'AND' in the filter field needs to be in
|
3186
|
+
# capital letters only. NOTE: Just filtering on `subCategory` is not allowed. It
|
3187
|
+
# should be passed in with the parent `category` too. (These expressions are
|
3188
|
+
# based on the filter language described at https://google.aip.dev/160).
|
3189
|
+
# @param [String] order_by
|
3190
|
+
# Optional. Hint for how to order the results. This is currently ignored.
|
3191
|
+
# @param [Fixnum] page_size
|
3192
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
3193
|
+
# If unspecified, server will pick an appropriate default. NOTE: Default page
|
3194
|
+
# size is 50.
|
3195
|
+
# @param [String] page_token
|
3196
|
+
# Optional. A token identifying a page of results the server should return.
|
3197
|
+
# @param [String] view
|
3198
|
+
# Required. List only metadata or full data.
|
3199
|
+
# @param [String] fields
|
3200
|
+
# Selector specifying which fields to include in a partial response.
|
3201
|
+
# @param [String] quota_user
|
3202
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3203
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3204
|
+
# @param [Google::Apis::RequestOptions] options
|
3205
|
+
# Request-specific options
|
3206
|
+
#
|
3207
|
+
# @yield [result, err] Result & error if block supplied
|
3208
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaListInsightsResponse] parsed result object
|
3209
|
+
# @yieldparam err [StandardError] error object if request failed
|
3210
|
+
#
|
3211
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaListInsightsResponse]
|
3212
|
+
#
|
3213
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3214
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3215
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3216
|
+
def list_project_location_insights(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3217
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/insights', options)
|
3218
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaListInsightsResponse::Representation
|
3219
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpSaasplatformInsightsV1alphaListInsightsResponse
|
3220
|
+
command.params['parent'] = parent unless parent.nil?
|
3221
|
+
command.query['filter'] = filter unless filter.nil?
|
3222
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
3223
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
3224
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3225
|
+
command.query['view'] = view unless view.nil?
|
3226
|
+
command.query['fields'] = fields unless fields.nil?
|
3227
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3228
|
+
execute_or_queue_command(command, &block)
|
3229
|
+
end
|
3230
|
+
|
2747
3231
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
2748
3232
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
2749
3233
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -24,7 +24,7 @@ module Google
|
|
24
24
|
# Beyondcorp Enterprise provides identity and context aware access controls for
|
25
25
|
# enterprise resources and enables zero-trust access. Using the Beyondcorp
|
26
26
|
# Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity
|
27
|
-
#
|
27
|
+
# solutions.
|
28
28
|
#
|
29
29
|
# @see https://cloud.google.com/
|
30
30
|
module BeyondcorpV1alpha
|