google-apis-networksecurity_v1beta1 0.22.0 → 0.24.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 +8 -0
- data/lib/google/apis/networksecurity_v1beta1/classes.rb +515 -0
- data/lib/google/apis/networksecurity_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/networksecurity_v1beta1/representations.rb +192 -0
- data/lib/google/apis/networksecurity_v1beta1/service.rb +853 -43
- metadata +3 -3
@@ -408,6 +408,223 @@ module Google
|
|
408
408
|
execute_or_queue_command(command, &block)
|
409
409
|
end
|
410
410
|
|
411
|
+
# Creates a new FirewallEndpoint in a given project and location.
|
412
|
+
# @param [String] parent
|
413
|
+
# Required. Value for parent.
|
414
|
+
# @param [Google::Apis::NetworksecurityV1beta1::FirewallEndpoint] firewall_endpoint_object
|
415
|
+
# @param [String] firewall_endpoint_id
|
416
|
+
# Required. Id of the requesting object. If auto-generating Id server-side,
|
417
|
+
# remove this field and firewall_endpoint_id from the method_signature of Create
|
418
|
+
# RPC.
|
419
|
+
# @param [String] request_id
|
420
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
421
|
+
# request ID so that if you must retry your request, the server will know to
|
422
|
+
# ignore the request if it has already been completed. The server will guarantee
|
423
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
424
|
+
# situation where you make an initial request and the request times out. If you
|
425
|
+
# make the request again with the same request ID, the server can check if
|
426
|
+
# original operation with the same request ID was received, and if so, will
|
427
|
+
# ignore the second request. This prevents clients from accidentally creating
|
428
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
429
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
430
|
+
# @param [String] fields
|
431
|
+
# Selector specifying which fields to include in a partial response.
|
432
|
+
# @param [String] quota_user
|
433
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
434
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
435
|
+
# @param [Google::Apis::RequestOptions] options
|
436
|
+
# Request-specific options
|
437
|
+
#
|
438
|
+
# @yield [result, err] Result & error if block supplied
|
439
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
|
440
|
+
# @yieldparam err [StandardError] error object if request failed
|
441
|
+
#
|
442
|
+
# @return [Google::Apis::NetworksecurityV1beta1::Operation]
|
443
|
+
#
|
444
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
445
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
446
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
447
|
+
def create_organization_location_firewall_endpoint(parent, firewall_endpoint_object = nil, firewall_endpoint_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
448
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/firewallEndpoints', options)
|
449
|
+
command.request_representation = Google::Apis::NetworksecurityV1beta1::FirewallEndpoint::Representation
|
450
|
+
command.request_object = firewall_endpoint_object
|
451
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
452
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
|
453
|
+
command.params['parent'] = parent unless parent.nil?
|
454
|
+
command.query['firewallEndpointId'] = firewall_endpoint_id unless firewall_endpoint_id.nil?
|
455
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
456
|
+
command.query['fields'] = fields unless fields.nil?
|
457
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
458
|
+
execute_or_queue_command(command, &block)
|
459
|
+
end
|
460
|
+
|
461
|
+
# Deletes a single Endpoint.
|
462
|
+
# @param [String] name
|
463
|
+
# Required. Name of the resource
|
464
|
+
# @param [String] request_id
|
465
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
466
|
+
# request ID so that if you must retry your request, the server will know to
|
467
|
+
# ignore the request if it has already been completed. The server will guarantee
|
468
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
469
|
+
# situation where you make an initial request and the request times out. If you
|
470
|
+
# make the request again with the same request ID, the server can check if
|
471
|
+
# original operation with the same request ID was received, and if so, will
|
472
|
+
# ignore the second request. This prevents clients from accidentally creating
|
473
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
474
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
475
|
+
# @param [String] fields
|
476
|
+
# Selector specifying which fields to include in a partial response.
|
477
|
+
# @param [String] quota_user
|
478
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
479
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
480
|
+
# @param [Google::Apis::RequestOptions] options
|
481
|
+
# Request-specific options
|
482
|
+
#
|
483
|
+
# @yield [result, err] Result & error if block supplied
|
484
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
|
485
|
+
# @yieldparam err [StandardError] error object if request failed
|
486
|
+
#
|
487
|
+
# @return [Google::Apis::NetworksecurityV1beta1::Operation]
|
488
|
+
#
|
489
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
490
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
491
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
492
|
+
def delete_organization_location_firewall_endpoint(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
493
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
494
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
495
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
|
496
|
+
command.params['name'] = name unless name.nil?
|
497
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
498
|
+
command.query['fields'] = fields unless fields.nil?
|
499
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
500
|
+
execute_or_queue_command(command, &block)
|
501
|
+
end
|
502
|
+
|
503
|
+
# Gets details of a single Endpoint.
|
504
|
+
# @param [String] name
|
505
|
+
# Required. Name of the resource
|
506
|
+
# @param [String] fields
|
507
|
+
# Selector specifying which fields to include in a partial response.
|
508
|
+
# @param [String] quota_user
|
509
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
510
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
511
|
+
# @param [Google::Apis::RequestOptions] options
|
512
|
+
# Request-specific options
|
513
|
+
#
|
514
|
+
# @yield [result, err] Result & error if block supplied
|
515
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::FirewallEndpoint] parsed result object
|
516
|
+
# @yieldparam err [StandardError] error object if request failed
|
517
|
+
#
|
518
|
+
# @return [Google::Apis::NetworksecurityV1beta1::FirewallEndpoint]
|
519
|
+
#
|
520
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
521
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
522
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
523
|
+
def get_organization_location_firewall_endpoint(name, fields: nil, quota_user: nil, options: nil, &block)
|
524
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
525
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::FirewallEndpoint::Representation
|
526
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::FirewallEndpoint
|
527
|
+
command.params['name'] = name unless name.nil?
|
528
|
+
command.query['fields'] = fields unless fields.nil?
|
529
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
530
|
+
execute_or_queue_command(command, &block)
|
531
|
+
end
|
532
|
+
|
533
|
+
# Lists FirewallEndpoints in a given project and location.
|
534
|
+
# @param [String] parent
|
535
|
+
# Required. Parent value for ListEndpointsRequest
|
536
|
+
# @param [String] filter
|
537
|
+
# Filtering results
|
538
|
+
# @param [String] order_by
|
539
|
+
# Hint for how to order the results
|
540
|
+
# @param [Fixnum] page_size
|
541
|
+
# Requested page size. Server may return fewer items than requested. If
|
542
|
+
# unspecified, server will pick an appropriate default.
|
543
|
+
# @param [String] page_token
|
544
|
+
# A token identifying a page of results the server should return.
|
545
|
+
# @param [String] fields
|
546
|
+
# Selector specifying which fields to include in a partial response.
|
547
|
+
# @param [String] quota_user
|
548
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
549
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
550
|
+
# @param [Google::Apis::RequestOptions] options
|
551
|
+
# Request-specific options
|
552
|
+
#
|
553
|
+
# @yield [result, err] Result & error if block supplied
|
554
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListFirewallEndpointsResponse] parsed result object
|
555
|
+
# @yieldparam err [StandardError] error object if request failed
|
556
|
+
#
|
557
|
+
# @return [Google::Apis::NetworksecurityV1beta1::ListFirewallEndpointsResponse]
|
558
|
+
#
|
559
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
560
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
561
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
562
|
+
def list_organization_location_firewall_endpoints(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
563
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/firewallEndpoints', options)
|
564
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::ListFirewallEndpointsResponse::Representation
|
565
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::ListFirewallEndpointsResponse
|
566
|
+
command.params['parent'] = parent unless parent.nil?
|
567
|
+
command.query['filter'] = filter unless filter.nil?
|
568
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
569
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
570
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
571
|
+
command.query['fields'] = fields unless fields.nil?
|
572
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
573
|
+
execute_or_queue_command(command, &block)
|
574
|
+
end
|
575
|
+
|
576
|
+
# Update a single Endpoint.
|
577
|
+
# @param [String] name
|
578
|
+
# Output only. name of resource
|
579
|
+
# @param [Google::Apis::NetworksecurityV1beta1::FirewallEndpoint] firewall_endpoint_object
|
580
|
+
# @param [String] request_id
|
581
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
582
|
+
# request ID so that if you must retry your request, the server will know to
|
583
|
+
# ignore the request if it has already been completed. The server will guarantee
|
584
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
585
|
+
# situation where you make an initial request and the request times out. If you
|
586
|
+
# make the request again with the same request ID, the server can check if
|
587
|
+
# original operation with the same request ID was received, and if so, will
|
588
|
+
# ignore the second request. This prevents clients from accidentally creating
|
589
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
590
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
591
|
+
# @param [String] update_mask
|
592
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
593
|
+
# Endpoint resource by the update. The fields specified in the update_mask are
|
594
|
+
# relative to the resource, not the full request. A field will be overwritten if
|
595
|
+
# it is in the mask. If the user does not provide a mask then all fields will be
|
596
|
+
# overwritten.
|
597
|
+
# @param [String] fields
|
598
|
+
# Selector specifying which fields to include in a partial response.
|
599
|
+
# @param [String] quota_user
|
600
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
601
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
602
|
+
# @param [Google::Apis::RequestOptions] options
|
603
|
+
# Request-specific options
|
604
|
+
#
|
605
|
+
# @yield [result, err] Result & error if block supplied
|
606
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
|
607
|
+
# @yieldparam err [StandardError] error object if request failed
|
608
|
+
#
|
609
|
+
# @return [Google::Apis::NetworksecurityV1beta1::Operation]
|
610
|
+
#
|
611
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
612
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
613
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
614
|
+
def patch_organization_location_firewall_endpoint(name, firewall_endpoint_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
615
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
616
|
+
command.request_representation = Google::Apis::NetworksecurityV1beta1::FirewallEndpoint::Representation
|
617
|
+
command.request_object = firewall_endpoint_object
|
618
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
619
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
|
620
|
+
command.params['name'] = name unless name.nil?
|
621
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
622
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
623
|
+
command.query['fields'] = fields unless fields.nil?
|
624
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
625
|
+
execute_or_queue_command(command, &block)
|
626
|
+
end
|
627
|
+
|
411
628
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
412
629
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
413
630
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -428,32 +645,366 @@ module Google
|
|
428
645
|
# Request-specific options
|
429
646
|
#
|
430
647
|
# @yield [result, err] Result & error if block supplied
|
431
|
-
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::Empty] parsed result object
|
648
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::Empty] parsed result object
|
649
|
+
# @yieldparam err [StandardError] error object if request failed
|
650
|
+
#
|
651
|
+
# @return [Google::Apis::NetworksecurityV1beta1::Empty]
|
652
|
+
#
|
653
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
654
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
655
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
656
|
+
def cancel_organization_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
657
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
658
|
+
command.request_representation = Google::Apis::NetworksecurityV1beta1::CancelOperationRequest::Representation
|
659
|
+
command.request_object = cancel_operation_request_object
|
660
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Empty::Representation
|
661
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::Empty
|
662
|
+
command.params['name'] = name unless name.nil?
|
663
|
+
command.query['fields'] = fields unless fields.nil?
|
664
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
665
|
+
execute_or_queue_command(command, &block)
|
666
|
+
end
|
667
|
+
|
668
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
669
|
+
# longer interested in the operation result. It does not cancel the operation.
|
670
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
671
|
+
# UNIMPLEMENTED`.
|
672
|
+
# @param [String] name
|
673
|
+
# The name of the operation resource to be deleted.
|
674
|
+
# @param [String] fields
|
675
|
+
# Selector specifying which fields to include in a partial response.
|
676
|
+
# @param [String] quota_user
|
677
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
678
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
679
|
+
# @param [Google::Apis::RequestOptions] options
|
680
|
+
# Request-specific options
|
681
|
+
#
|
682
|
+
# @yield [result, err] Result & error if block supplied
|
683
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::Empty] parsed result object
|
684
|
+
# @yieldparam err [StandardError] error object if request failed
|
685
|
+
#
|
686
|
+
# @return [Google::Apis::NetworksecurityV1beta1::Empty]
|
687
|
+
#
|
688
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
689
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
690
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
691
|
+
def delete_organization_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
692
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
693
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Empty::Representation
|
694
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::Empty
|
695
|
+
command.params['name'] = name unless name.nil?
|
696
|
+
command.query['fields'] = fields unless fields.nil?
|
697
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
698
|
+
execute_or_queue_command(command, &block)
|
699
|
+
end
|
700
|
+
|
701
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
702
|
+
# to poll the operation result at intervals as recommended by the API service.
|
703
|
+
# @param [String] name
|
704
|
+
# The name of the operation resource.
|
705
|
+
# @param [String] fields
|
706
|
+
# Selector specifying which fields to include in a partial response.
|
707
|
+
# @param [String] quota_user
|
708
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
709
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
710
|
+
# @param [Google::Apis::RequestOptions] options
|
711
|
+
# Request-specific options
|
712
|
+
#
|
713
|
+
# @yield [result, err] Result & error if block supplied
|
714
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
|
715
|
+
# @yieldparam err [StandardError] error object if request failed
|
716
|
+
#
|
717
|
+
# @return [Google::Apis::NetworksecurityV1beta1::Operation]
|
718
|
+
#
|
719
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
720
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
721
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
722
|
+
def get_organization_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
723
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
724
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
725
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
|
726
|
+
command.params['name'] = name unless name.nil?
|
727
|
+
command.query['fields'] = fields unless fields.nil?
|
728
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
729
|
+
execute_or_queue_command(command, &block)
|
730
|
+
end
|
731
|
+
|
732
|
+
# Lists operations that match the specified filter in the request. If the server
|
733
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
734
|
+
# @param [String] name
|
735
|
+
# The name of the operation's parent resource.
|
736
|
+
# @param [String] filter
|
737
|
+
# The standard list filter.
|
738
|
+
# @param [Fixnum] page_size
|
739
|
+
# The standard list page size.
|
740
|
+
# @param [String] page_token
|
741
|
+
# The standard list page token.
|
742
|
+
# @param [String] fields
|
743
|
+
# Selector specifying which fields to include in a partial response.
|
744
|
+
# @param [String] quota_user
|
745
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
746
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
747
|
+
# @param [Google::Apis::RequestOptions] options
|
748
|
+
# Request-specific options
|
749
|
+
#
|
750
|
+
# @yield [result, err] Result & error if block supplied
|
751
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListOperationsResponse] parsed result object
|
752
|
+
# @yieldparam err [StandardError] error object if request failed
|
753
|
+
#
|
754
|
+
# @return [Google::Apis::NetworksecurityV1beta1::ListOperationsResponse]
|
755
|
+
#
|
756
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
757
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
758
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
759
|
+
def list_organization_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
760
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
761
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::ListOperationsResponse::Representation
|
762
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::ListOperationsResponse
|
763
|
+
command.params['name'] = name unless name.nil?
|
764
|
+
command.query['filter'] = filter unless filter.nil?
|
765
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
766
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
767
|
+
command.query['fields'] = fields unless fields.nil?
|
768
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
769
|
+
execute_or_queue_command(command, &block)
|
770
|
+
end
|
771
|
+
|
772
|
+
# Creates a new SecurityProfileGroup in a given organization and location.
|
773
|
+
# @param [String] parent
|
774
|
+
# Required. The parent resource of the SecurityProfileGroup. Must be in the
|
775
|
+
# format `projects|organizations/*/locations/`location``.
|
776
|
+
# @param [Google::Apis::NetworksecurityV1beta1::SecurityProfileGroup] security_profile_group_object
|
777
|
+
# @param [String] security_profile_group_id
|
778
|
+
# Required. Short name of the SecurityProfileGroup resource to be created. This
|
779
|
+
# value should be 1-63 characters long, containing only letters, numbers,
|
780
|
+
# hyphens, and underscores, and should not start with a number. E.g. "
|
781
|
+
# security_profile_group1".
|
782
|
+
# @param [String] fields
|
783
|
+
# Selector specifying which fields to include in a partial response.
|
784
|
+
# @param [String] quota_user
|
785
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
786
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
787
|
+
# @param [Google::Apis::RequestOptions] options
|
788
|
+
# Request-specific options
|
789
|
+
#
|
790
|
+
# @yield [result, err] Result & error if block supplied
|
791
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
|
792
|
+
# @yieldparam err [StandardError] error object if request failed
|
793
|
+
#
|
794
|
+
# @return [Google::Apis::NetworksecurityV1beta1::Operation]
|
795
|
+
#
|
796
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
797
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
798
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
799
|
+
def create_organization_location_security_profile_group(parent, security_profile_group_object = nil, security_profile_group_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
800
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/securityProfileGroups', options)
|
801
|
+
command.request_representation = Google::Apis::NetworksecurityV1beta1::SecurityProfileGroup::Representation
|
802
|
+
command.request_object = security_profile_group_object
|
803
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
804
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
|
805
|
+
command.params['parent'] = parent unless parent.nil?
|
806
|
+
command.query['securityProfileGroupId'] = security_profile_group_id unless security_profile_group_id.nil?
|
807
|
+
command.query['fields'] = fields unless fields.nil?
|
808
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
809
|
+
execute_or_queue_command(command, &block)
|
810
|
+
end
|
811
|
+
|
812
|
+
# Deletes a single SecurityProfileGroup.
|
813
|
+
# @param [String] name
|
814
|
+
# Required. A name of the SecurityProfileGroup to delete. Must be in the format `
|
815
|
+
# projects|organizations/*/locations/`location`/securityProfileGroups/`
|
816
|
+
# security_profile_group``.
|
817
|
+
# @param [String] etag
|
818
|
+
# Optional. If client provided etag is out of date, delete will return
|
819
|
+
# FAILED_PRECONDITION error.
|
820
|
+
# @param [String] fields
|
821
|
+
# Selector specifying which fields to include in a partial response.
|
822
|
+
# @param [String] quota_user
|
823
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
824
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
825
|
+
# @param [Google::Apis::RequestOptions] options
|
826
|
+
# Request-specific options
|
827
|
+
#
|
828
|
+
# @yield [result, err] Result & error if block supplied
|
829
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
|
830
|
+
# @yieldparam err [StandardError] error object if request failed
|
831
|
+
#
|
832
|
+
# @return [Google::Apis::NetworksecurityV1beta1::Operation]
|
833
|
+
#
|
834
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
835
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
836
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
837
|
+
def delete_organization_location_security_profile_group(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
|
838
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
839
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
840
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
|
841
|
+
command.params['name'] = name unless name.nil?
|
842
|
+
command.query['etag'] = etag unless etag.nil?
|
843
|
+
command.query['fields'] = fields unless fields.nil?
|
844
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
845
|
+
execute_or_queue_command(command, &block)
|
846
|
+
end
|
847
|
+
|
848
|
+
# Gets details of a single SecurityProfileGroup.
|
849
|
+
# @param [String] name
|
850
|
+
# Required. A name of the SecurityProfileGroup to get. Must be in the format `
|
851
|
+
# projects|organizations/*/locations/`location`/securityProfileGroups/`
|
852
|
+
# security_profile_group``.
|
853
|
+
# @param [String] fields
|
854
|
+
# Selector specifying which fields to include in a partial response.
|
855
|
+
# @param [String] quota_user
|
856
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
857
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
858
|
+
# @param [Google::Apis::RequestOptions] options
|
859
|
+
# Request-specific options
|
860
|
+
#
|
861
|
+
# @yield [result, err] Result & error if block supplied
|
862
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::SecurityProfileGroup] parsed result object
|
863
|
+
# @yieldparam err [StandardError] error object if request failed
|
864
|
+
#
|
865
|
+
# @return [Google::Apis::NetworksecurityV1beta1::SecurityProfileGroup]
|
866
|
+
#
|
867
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
868
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
869
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
870
|
+
def get_organization_location_security_profile_group(name, fields: nil, quota_user: nil, options: nil, &block)
|
871
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
872
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::SecurityProfileGroup::Representation
|
873
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::SecurityProfileGroup
|
874
|
+
command.params['name'] = name unless name.nil?
|
875
|
+
command.query['fields'] = fields unless fields.nil?
|
876
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
877
|
+
execute_or_queue_command(command, &block)
|
878
|
+
end
|
879
|
+
|
880
|
+
# Lists SecurityProfileGroups in a given organization and location.
|
881
|
+
# @param [String] parent
|
882
|
+
# Required. The project or organization and location from which the
|
883
|
+
# SecurityProfileGroups should be listed, specified in the format `projects|
|
884
|
+
# organizations/*/locations/`location``.
|
885
|
+
# @param [Fixnum] page_size
|
886
|
+
# Maximum number of SecurityProfileGroups to return per call.
|
887
|
+
# @param [String] page_token
|
888
|
+
# The value returned by the last `ListSecurityProfileGroupsResponse` Indicates
|
889
|
+
# that this is a continuation of a prior `ListSecurityProfileGroups` call, and
|
890
|
+
# that the system should return the next page of data.
|
891
|
+
# @param [String] fields
|
892
|
+
# Selector specifying which fields to include in a partial response.
|
893
|
+
# @param [String] quota_user
|
894
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
895
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
896
|
+
# @param [Google::Apis::RequestOptions] options
|
897
|
+
# Request-specific options
|
898
|
+
#
|
899
|
+
# @yield [result, err] Result & error if block supplied
|
900
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListSecurityProfileGroupsResponse] parsed result object
|
901
|
+
# @yieldparam err [StandardError] error object if request failed
|
902
|
+
#
|
903
|
+
# @return [Google::Apis::NetworksecurityV1beta1::ListSecurityProfileGroupsResponse]
|
904
|
+
#
|
905
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
906
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
907
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
908
|
+
def list_organization_location_security_profile_groups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
909
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/securityProfileGroups', options)
|
910
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::ListSecurityProfileGroupsResponse::Representation
|
911
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::ListSecurityProfileGroupsResponse
|
912
|
+
command.params['parent'] = parent unless parent.nil?
|
913
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
914
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
915
|
+
command.query['fields'] = fields unless fields.nil?
|
916
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
917
|
+
execute_or_queue_command(command, &block)
|
918
|
+
end
|
919
|
+
|
920
|
+
# Updates the parameters of a single SecurityProfileGroup.
|
921
|
+
# @param [String] name
|
922
|
+
# Immutable. Name of the SecurityProfileGroup resource. It matches pattern `
|
923
|
+
# projects|organizations/*/locations/`location`/securityProfileGroups/`
|
924
|
+
# security_profile_group``.
|
925
|
+
# @param [Google::Apis::NetworksecurityV1beta1::SecurityProfileGroup] security_profile_group_object
|
926
|
+
# @param [String] update_mask
|
927
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
928
|
+
# SecurityProfileGroup resource by the update. The fields specified in the
|
929
|
+
# update_mask are relative to the resource, not the full request. A field will
|
930
|
+
# be overwritten if it is in the mask.
|
931
|
+
# @param [String] fields
|
932
|
+
# Selector specifying which fields to include in a partial response.
|
933
|
+
# @param [String] quota_user
|
934
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
935
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
936
|
+
# @param [Google::Apis::RequestOptions] options
|
937
|
+
# Request-specific options
|
938
|
+
#
|
939
|
+
# @yield [result, err] Result & error if block supplied
|
940
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
|
941
|
+
# @yieldparam err [StandardError] error object if request failed
|
942
|
+
#
|
943
|
+
# @return [Google::Apis::NetworksecurityV1beta1::Operation]
|
944
|
+
#
|
945
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
946
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
947
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
948
|
+
def patch_organization_location_security_profile_group(name, security_profile_group_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
949
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
950
|
+
command.request_representation = Google::Apis::NetworksecurityV1beta1::SecurityProfileGroup::Representation
|
951
|
+
command.request_object = security_profile_group_object
|
952
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
953
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
|
954
|
+
command.params['name'] = name unless name.nil?
|
955
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
956
|
+
command.query['fields'] = fields unless fields.nil?
|
957
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
958
|
+
execute_or_queue_command(command, &block)
|
959
|
+
end
|
960
|
+
|
961
|
+
# Creates a new SecurityProfile in a given organization and location.
|
962
|
+
# @param [String] parent
|
963
|
+
# Required. The parent resource of the SecurityProfile. Must be in the format `
|
964
|
+
# projects|organizations/*/locations/`location``.
|
965
|
+
# @param [Google::Apis::NetworksecurityV1beta1::SecurityProfile] security_profile_object
|
966
|
+
# @param [String] security_profile_id
|
967
|
+
# Required. Short name of the SecurityProfile resource to be created. This value
|
968
|
+
# should be 1-63 characters long, containing only letters, numbers, hyphens, and
|
969
|
+
# underscores, and should not start with a number. E.g. "security_profile1".
|
970
|
+
# @param [String] fields
|
971
|
+
# Selector specifying which fields to include in a partial response.
|
972
|
+
# @param [String] quota_user
|
973
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
974
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
975
|
+
# @param [Google::Apis::RequestOptions] options
|
976
|
+
# Request-specific options
|
977
|
+
#
|
978
|
+
# @yield [result, err] Result & error if block supplied
|
979
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
|
432
980
|
# @yieldparam err [StandardError] error object if request failed
|
433
981
|
#
|
434
|
-
# @return [Google::Apis::NetworksecurityV1beta1::
|
982
|
+
# @return [Google::Apis::NetworksecurityV1beta1::Operation]
|
435
983
|
#
|
436
984
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
437
985
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
438
986
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
439
|
-
def
|
440
|
-
command = make_simple_command(:post, 'v1beta1/{+
|
441
|
-
command.request_representation = Google::Apis::NetworksecurityV1beta1::
|
442
|
-
command.request_object =
|
443
|
-
command.response_representation = Google::Apis::NetworksecurityV1beta1::
|
444
|
-
command.response_class = Google::Apis::NetworksecurityV1beta1::
|
445
|
-
command.params['
|
987
|
+
def create_organization_location_security_profile(parent, security_profile_object = nil, security_profile_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
988
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/securityProfiles', options)
|
989
|
+
command.request_representation = Google::Apis::NetworksecurityV1beta1::SecurityProfile::Representation
|
990
|
+
command.request_object = security_profile_object
|
991
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
992
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
|
993
|
+
command.params['parent'] = parent unless parent.nil?
|
994
|
+
command.query['securityProfileId'] = security_profile_id unless security_profile_id.nil?
|
446
995
|
command.query['fields'] = fields unless fields.nil?
|
447
996
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
448
997
|
execute_or_queue_command(command, &block)
|
449
998
|
end
|
450
999
|
|
451
|
-
# Deletes a
|
452
|
-
# longer interested in the operation result. It does not cancel the operation.
|
453
|
-
# If the server doesn't support this method, it returns `google.rpc.Code.
|
454
|
-
# UNIMPLEMENTED`.
|
1000
|
+
# Deletes a single SecurityProfile.
|
455
1001
|
# @param [String] name
|
456
|
-
#
|
1002
|
+
# Required. A name of the SecurityProfile to delete. Must be in the format `
|
1003
|
+
# projects|organizations/*/locations/`location`/securityProfiles/`
|
1004
|
+
# security_profile_id``.
|
1005
|
+
# @param [String] etag
|
1006
|
+
# Optional. If client provided etag is out of date, delete will return
|
1007
|
+
# FAILED_PRECONDITION error.
|
457
1008
|
# @param [String] fields
|
458
1009
|
# Selector specifying which fields to include in a partial response.
|
459
1010
|
# @param [String] quota_user
|
@@ -463,28 +1014,30 @@ module Google
|
|
463
1014
|
# Request-specific options
|
464
1015
|
#
|
465
1016
|
# @yield [result, err] Result & error if block supplied
|
466
|
-
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::
|
1017
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
|
467
1018
|
# @yieldparam err [StandardError] error object if request failed
|
468
1019
|
#
|
469
|
-
# @return [Google::Apis::NetworksecurityV1beta1::
|
1020
|
+
# @return [Google::Apis::NetworksecurityV1beta1::Operation]
|
470
1021
|
#
|
471
1022
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
472
1023
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
473
1024
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
474
|
-
def
|
1025
|
+
def delete_organization_location_security_profile(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
|
475
1026
|
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
476
|
-
command.response_representation = Google::Apis::NetworksecurityV1beta1::
|
477
|
-
command.response_class = Google::Apis::NetworksecurityV1beta1::
|
1027
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
1028
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
|
478
1029
|
command.params['name'] = name unless name.nil?
|
1030
|
+
command.query['etag'] = etag unless etag.nil?
|
479
1031
|
command.query['fields'] = fields unless fields.nil?
|
480
1032
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
481
1033
|
execute_or_queue_command(command, &block)
|
482
1034
|
end
|
483
1035
|
|
484
|
-
# Gets
|
485
|
-
# to poll the operation result at intervals as recommended by the API service.
|
1036
|
+
# Gets details of a single SecurityProfile.
|
486
1037
|
# @param [String] name
|
487
|
-
#
|
1038
|
+
# Required. A name of the SecurityProfile to get. Must be in the format `
|
1039
|
+
# projects|organizations/*/locations/`location`/securityProfiles/`
|
1040
|
+
# security_profile_id``.
|
488
1041
|
# @param [String] fields
|
489
1042
|
# Selector specifying which fields to include in a partial response.
|
490
1043
|
# @param [String] quota_user
|
@@ -494,34 +1047,35 @@ module Google
|
|
494
1047
|
# Request-specific options
|
495
1048
|
#
|
496
1049
|
# @yield [result, err] Result & error if block supplied
|
497
|
-
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::
|
1050
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::SecurityProfile] parsed result object
|
498
1051
|
# @yieldparam err [StandardError] error object if request failed
|
499
1052
|
#
|
500
|
-
# @return [Google::Apis::NetworksecurityV1beta1::
|
1053
|
+
# @return [Google::Apis::NetworksecurityV1beta1::SecurityProfile]
|
501
1054
|
#
|
502
1055
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
503
1056
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
504
1057
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
505
|
-
def
|
1058
|
+
def get_organization_location_security_profile(name, fields: nil, quota_user: nil, options: nil, &block)
|
506
1059
|
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
507
|
-
command.response_representation = Google::Apis::NetworksecurityV1beta1::
|
508
|
-
command.response_class = Google::Apis::NetworksecurityV1beta1::
|
1060
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::SecurityProfile::Representation
|
1061
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::SecurityProfile
|
509
1062
|
command.params['name'] = name unless name.nil?
|
510
1063
|
command.query['fields'] = fields unless fields.nil?
|
511
1064
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
512
1065
|
execute_or_queue_command(command, &block)
|
513
1066
|
end
|
514
1067
|
|
515
|
-
# Lists
|
516
|
-
#
|
517
|
-
#
|
518
|
-
#
|
519
|
-
#
|
520
|
-
# The standard list filter.
|
1068
|
+
# Lists SecurityProfiles in a given organization and location.
|
1069
|
+
# @param [String] parent
|
1070
|
+
# Required. The project or organization and location from which the
|
1071
|
+
# SecurityProfiles should be listed, specified in the format `projects|
|
1072
|
+
# organizations/*/locations/`location``.
|
521
1073
|
# @param [Fixnum] page_size
|
522
|
-
#
|
1074
|
+
# Maximum number of SecurityProfiles to return per call.
|
523
1075
|
# @param [String] page_token
|
524
|
-
# The
|
1076
|
+
# The value returned by the last `ListSecurityProfilesResponse` Indicates that
|
1077
|
+
# this is a continuation of a prior `ListSecurityProfiles` call, and that the
|
1078
|
+
# system should return the next page of data.
|
525
1079
|
# @param [String] fields
|
526
1080
|
# Selector specifying which fields to include in a partial response.
|
527
1081
|
# @param [String] quota_user
|
@@ -531,20 +1085,19 @@ module Google
|
|
531
1085
|
# Request-specific options
|
532
1086
|
#
|
533
1087
|
# @yield [result, err] Result & error if block supplied
|
534
|
-
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::
|
1088
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListSecurityProfilesResponse] parsed result object
|
535
1089
|
# @yieldparam err [StandardError] error object if request failed
|
536
1090
|
#
|
537
|
-
# @return [Google::Apis::NetworksecurityV1beta1::
|
1091
|
+
# @return [Google::Apis::NetworksecurityV1beta1::ListSecurityProfilesResponse]
|
538
1092
|
#
|
539
1093
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
540
1094
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
541
1095
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
542
|
-
def
|
543
|
-
command = make_simple_command(:get, 'v1beta1/{+
|
544
|
-
command.response_representation = Google::Apis::NetworksecurityV1beta1::
|
545
|
-
command.response_class = Google::Apis::NetworksecurityV1beta1::
|
546
|
-
command.params['
|
547
|
-
command.query['filter'] = filter unless filter.nil?
|
1096
|
+
def list_organization_location_security_profiles(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1097
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/securityProfiles', options)
|
1098
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::ListSecurityProfilesResponse::Representation
|
1099
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::ListSecurityProfilesResponse
|
1100
|
+
command.params['parent'] = parent unless parent.nil?
|
548
1101
|
command.query['pageSize'] = page_size unless page_size.nil?
|
549
1102
|
command.query['pageToken'] = page_token unless page_token.nil?
|
550
1103
|
command.query['fields'] = fields unless fields.nil?
|
@@ -552,6 +1105,46 @@ module Google
|
|
552
1105
|
execute_or_queue_command(command, &block)
|
553
1106
|
end
|
554
1107
|
|
1108
|
+
# Updates the parameters of a single SecurityProfile.
|
1109
|
+
# @param [String] name
|
1110
|
+
# Immutable. Name of the SecurityProfile resource. It matches pattern `projects|
|
1111
|
+
# organizations/*/locations/`location`/securityProfiles/`security_profile``.
|
1112
|
+
# @param [Google::Apis::NetworksecurityV1beta1::SecurityProfile] security_profile_object
|
1113
|
+
# @param [String] update_mask
|
1114
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
1115
|
+
# SecurityProfile resource by the update. The fields specified in the
|
1116
|
+
# update_mask are relative to the resource, not the full request. A field will
|
1117
|
+
# be overwritten if it is in the mask.
|
1118
|
+
# @param [String] fields
|
1119
|
+
# Selector specifying which fields to include in a partial response.
|
1120
|
+
# @param [String] quota_user
|
1121
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1122
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1123
|
+
# @param [Google::Apis::RequestOptions] options
|
1124
|
+
# Request-specific options
|
1125
|
+
#
|
1126
|
+
# @yield [result, err] Result & error if block supplied
|
1127
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
|
1128
|
+
# @yieldparam err [StandardError] error object if request failed
|
1129
|
+
#
|
1130
|
+
# @return [Google::Apis::NetworksecurityV1beta1::Operation]
|
1131
|
+
#
|
1132
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1133
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1134
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1135
|
+
def patch_organization_location_security_profile(name, security_profile_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1136
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
1137
|
+
command.request_representation = Google::Apis::NetworksecurityV1beta1::SecurityProfile::Representation
|
1138
|
+
command.request_object = security_profile_object
|
1139
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
1140
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
|
1141
|
+
command.params['name'] = name unless name.nil?
|
1142
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1143
|
+
command.query['fields'] = fields unless fields.nil?
|
1144
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1145
|
+
execute_or_queue_command(command, &block)
|
1146
|
+
end
|
1147
|
+
|
555
1148
|
# Gets information about a location.
|
556
1149
|
# @param [String] name
|
557
1150
|
# Resource name for the location.
|
@@ -1710,6 +2303,223 @@ module Google
|
|
1710
2303
|
execute_or_queue_command(command, &block)
|
1711
2304
|
end
|
1712
2305
|
|
2306
|
+
# Creates a new FirewallEndpointAssociation in a given project and location.
|
2307
|
+
# @param [String] parent
|
2308
|
+
# Required. Value for parent.
|
2309
|
+
# @param [Google::Apis::NetworksecurityV1beta1::FirewallEndpointAssociation] firewall_endpoint_association_object
|
2310
|
+
# @param [String] firewall_endpoint_association_id
|
2311
|
+
# Required. Id of the requesting object. If auto-generating Id server-side,
|
2312
|
+
# remove this field and firewall_endpoint_association_id from the
|
2313
|
+
# method_signature of Create RPC.
|
2314
|
+
# @param [String] request_id
|
2315
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
2316
|
+
# request ID so that if you must retry your request, the server will know to
|
2317
|
+
# ignore the request if it has already been completed. The server will guarantee
|
2318
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
2319
|
+
# situation where you make an initial request and the request times out. If you
|
2320
|
+
# make the request again with the same request ID, the server can check if
|
2321
|
+
# original operation with the same request ID was received, and if so, will
|
2322
|
+
# ignore the second request. This prevents clients from accidentally creating
|
2323
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
2324
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2325
|
+
# @param [String] fields
|
2326
|
+
# Selector specifying which fields to include in a partial response.
|
2327
|
+
# @param [String] quota_user
|
2328
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2329
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2330
|
+
# @param [Google::Apis::RequestOptions] options
|
2331
|
+
# Request-specific options
|
2332
|
+
#
|
2333
|
+
# @yield [result, err] Result & error if block supplied
|
2334
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
|
2335
|
+
# @yieldparam err [StandardError] error object if request failed
|
2336
|
+
#
|
2337
|
+
# @return [Google::Apis::NetworksecurityV1beta1::Operation]
|
2338
|
+
#
|
2339
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2340
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2341
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2342
|
+
def create_project_location_firewall_endpoint_association(parent, firewall_endpoint_association_object = nil, firewall_endpoint_association_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2343
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/firewallEndpointAssociations', options)
|
2344
|
+
command.request_representation = Google::Apis::NetworksecurityV1beta1::FirewallEndpointAssociation::Representation
|
2345
|
+
command.request_object = firewall_endpoint_association_object
|
2346
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
2347
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
|
2348
|
+
command.params['parent'] = parent unless parent.nil?
|
2349
|
+
command.query['firewallEndpointAssociationId'] = firewall_endpoint_association_id unless firewall_endpoint_association_id.nil?
|
2350
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
2351
|
+
command.query['fields'] = fields unless fields.nil?
|
2352
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2353
|
+
execute_or_queue_command(command, &block)
|
2354
|
+
end
|
2355
|
+
|
2356
|
+
# Deletes a single FirewallEndpointAssociation.
|
2357
|
+
# @param [String] name
|
2358
|
+
# Required. Name of the resource
|
2359
|
+
# @param [String] request_id
|
2360
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
2361
|
+
# request ID so that if you must retry your request, the server will know to
|
2362
|
+
# ignore the request if it has already been completed. The server will guarantee
|
2363
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
2364
|
+
# situation where you make an initial request and the request times out. If you
|
2365
|
+
# make the request again with the same request ID, the server can check if
|
2366
|
+
# original operation with the same request ID was received, and if so, will
|
2367
|
+
# ignore the second request. This prevents clients from accidentally creating
|
2368
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
2369
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2370
|
+
# @param [String] fields
|
2371
|
+
# Selector specifying which fields to include in a partial response.
|
2372
|
+
# @param [String] quota_user
|
2373
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2374
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2375
|
+
# @param [Google::Apis::RequestOptions] options
|
2376
|
+
# Request-specific options
|
2377
|
+
#
|
2378
|
+
# @yield [result, err] Result & error if block supplied
|
2379
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
|
2380
|
+
# @yieldparam err [StandardError] error object if request failed
|
2381
|
+
#
|
2382
|
+
# @return [Google::Apis::NetworksecurityV1beta1::Operation]
|
2383
|
+
#
|
2384
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2385
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2386
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2387
|
+
def delete_project_location_firewall_endpoint_association(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2388
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
2389
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
2390
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
|
2391
|
+
command.params['name'] = name unless name.nil?
|
2392
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
2393
|
+
command.query['fields'] = fields unless fields.nil?
|
2394
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2395
|
+
execute_or_queue_command(command, &block)
|
2396
|
+
end
|
2397
|
+
|
2398
|
+
# Gets details of a single FirewallEndpointAssociation.
|
2399
|
+
# @param [String] name
|
2400
|
+
# Required. Name of the resource
|
2401
|
+
# @param [String] fields
|
2402
|
+
# Selector specifying which fields to include in a partial response.
|
2403
|
+
# @param [String] quota_user
|
2404
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2405
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2406
|
+
# @param [Google::Apis::RequestOptions] options
|
2407
|
+
# Request-specific options
|
2408
|
+
#
|
2409
|
+
# @yield [result, err] Result & error if block supplied
|
2410
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::FirewallEndpointAssociation] parsed result object
|
2411
|
+
# @yieldparam err [StandardError] error object if request failed
|
2412
|
+
#
|
2413
|
+
# @return [Google::Apis::NetworksecurityV1beta1::FirewallEndpointAssociation]
|
2414
|
+
#
|
2415
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2416
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2417
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2418
|
+
def get_project_location_firewall_endpoint_association(name, fields: nil, quota_user: nil, options: nil, &block)
|
2419
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
2420
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::FirewallEndpointAssociation::Representation
|
2421
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::FirewallEndpointAssociation
|
2422
|
+
command.params['name'] = name unless name.nil?
|
2423
|
+
command.query['fields'] = fields unless fields.nil?
|
2424
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2425
|
+
execute_or_queue_command(command, &block)
|
2426
|
+
end
|
2427
|
+
|
2428
|
+
# Lists Associations in a given project and location.
|
2429
|
+
# @param [String] parent
|
2430
|
+
# Required. Parent value for ListAssociationsRequest
|
2431
|
+
# @param [String] filter
|
2432
|
+
# Filtering results
|
2433
|
+
# @param [String] order_by
|
2434
|
+
# Hint for how to order the results
|
2435
|
+
# @param [Fixnum] page_size
|
2436
|
+
# Requested page size. Server may return fewer items than requested. If
|
2437
|
+
# unspecified, server will pick an appropriate default.
|
2438
|
+
# @param [String] page_token
|
2439
|
+
# A token identifying a page of results the server should return.
|
2440
|
+
# @param [String] fields
|
2441
|
+
# Selector specifying which fields to include in a partial response.
|
2442
|
+
# @param [String] quota_user
|
2443
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2444
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2445
|
+
# @param [Google::Apis::RequestOptions] options
|
2446
|
+
# Request-specific options
|
2447
|
+
#
|
2448
|
+
# @yield [result, err] Result & error if block supplied
|
2449
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListFirewallEndpointAssociationsResponse] parsed result object
|
2450
|
+
# @yieldparam err [StandardError] error object if request failed
|
2451
|
+
#
|
2452
|
+
# @return [Google::Apis::NetworksecurityV1beta1::ListFirewallEndpointAssociationsResponse]
|
2453
|
+
#
|
2454
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2455
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2456
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2457
|
+
def list_project_location_firewall_endpoint_associations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2458
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/firewallEndpointAssociations', options)
|
2459
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::ListFirewallEndpointAssociationsResponse::Representation
|
2460
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::ListFirewallEndpointAssociationsResponse
|
2461
|
+
command.params['parent'] = parent unless parent.nil?
|
2462
|
+
command.query['filter'] = filter unless filter.nil?
|
2463
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
2464
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2465
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2466
|
+
command.query['fields'] = fields unless fields.nil?
|
2467
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2468
|
+
execute_or_queue_command(command, &block)
|
2469
|
+
end
|
2470
|
+
|
2471
|
+
# Update a single FirewallEndpointAssociation.
|
2472
|
+
# @param [String] name
|
2473
|
+
# Output only. name of resource
|
2474
|
+
# @param [Google::Apis::NetworksecurityV1beta1::FirewallEndpointAssociation] firewall_endpoint_association_object
|
2475
|
+
# @param [String] request_id
|
2476
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
2477
|
+
# request ID so that if you must retry your request, the server will know to
|
2478
|
+
# ignore the request if it has already been completed. The server will guarantee
|
2479
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
2480
|
+
# situation where you make an initial request and the request times out. If you
|
2481
|
+
# make the request again with the same request ID, the server can check if
|
2482
|
+
# original operation with the same request ID was received, and if so, will
|
2483
|
+
# ignore the second request. This prevents clients from accidentally creating
|
2484
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
2485
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2486
|
+
# @param [String] update_mask
|
2487
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
2488
|
+
# Association resource by the update. The fields specified in the update_mask
|
2489
|
+
# are relative to the resource, not the full request. A field will be
|
2490
|
+
# overwritten if it is in the mask. If the user does not provide a mask then all
|
2491
|
+
# fields will be overwritten.
|
2492
|
+
# @param [String] fields
|
2493
|
+
# Selector specifying which fields to include in a partial response.
|
2494
|
+
# @param [String] quota_user
|
2495
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2496
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2497
|
+
# @param [Google::Apis::RequestOptions] options
|
2498
|
+
# Request-specific options
|
2499
|
+
#
|
2500
|
+
# @yield [result, err] Result & error if block supplied
|
2501
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
|
2502
|
+
# @yieldparam err [StandardError] error object if request failed
|
2503
|
+
#
|
2504
|
+
# @return [Google::Apis::NetworksecurityV1beta1::Operation]
|
2505
|
+
#
|
2506
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2507
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2508
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2509
|
+
def patch_project_location_firewall_endpoint_association(name, firewall_endpoint_association_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2510
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
2511
|
+
command.request_representation = Google::Apis::NetworksecurityV1beta1::FirewallEndpointAssociation::Representation
|
2512
|
+
command.request_object = firewall_endpoint_association_object
|
2513
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
2514
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
|
2515
|
+
command.params['name'] = name unless name.nil?
|
2516
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
2517
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2518
|
+
command.query['fields'] = fields unless fields.nil?
|
2519
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2520
|
+
execute_or_queue_command(command, &block)
|
2521
|
+
end
|
2522
|
+
|
1713
2523
|
# Creates a new GatewaySecurityPolicy in a given project and location.
|
1714
2524
|
# @param [String] parent
|
1715
2525
|
# Required. The parent resource of the GatewaySecurityPolicy. Must be in the
|