google-apis-logging_v2 0.65.0 → 0.67.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.
@@ -1652,6 +1652,14 @@ module Google
1652
1652
  # Required. The parent resource whose sinks are to be listed: "projects/[
1653
1653
  # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
1654
1654
  # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
1655
+ # @param [String] filter
1656
+ # Optional. A filter expression to constrain the sinks returned. Today, this
1657
+ # only supports the following strings: '' 'in_scope("ALL")', 'in_scope("ANCESTOR"
1658
+ # )', 'in_scope("DEFAULT")'.Description of scopes below. ALL: Includes all of
1659
+ # the sinks which can be returned in any other scope. ANCESTOR: Includes
1660
+ # intercepting sinks owned by ancestor resources. DEFAULT: Includes sinks owned
1661
+ # by parent.When the empty string is provided, then the filter 'in_scope("
1662
+ # DEFAULT")' is applied.
1655
1663
  # @param [Fixnum] page_size
1656
1664
  # Optional. The maximum number of results to return from this request. Non-
1657
1665
  # positive values are ignored. The presence of nextPageToken in the response
@@ -1678,11 +1686,12 @@ module Google
1678
1686
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1679
1687
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1680
1688
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1681
- def list_billing_account_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1689
+ def list_billing_account_sinks(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1682
1690
  command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
1683
1691
  command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
1684
1692
  command.response_class = Google::Apis::LoggingV2::ListSinksResponse
1685
1693
  command.params['parent'] = parent unless parent.nil?
1694
+ command.query['filter'] = filter unless filter.nil?
1686
1695
  command.query['pageSize'] = page_size unless page_size.nil?
1687
1696
  command.query['pageToken'] = page_token unless page_token.nil?
1688
1697
  command.query['fields'] = fields unless fields.nil?
@@ -3145,6 +3154,42 @@ module Google
3145
3154
  execute_or_queue_command(command, &block)
3146
3155
  end
3147
3156
 
3157
+ # Gets the access control policy for a resource. Returns an empty policy if the
3158
+ # resource exists and does not have a policy set.
3159
+ # @param [String] resource
3160
+ # REQUIRED: The resource for which the policy is being requested. See Resource
3161
+ # names (https://cloud.google.com/apis/design/resource_names) for the
3162
+ # appropriate value for this field.
3163
+ # @param [Google::Apis::LoggingV2::GetIamPolicyRequest] get_iam_policy_request_object
3164
+ # @param [String] fields
3165
+ # Selector specifying which fields to include in a partial response.
3166
+ # @param [String] quota_user
3167
+ # Available to use for quota purposes for server-side applications. Can be any
3168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3169
+ # @param [Google::Apis::RequestOptions] options
3170
+ # Request-specific options
3171
+ #
3172
+ # @yield [result, err] Result & error if block supplied
3173
+ # @yieldparam result [Google::Apis::LoggingV2::Policy] parsed result object
3174
+ # @yieldparam err [StandardError] error object if request failed
3175
+ #
3176
+ # @return [Google::Apis::LoggingV2::Policy]
3177
+ #
3178
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3179
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3180
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3181
+ def get_folder_location_bucket_view_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3182
+ command = make_simple_command(:post, 'v2/{+resource}:getIamPolicy', options)
3183
+ command.request_representation = Google::Apis::LoggingV2::GetIamPolicyRequest::Representation
3184
+ command.request_object = get_iam_policy_request_object
3185
+ command.response_representation = Google::Apis::LoggingV2::Policy::Representation
3186
+ command.response_class = Google::Apis::LoggingV2::Policy
3187
+ command.params['resource'] = resource unless resource.nil?
3188
+ command.query['fields'] = fields unless fields.nil?
3189
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3190
+ execute_or_queue_command(command, &block)
3191
+ end
3192
+
3148
3193
  # Lists views on a log bucket.
3149
3194
  # @param [String] parent
3150
3195
  # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
@@ -3233,6 +3278,82 @@ module Google
3233
3278
  execute_or_queue_command(command, &block)
3234
3279
  end
3235
3280
 
3281
+ # Sets the access control policy on the specified resource. Replaces any
3282
+ # existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
3283
+ # errors.
3284
+ # @param [String] resource
3285
+ # REQUIRED: The resource for which the policy is being specified. See Resource
3286
+ # names (https://cloud.google.com/apis/design/resource_names) for the
3287
+ # appropriate value for this field.
3288
+ # @param [Google::Apis::LoggingV2::SetIamPolicyRequest] set_iam_policy_request_object
3289
+ # @param [String] fields
3290
+ # Selector specifying which fields to include in a partial response.
3291
+ # @param [String] quota_user
3292
+ # Available to use for quota purposes for server-side applications. Can be any
3293
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3294
+ # @param [Google::Apis::RequestOptions] options
3295
+ # Request-specific options
3296
+ #
3297
+ # @yield [result, err] Result & error if block supplied
3298
+ # @yieldparam result [Google::Apis::LoggingV2::Policy] parsed result object
3299
+ # @yieldparam err [StandardError] error object if request failed
3300
+ #
3301
+ # @return [Google::Apis::LoggingV2::Policy]
3302
+ #
3303
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3304
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3305
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3306
+ def set_folder_location_bucket_view_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3307
+ command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', options)
3308
+ command.request_representation = Google::Apis::LoggingV2::SetIamPolicyRequest::Representation
3309
+ command.request_object = set_iam_policy_request_object
3310
+ command.response_representation = Google::Apis::LoggingV2::Policy::Representation
3311
+ command.response_class = Google::Apis::LoggingV2::Policy
3312
+ command.params['resource'] = resource unless resource.nil?
3313
+ command.query['fields'] = fields unless fields.nil?
3314
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3315
+ execute_or_queue_command(command, &block)
3316
+ end
3317
+
3318
+ # Returns permissions that a caller has on the specified resource. If the
3319
+ # resource does not exist, this will return an empty set of permissions, not a
3320
+ # NOT_FOUND error.Note: This operation is designed to be used for building
3321
+ # permission-aware UIs and command-line tools, not for authorization checking.
3322
+ # This operation may "fail open" without warning.
3323
+ # @param [String] resource
3324
+ # REQUIRED: The resource for which the policy detail is being requested. See
3325
+ # Resource names (https://cloud.google.com/apis/design/resource_names) for the
3326
+ # appropriate value for this field.
3327
+ # @param [Google::Apis::LoggingV2::TestIamPermissionsRequest] test_iam_permissions_request_object
3328
+ # @param [String] fields
3329
+ # Selector specifying which fields to include in a partial response.
3330
+ # @param [String] quota_user
3331
+ # Available to use for quota purposes for server-side applications. Can be any
3332
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3333
+ # @param [Google::Apis::RequestOptions] options
3334
+ # Request-specific options
3335
+ #
3336
+ # @yield [result, err] Result & error if block supplied
3337
+ # @yieldparam result [Google::Apis::LoggingV2::TestIamPermissionsResponse] parsed result object
3338
+ # @yieldparam err [StandardError] error object if request failed
3339
+ #
3340
+ # @return [Google::Apis::LoggingV2::TestIamPermissionsResponse]
3341
+ #
3342
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3343
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3344
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3345
+ def test_folder_location_bucket_view_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3346
+ command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options)
3347
+ command.request_representation = Google::Apis::LoggingV2::TestIamPermissionsRequest::Representation
3348
+ command.request_object = test_iam_permissions_request_object
3349
+ command.response_representation = Google::Apis::LoggingV2::TestIamPermissionsResponse::Representation
3350
+ command.response_class = Google::Apis::LoggingV2::TestIamPermissionsResponse
3351
+ command.params['resource'] = resource unless resource.nil?
3352
+ command.query['fields'] = fields unless fields.nil?
3353
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3354
+ execute_or_queue_command(command, &block)
3355
+ end
3356
+
3236
3357
  # Lists the logs in projects, organizations, folders, or billing accounts. Only
3237
3358
  # logs that have entries are listed.
3238
3359
  # @param [String] parent
@@ -3800,6 +3921,14 @@ module Google
3800
3921
  # Required. The parent resource whose sinks are to be listed: "projects/[
3801
3922
  # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
3802
3923
  # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
3924
+ # @param [String] filter
3925
+ # Optional. A filter expression to constrain the sinks returned. Today, this
3926
+ # only supports the following strings: '' 'in_scope("ALL")', 'in_scope("ANCESTOR"
3927
+ # )', 'in_scope("DEFAULT")'.Description of scopes below. ALL: Includes all of
3928
+ # the sinks which can be returned in any other scope. ANCESTOR: Includes
3929
+ # intercepting sinks owned by ancestor resources. DEFAULT: Includes sinks owned
3930
+ # by parent.When the empty string is provided, then the filter 'in_scope("
3931
+ # DEFAULT")' is applied.
3803
3932
  # @param [Fixnum] page_size
3804
3933
  # Optional. The maximum number of results to return from this request. Non-
3805
3934
  # positive values are ignored. The presence of nextPageToken in the response
@@ -3826,11 +3955,12 @@ module Google
3826
3955
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3827
3956
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3828
3957
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3829
- def list_folder_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3958
+ def list_folder_sinks(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3830
3959
  command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
3831
3960
  command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
3832
3961
  command.response_class = Google::Apis::LoggingV2::ListSinksResponse
3833
3962
  command.params['parent'] = parent unless parent.nil?
3963
+ command.query['filter'] = filter unless filter.nil?
3834
3964
  command.query['pageSize'] = page_size unless page_size.nil?
3835
3965
  command.query['pageToken'] = page_token unless page_token.nil?
3836
3966
  command.query['fields'] = fields unless fields.nil?
@@ -4650,6 +4780,42 @@ module Google
4650
4780
  execute_or_queue_command(command, &block)
4651
4781
  end
4652
4782
 
4783
+ # Gets the access control policy for a resource. Returns an empty policy if the
4784
+ # resource exists and does not have a policy set.
4785
+ # @param [String] resource
4786
+ # REQUIRED: The resource for which the policy is being requested. See Resource
4787
+ # names (https://cloud.google.com/apis/design/resource_names) for the
4788
+ # appropriate value for this field.
4789
+ # @param [Google::Apis::LoggingV2::GetIamPolicyRequest] get_iam_policy_request_object
4790
+ # @param [String] fields
4791
+ # Selector specifying which fields to include in a partial response.
4792
+ # @param [String] quota_user
4793
+ # Available to use for quota purposes for server-side applications. Can be any
4794
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4795
+ # @param [Google::Apis::RequestOptions] options
4796
+ # Request-specific options
4797
+ #
4798
+ # @yield [result, err] Result & error if block supplied
4799
+ # @yieldparam result [Google::Apis::LoggingV2::Policy] parsed result object
4800
+ # @yieldparam err [StandardError] error object if request failed
4801
+ #
4802
+ # @return [Google::Apis::LoggingV2::Policy]
4803
+ #
4804
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4805
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4806
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4807
+ def get_location_bucket_view_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4808
+ command = make_simple_command(:post, 'v2/{+resource}:getIamPolicy', options)
4809
+ command.request_representation = Google::Apis::LoggingV2::GetIamPolicyRequest::Representation
4810
+ command.request_object = get_iam_policy_request_object
4811
+ command.response_representation = Google::Apis::LoggingV2::Policy::Representation
4812
+ command.response_class = Google::Apis::LoggingV2::Policy
4813
+ command.params['resource'] = resource unless resource.nil?
4814
+ command.query['fields'] = fields unless fields.nil?
4815
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4816
+ execute_or_queue_command(command, &block)
4817
+ end
4818
+
4653
4819
  # Lists views on a log bucket.
4654
4820
  # @param [String] parent
4655
4821
  # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
@@ -4738,6 +4904,82 @@ module Google
4738
4904
  execute_or_queue_command(command, &block)
4739
4905
  end
4740
4906
 
4907
+ # Sets the access control policy on the specified resource. Replaces any
4908
+ # existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
4909
+ # errors.
4910
+ # @param [String] resource
4911
+ # REQUIRED: The resource for which the policy is being specified. See Resource
4912
+ # names (https://cloud.google.com/apis/design/resource_names) for the
4913
+ # appropriate value for this field.
4914
+ # @param [Google::Apis::LoggingV2::SetIamPolicyRequest] set_iam_policy_request_object
4915
+ # @param [String] fields
4916
+ # Selector specifying which fields to include in a partial response.
4917
+ # @param [String] quota_user
4918
+ # Available to use for quota purposes for server-side applications. Can be any
4919
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4920
+ # @param [Google::Apis::RequestOptions] options
4921
+ # Request-specific options
4922
+ #
4923
+ # @yield [result, err] Result & error if block supplied
4924
+ # @yieldparam result [Google::Apis::LoggingV2::Policy] parsed result object
4925
+ # @yieldparam err [StandardError] error object if request failed
4926
+ #
4927
+ # @return [Google::Apis::LoggingV2::Policy]
4928
+ #
4929
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4930
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4931
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4932
+ def set_location_bucket_view_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4933
+ command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', options)
4934
+ command.request_representation = Google::Apis::LoggingV2::SetIamPolicyRequest::Representation
4935
+ command.request_object = set_iam_policy_request_object
4936
+ command.response_representation = Google::Apis::LoggingV2::Policy::Representation
4937
+ command.response_class = Google::Apis::LoggingV2::Policy
4938
+ command.params['resource'] = resource unless resource.nil?
4939
+ command.query['fields'] = fields unless fields.nil?
4940
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4941
+ execute_or_queue_command(command, &block)
4942
+ end
4943
+
4944
+ # Returns permissions that a caller has on the specified resource. If the
4945
+ # resource does not exist, this will return an empty set of permissions, not a
4946
+ # NOT_FOUND error.Note: This operation is designed to be used for building
4947
+ # permission-aware UIs and command-line tools, not for authorization checking.
4948
+ # This operation may "fail open" without warning.
4949
+ # @param [String] resource
4950
+ # REQUIRED: The resource for which the policy detail is being requested. See
4951
+ # Resource names (https://cloud.google.com/apis/design/resource_names) for the
4952
+ # appropriate value for this field.
4953
+ # @param [Google::Apis::LoggingV2::TestIamPermissionsRequest] test_iam_permissions_request_object
4954
+ # @param [String] fields
4955
+ # Selector specifying which fields to include in a partial response.
4956
+ # @param [String] quota_user
4957
+ # Available to use for quota purposes for server-side applications. Can be any
4958
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4959
+ # @param [Google::Apis::RequestOptions] options
4960
+ # Request-specific options
4961
+ #
4962
+ # @yield [result, err] Result & error if block supplied
4963
+ # @yieldparam result [Google::Apis::LoggingV2::TestIamPermissionsResponse] parsed result object
4964
+ # @yieldparam err [StandardError] error object if request failed
4965
+ #
4966
+ # @return [Google::Apis::LoggingV2::TestIamPermissionsResponse]
4967
+ #
4968
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4969
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4970
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4971
+ def test_location_bucket_view_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4972
+ command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options)
4973
+ command.request_representation = Google::Apis::LoggingV2::TestIamPermissionsRequest::Representation
4974
+ command.request_object = test_iam_permissions_request_object
4975
+ command.response_representation = Google::Apis::LoggingV2::TestIamPermissionsResponse::Representation
4976
+ command.response_class = Google::Apis::LoggingV2::TestIamPermissionsResponse
4977
+ command.params['resource'] = resource unless resource.nil?
4978
+ command.query['fields'] = fields unless fields.nil?
4979
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4980
+ execute_or_queue_command(command, &block)
4981
+ end
4982
+
4741
4983
  # Starts asynchronous cancellation on a long-running operation. The server makes
4742
4984
  # a best effort to cancel the operation, but success is not guaranteed. If the
4743
4985
  # server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
@@ -6027,6 +6269,42 @@ module Google
6027
6269
  execute_or_queue_command(command, &block)
6028
6270
  end
6029
6271
 
6272
+ # Gets the access control policy for a resource. Returns an empty policy if the
6273
+ # resource exists and does not have a policy set.
6274
+ # @param [String] resource
6275
+ # REQUIRED: The resource for which the policy is being requested. See Resource
6276
+ # names (https://cloud.google.com/apis/design/resource_names) for the
6277
+ # appropriate value for this field.
6278
+ # @param [Google::Apis::LoggingV2::GetIamPolicyRequest] get_iam_policy_request_object
6279
+ # @param [String] fields
6280
+ # Selector specifying which fields to include in a partial response.
6281
+ # @param [String] quota_user
6282
+ # Available to use for quota purposes for server-side applications. Can be any
6283
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6284
+ # @param [Google::Apis::RequestOptions] options
6285
+ # Request-specific options
6286
+ #
6287
+ # @yield [result, err] Result & error if block supplied
6288
+ # @yieldparam result [Google::Apis::LoggingV2::Policy] parsed result object
6289
+ # @yieldparam err [StandardError] error object if request failed
6290
+ #
6291
+ # @return [Google::Apis::LoggingV2::Policy]
6292
+ #
6293
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6294
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6295
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6296
+ def get_organization_location_bucket_view_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
6297
+ command = make_simple_command(:post, 'v2/{+resource}:getIamPolicy', options)
6298
+ command.request_representation = Google::Apis::LoggingV2::GetIamPolicyRequest::Representation
6299
+ command.request_object = get_iam_policy_request_object
6300
+ command.response_representation = Google::Apis::LoggingV2::Policy::Representation
6301
+ command.response_class = Google::Apis::LoggingV2::Policy
6302
+ command.params['resource'] = resource unless resource.nil?
6303
+ command.query['fields'] = fields unless fields.nil?
6304
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6305
+ execute_or_queue_command(command, &block)
6306
+ end
6307
+
6030
6308
  # Lists views on a log bucket.
6031
6309
  # @param [String] parent
6032
6310
  # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
@@ -6115,6 +6393,82 @@ module Google
6115
6393
  execute_or_queue_command(command, &block)
6116
6394
  end
6117
6395
 
6396
+ # Sets the access control policy on the specified resource. Replaces any
6397
+ # existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
6398
+ # errors.
6399
+ # @param [String] resource
6400
+ # REQUIRED: The resource for which the policy is being specified. See Resource
6401
+ # names (https://cloud.google.com/apis/design/resource_names) for the
6402
+ # appropriate value for this field.
6403
+ # @param [Google::Apis::LoggingV2::SetIamPolicyRequest] set_iam_policy_request_object
6404
+ # @param [String] fields
6405
+ # Selector specifying which fields to include in a partial response.
6406
+ # @param [String] quota_user
6407
+ # Available to use for quota purposes for server-side applications. Can be any
6408
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6409
+ # @param [Google::Apis::RequestOptions] options
6410
+ # Request-specific options
6411
+ #
6412
+ # @yield [result, err] Result & error if block supplied
6413
+ # @yieldparam result [Google::Apis::LoggingV2::Policy] parsed result object
6414
+ # @yieldparam err [StandardError] error object if request failed
6415
+ #
6416
+ # @return [Google::Apis::LoggingV2::Policy]
6417
+ #
6418
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6419
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6420
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6421
+ def set_organization_location_bucket_view_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
6422
+ command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', options)
6423
+ command.request_representation = Google::Apis::LoggingV2::SetIamPolicyRequest::Representation
6424
+ command.request_object = set_iam_policy_request_object
6425
+ command.response_representation = Google::Apis::LoggingV2::Policy::Representation
6426
+ command.response_class = Google::Apis::LoggingV2::Policy
6427
+ command.params['resource'] = resource unless resource.nil?
6428
+ command.query['fields'] = fields unless fields.nil?
6429
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6430
+ execute_or_queue_command(command, &block)
6431
+ end
6432
+
6433
+ # Returns permissions that a caller has on the specified resource. If the
6434
+ # resource does not exist, this will return an empty set of permissions, not a
6435
+ # NOT_FOUND error.Note: This operation is designed to be used for building
6436
+ # permission-aware UIs and command-line tools, not for authorization checking.
6437
+ # This operation may "fail open" without warning.
6438
+ # @param [String] resource
6439
+ # REQUIRED: The resource for which the policy detail is being requested. See
6440
+ # Resource names (https://cloud.google.com/apis/design/resource_names) for the
6441
+ # appropriate value for this field.
6442
+ # @param [Google::Apis::LoggingV2::TestIamPermissionsRequest] test_iam_permissions_request_object
6443
+ # @param [String] fields
6444
+ # Selector specifying which fields to include in a partial response.
6445
+ # @param [String] quota_user
6446
+ # Available to use for quota purposes for server-side applications. Can be any
6447
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6448
+ # @param [Google::Apis::RequestOptions] options
6449
+ # Request-specific options
6450
+ #
6451
+ # @yield [result, err] Result & error if block supplied
6452
+ # @yieldparam result [Google::Apis::LoggingV2::TestIamPermissionsResponse] parsed result object
6453
+ # @yieldparam err [StandardError] error object if request failed
6454
+ #
6455
+ # @return [Google::Apis::LoggingV2::TestIamPermissionsResponse]
6456
+ #
6457
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6458
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6459
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6460
+ def test_organization_location_bucket_view_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
6461
+ command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options)
6462
+ command.request_representation = Google::Apis::LoggingV2::TestIamPermissionsRequest::Representation
6463
+ command.request_object = test_iam_permissions_request_object
6464
+ command.response_representation = Google::Apis::LoggingV2::TestIamPermissionsResponse::Representation
6465
+ command.response_class = Google::Apis::LoggingV2::TestIamPermissionsResponse
6466
+ command.params['resource'] = resource unless resource.nil?
6467
+ command.query['fields'] = fields unless fields.nil?
6468
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6469
+ execute_or_queue_command(command, &block)
6470
+ end
6471
+
6118
6472
  # Lists the logs in projects, organizations, folders, or billing accounts. Only
6119
6473
  # logs that have entries are listed.
6120
6474
  # @param [String] parent
@@ -6682,6 +7036,14 @@ module Google
6682
7036
  # Required. The parent resource whose sinks are to be listed: "projects/[
6683
7037
  # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
6684
7038
  # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
7039
+ # @param [String] filter
7040
+ # Optional. A filter expression to constrain the sinks returned. Today, this
7041
+ # only supports the following strings: '' 'in_scope("ALL")', 'in_scope("ANCESTOR"
7042
+ # )', 'in_scope("DEFAULT")'.Description of scopes below. ALL: Includes all of
7043
+ # the sinks which can be returned in any other scope. ANCESTOR: Includes
7044
+ # intercepting sinks owned by ancestor resources. DEFAULT: Includes sinks owned
7045
+ # by parent.When the empty string is provided, then the filter 'in_scope("
7046
+ # DEFAULT")' is applied.
6685
7047
  # @param [Fixnum] page_size
6686
7048
  # Optional. The maximum number of results to return from this request. Non-
6687
7049
  # positive values are ignored. The presence of nextPageToken in the response
@@ -6708,11 +7070,12 @@ module Google
6708
7070
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6709
7071
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6710
7072
  # @raise [Google::Apis::AuthorizationError] Authorization is required
6711
- def list_organization_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
7073
+ def list_organization_sinks(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
6712
7074
  command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
6713
7075
  command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
6714
7076
  command.response_class = Google::Apis::LoggingV2::ListSinksResponse
6715
7077
  command.params['parent'] = parent unless parent.nil?
7078
+ command.query['filter'] = filter unless filter.nil?
6716
7079
  command.query['pageSize'] = page_size unless page_size.nil?
6717
7080
  command.query['pageToken'] = page_token unless page_token.nil?
6718
7081
  command.query['fields'] = fields unless fields.nil?
@@ -7804,6 +8167,42 @@ module Google
7804
8167
  execute_or_queue_command(command, &block)
7805
8168
  end
7806
8169
 
8170
+ # Gets the access control policy for a resource. Returns an empty policy if the
8171
+ # resource exists and does not have a policy set.
8172
+ # @param [String] resource
8173
+ # REQUIRED: The resource for which the policy is being requested. See Resource
8174
+ # names (https://cloud.google.com/apis/design/resource_names) for the
8175
+ # appropriate value for this field.
8176
+ # @param [Google::Apis::LoggingV2::GetIamPolicyRequest] get_iam_policy_request_object
8177
+ # @param [String] fields
8178
+ # Selector specifying which fields to include in a partial response.
8179
+ # @param [String] quota_user
8180
+ # Available to use for quota purposes for server-side applications. Can be any
8181
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8182
+ # @param [Google::Apis::RequestOptions] options
8183
+ # Request-specific options
8184
+ #
8185
+ # @yield [result, err] Result & error if block supplied
8186
+ # @yieldparam result [Google::Apis::LoggingV2::Policy] parsed result object
8187
+ # @yieldparam err [StandardError] error object if request failed
8188
+ #
8189
+ # @return [Google::Apis::LoggingV2::Policy]
8190
+ #
8191
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8192
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8193
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8194
+ def get_project_location_bucket_view_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
8195
+ command = make_simple_command(:post, 'v2/{+resource}:getIamPolicy', options)
8196
+ command.request_representation = Google::Apis::LoggingV2::GetIamPolicyRequest::Representation
8197
+ command.request_object = get_iam_policy_request_object
8198
+ command.response_representation = Google::Apis::LoggingV2::Policy::Representation
8199
+ command.response_class = Google::Apis::LoggingV2::Policy
8200
+ command.params['resource'] = resource unless resource.nil?
8201
+ command.query['fields'] = fields unless fields.nil?
8202
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8203
+ execute_or_queue_command(command, &block)
8204
+ end
8205
+
7807
8206
  # Lists views on a log bucket.
7808
8207
  # @param [String] parent
7809
8208
  # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
@@ -7892,6 +8291,82 @@ module Google
7892
8291
  execute_or_queue_command(command, &block)
7893
8292
  end
7894
8293
 
8294
+ # Sets the access control policy on the specified resource. Replaces any
8295
+ # existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
8296
+ # errors.
8297
+ # @param [String] resource
8298
+ # REQUIRED: The resource for which the policy is being specified. See Resource
8299
+ # names (https://cloud.google.com/apis/design/resource_names) for the
8300
+ # appropriate value for this field.
8301
+ # @param [Google::Apis::LoggingV2::SetIamPolicyRequest] set_iam_policy_request_object
8302
+ # @param [String] fields
8303
+ # Selector specifying which fields to include in a partial response.
8304
+ # @param [String] quota_user
8305
+ # Available to use for quota purposes for server-side applications. Can be any
8306
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8307
+ # @param [Google::Apis::RequestOptions] options
8308
+ # Request-specific options
8309
+ #
8310
+ # @yield [result, err] Result & error if block supplied
8311
+ # @yieldparam result [Google::Apis::LoggingV2::Policy] parsed result object
8312
+ # @yieldparam err [StandardError] error object if request failed
8313
+ #
8314
+ # @return [Google::Apis::LoggingV2::Policy]
8315
+ #
8316
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8317
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8318
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8319
+ def set_project_location_bucket_view_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
8320
+ command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', options)
8321
+ command.request_representation = Google::Apis::LoggingV2::SetIamPolicyRequest::Representation
8322
+ command.request_object = set_iam_policy_request_object
8323
+ command.response_representation = Google::Apis::LoggingV2::Policy::Representation
8324
+ command.response_class = Google::Apis::LoggingV2::Policy
8325
+ command.params['resource'] = resource unless resource.nil?
8326
+ command.query['fields'] = fields unless fields.nil?
8327
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8328
+ execute_or_queue_command(command, &block)
8329
+ end
8330
+
8331
+ # Returns permissions that a caller has on the specified resource. If the
8332
+ # resource does not exist, this will return an empty set of permissions, not a
8333
+ # NOT_FOUND error.Note: This operation is designed to be used for building
8334
+ # permission-aware UIs and command-line tools, not for authorization checking.
8335
+ # This operation may "fail open" without warning.
8336
+ # @param [String] resource
8337
+ # REQUIRED: The resource for which the policy detail is being requested. See
8338
+ # Resource names (https://cloud.google.com/apis/design/resource_names) for the
8339
+ # appropriate value for this field.
8340
+ # @param [Google::Apis::LoggingV2::TestIamPermissionsRequest] test_iam_permissions_request_object
8341
+ # @param [String] fields
8342
+ # Selector specifying which fields to include in a partial response.
8343
+ # @param [String] quota_user
8344
+ # Available to use for quota purposes for server-side applications. Can be any
8345
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8346
+ # @param [Google::Apis::RequestOptions] options
8347
+ # Request-specific options
8348
+ #
8349
+ # @yield [result, err] Result & error if block supplied
8350
+ # @yieldparam result [Google::Apis::LoggingV2::TestIamPermissionsResponse] parsed result object
8351
+ # @yieldparam err [StandardError] error object if request failed
8352
+ #
8353
+ # @return [Google::Apis::LoggingV2::TestIamPermissionsResponse]
8354
+ #
8355
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8356
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8357
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8358
+ def test_project_location_bucket_view_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
8359
+ command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options)
8360
+ command.request_representation = Google::Apis::LoggingV2::TestIamPermissionsRequest::Representation
8361
+ command.request_object = test_iam_permissions_request_object
8362
+ command.response_representation = Google::Apis::LoggingV2::TestIamPermissionsResponse::Representation
8363
+ command.response_class = Google::Apis::LoggingV2::TestIamPermissionsResponse
8364
+ command.params['resource'] = resource unless resource.nil?
8365
+ command.query['fields'] = fields unless fields.nil?
8366
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8367
+ execute_or_queue_command(command, &block)
8368
+ end
8369
+
7895
8370
  # Lists the logs in projects, organizations, folders, or billing accounts. Only
7896
8371
  # logs that have entries are listed.
7897
8372
  # @param [String] parent
@@ -8633,6 +9108,14 @@ module Google
8633
9108
  # Required. The parent resource whose sinks are to be listed: "projects/[
8634
9109
  # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
8635
9110
  # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
9111
+ # @param [String] filter
9112
+ # Optional. A filter expression to constrain the sinks returned. Today, this
9113
+ # only supports the following strings: '' 'in_scope("ALL")', 'in_scope("ANCESTOR"
9114
+ # )', 'in_scope("DEFAULT")'.Description of scopes below. ALL: Includes all of
9115
+ # the sinks which can be returned in any other scope. ANCESTOR: Includes
9116
+ # intercepting sinks owned by ancestor resources. DEFAULT: Includes sinks owned
9117
+ # by parent.When the empty string is provided, then the filter 'in_scope("
9118
+ # DEFAULT")' is applied.
8636
9119
  # @param [Fixnum] page_size
8637
9120
  # Optional. The maximum number of results to return from this request. Non-
8638
9121
  # positive values are ignored. The presence of nextPageToken in the response
@@ -8659,11 +9142,12 @@ module Google
8659
9142
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8660
9143
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8661
9144
  # @raise [Google::Apis::AuthorizationError] Authorization is required
8662
- def list_project_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
9145
+ def list_project_sinks(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
8663
9146
  command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
8664
9147
  command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
8665
9148
  command.response_class = Google::Apis::LoggingV2::ListSinksResponse
8666
9149
  command.params['parent'] = parent unless parent.nil?
9150
+ command.query['filter'] = filter unless filter.nil?
8667
9151
  command.query['pageSize'] = page_size unless page_size.nil?
8668
9152
  command.query['pageToken'] = page_token unless page_token.nil?
8669
9153
  command.query['fields'] = fields unless fields.nil?
@@ -8940,6 +9424,14 @@ module Google
8940
9424
  # Required. The parent resource whose sinks are to be listed: "projects/[
8941
9425
  # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
8942
9426
  # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
9427
+ # @param [String] filter
9428
+ # Optional. A filter expression to constrain the sinks returned. Today, this
9429
+ # only supports the following strings: '' 'in_scope("ALL")', 'in_scope("ANCESTOR"
9430
+ # )', 'in_scope("DEFAULT")'.Description of scopes below. ALL: Includes all of
9431
+ # the sinks which can be returned in any other scope. ANCESTOR: Includes
9432
+ # intercepting sinks owned by ancestor resources. DEFAULT: Includes sinks owned
9433
+ # by parent.When the empty string is provided, then the filter 'in_scope("
9434
+ # DEFAULT")' is applied.
8943
9435
  # @param [Fixnum] page_size
8944
9436
  # Optional. The maximum number of results to return from this request. Non-
8945
9437
  # positive values are ignored. The presence of nextPageToken in the response
@@ -8966,11 +9458,12 @@ module Google
8966
9458
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8967
9459
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8968
9460
  # @raise [Google::Apis::AuthorizationError] Authorization is required
8969
- def list_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
9461
+ def list_sinks(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
8970
9462
  command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
8971
9463
  command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
8972
9464
  command.response_class = Google::Apis::LoggingV2::ListSinksResponse
8973
9465
  command.params['parent'] = parent unless parent.nil?
9466
+ command.query['filter'] = filter unless filter.nil?
8974
9467
  command.query['pageSize'] = page_size unless page_size.nil?
8975
9468
  command.query['pageToken'] = page_token unless page_token.nil?
8976
9469
  command.query['fields'] = fields unless fields.nil?