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