google-apis-gkehub_v1alpha 0.12.0 → 0.16.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 +17 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/gkehub_v1alpha/classes.rb +463 -58
- data/lib/google/apis/gkehub_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/gkehub_v1alpha/representations.rb +188 -0
- data/lib/google/apis/gkehub_v1alpha/service.rb +449 -14
- metadata +5 -5
@@ -254,13 +254,16 @@ module Google
|
|
254
254
|
# REQUIRED: The resource for which the policy is being requested. See the
|
255
255
|
# operation documentation for the appropriate value for this field.
|
256
256
|
# @param [Fixnum] options_requested_policy_version
|
257
|
-
# Optional. The policy
|
258
|
-
# 3. Requests specifying an invalid value will be
|
259
|
-
# policies with any conditional bindings must
|
260
|
-
#
|
261
|
-
# field unset.
|
262
|
-
#
|
263
|
-
#
|
257
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
258
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
259
|
+
# rejected. Requests for policies with any conditional role bindings must
|
260
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
261
|
+
# valid value or leave the field unset. The policy in the response might use the
|
262
|
+
# policy version that you specified, or it might use a lower policy version. For
|
263
|
+
# example, if you specify version 3, but the policy has no conditional role
|
264
|
+
# bindings, the response uses version 1. To learn which resources support
|
265
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
266
|
+
# google.com/iam/help/conditions/resource-policies).
|
264
267
|
# @param [String] fields
|
265
268
|
# Selector specifying which fields to include in a partial response.
|
266
269
|
# @param [String] quota_user
|
@@ -462,19 +465,350 @@ module Google
|
|
462
465
|
execute_or_queue_command(command, &block)
|
463
466
|
end
|
464
467
|
|
468
|
+
# Creates a fleet.
|
469
|
+
# @param [String] parent
|
470
|
+
# Required. The parent (project and location) where the Fleet will be created.
|
471
|
+
# Specified in the format `projects/*/locations/*`.
|
472
|
+
# @param [Google::Apis::GkehubV1alpha::Fleet] fleet_object
|
473
|
+
# @param [String] fields
|
474
|
+
# Selector specifying which fields to include in a partial response.
|
475
|
+
# @param [String] quota_user
|
476
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
477
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
478
|
+
# @param [Google::Apis::RequestOptions] options
|
479
|
+
# Request-specific options
|
480
|
+
#
|
481
|
+
# @yield [result, err] Result & error if block supplied
|
482
|
+
# @yieldparam result [Google::Apis::GkehubV1alpha::Fleet] parsed result object
|
483
|
+
# @yieldparam err [StandardError] error object if request failed
|
484
|
+
#
|
485
|
+
# @return [Google::Apis::GkehubV1alpha::Fleet]
|
486
|
+
#
|
487
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
488
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
489
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
490
|
+
def create_project_location_fleet(parent, fleet_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
491
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/fleets', options)
|
492
|
+
command.request_representation = Google::Apis::GkehubV1alpha::Fleet::Representation
|
493
|
+
command.request_object = fleet_object
|
494
|
+
command.response_representation = Google::Apis::GkehubV1alpha::Fleet::Representation
|
495
|
+
command.response_class = Google::Apis::GkehubV1alpha::Fleet
|
496
|
+
command.params['parent'] = parent unless parent.nil?
|
497
|
+
command.query['fields'] = fields unless fields.nil?
|
498
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
499
|
+
execute_or_queue_command(command, &block)
|
500
|
+
end
|
501
|
+
|
502
|
+
# Removes a Fleet. There must be no memberships remaining in the Fleet.
|
503
|
+
# @param [String] name
|
504
|
+
# Required. The Fleet resource name in the format `projects/*/locations/*/fleets/
|
505
|
+
# *`.
|
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::GkehubV1alpha::Empty] parsed result object
|
516
|
+
# @yieldparam err [StandardError] error object if request failed
|
517
|
+
#
|
518
|
+
# @return [Google::Apis::GkehubV1alpha::Empty]
|
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 delete_project_location_fleet(name, fields: nil, quota_user: nil, options: nil, &block)
|
524
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
525
|
+
command.response_representation = Google::Apis::GkehubV1alpha::Empty::Representation
|
526
|
+
command.response_class = Google::Apis::GkehubV1alpha::Empty
|
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
|
+
# Returns the details of a fleet.
|
534
|
+
# @param [String] name
|
535
|
+
# Required. The Fleet resource name in the format `projects/*/locations/*/fleets/
|
536
|
+
# *`.
|
537
|
+
# @param [String] fields
|
538
|
+
# Selector specifying which fields to include in a partial response.
|
539
|
+
# @param [String] quota_user
|
540
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
541
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
542
|
+
# @param [Google::Apis::RequestOptions] options
|
543
|
+
# Request-specific options
|
544
|
+
#
|
545
|
+
# @yield [result, err] Result & error if block supplied
|
546
|
+
# @yieldparam result [Google::Apis::GkehubV1alpha::Fleet] parsed result object
|
547
|
+
# @yieldparam err [StandardError] error object if request failed
|
548
|
+
#
|
549
|
+
# @return [Google::Apis::GkehubV1alpha::Fleet]
|
550
|
+
#
|
551
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
552
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
553
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
554
|
+
def get_project_location_fleet(name, fields: nil, quota_user: nil, options: nil, &block)
|
555
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
556
|
+
command.response_representation = Google::Apis::GkehubV1alpha::Fleet::Representation
|
557
|
+
command.response_class = Google::Apis::GkehubV1alpha::Fleet
|
558
|
+
command.params['name'] = name unless name.nil?
|
559
|
+
command.query['fields'] = fields unless fields.nil?
|
560
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
561
|
+
execute_or_queue_command(command, &block)
|
562
|
+
end
|
563
|
+
|
564
|
+
# Updates a fleet.
|
565
|
+
# @param [String] name
|
566
|
+
# Output only. The full, unique resource name of this fleet in the format of `
|
567
|
+
# projects/`project`/locations/`location`/fleets/`fleet``. Each GCP project can
|
568
|
+
# have at most one fleet resource, named "default".
|
569
|
+
# @param [Google::Apis::GkehubV1alpha::Fleet] fleet_object
|
570
|
+
# @param [String] update_mask
|
571
|
+
# Required. The fields to be updated;
|
572
|
+
# @param [String] fields
|
573
|
+
# Selector specifying which fields to include in a partial response.
|
574
|
+
# @param [String] quota_user
|
575
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
576
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
577
|
+
# @param [Google::Apis::RequestOptions] options
|
578
|
+
# Request-specific options
|
579
|
+
#
|
580
|
+
# @yield [result, err] Result & error if block supplied
|
581
|
+
# @yieldparam result [Google::Apis::GkehubV1alpha::Fleet] parsed result object
|
582
|
+
# @yieldparam err [StandardError] error object if request failed
|
583
|
+
#
|
584
|
+
# @return [Google::Apis::GkehubV1alpha::Fleet]
|
585
|
+
#
|
586
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
587
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
588
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
589
|
+
def patch_project_location_fleet(name, fleet_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
590
|
+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
|
591
|
+
command.request_representation = Google::Apis::GkehubV1alpha::Fleet::Representation
|
592
|
+
command.request_object = fleet_object
|
593
|
+
command.response_representation = Google::Apis::GkehubV1alpha::Fleet::Representation
|
594
|
+
command.response_class = Google::Apis::GkehubV1alpha::Fleet
|
595
|
+
command.params['name'] = name unless name.nil?
|
596
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
597
|
+
command.query['fields'] = fields unless fields.nil?
|
598
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
599
|
+
execute_or_queue_command(command, &block)
|
600
|
+
end
|
601
|
+
|
602
|
+
# Creates a new Membership. **This is currently only supported for GKE clusters
|
603
|
+
# on Google Cloud**. To register other clusters, follow the instructions at
|
604
|
+
# https://cloud.google.com/anthos/multicluster-management/connect/registering-a-
|
605
|
+
# cluster.
|
606
|
+
# @param [String] parent
|
607
|
+
# Required. The parent (project and location) where the Memberships will be
|
608
|
+
# created. Specified in the format `projects/*/locations/*`.
|
609
|
+
# @param [Google::Apis::GkehubV1alpha::Membership] membership_object
|
610
|
+
# @param [String] membership_id
|
611
|
+
# Required. Client chosen ID for the membership. `membership_id` must be a valid
|
612
|
+
# RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must
|
613
|
+
# consist of lower case alphanumeric characters or `-` 3. It must start and end
|
614
|
+
# with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([
|
615
|
+
# -a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
|
616
|
+
# @param [String] request_id
|
617
|
+
# Optional. A request ID to identify requests. Specify a unique request ID so
|
618
|
+
# that if you must retry your request, the server will know to ignore the
|
619
|
+
# request if it has already been completed. The server will guarantee that for
|
620
|
+
# at least 60 minutes after the first request. For example, consider a situation
|
621
|
+
# where you make an initial request and the request times out. If you make the
|
622
|
+
# request again with the same request ID, the server can check if original
|
623
|
+
# operation with the same request ID was received, and if so, will ignore the
|
624
|
+
# second request. This prevents clients from accidentally creating duplicate
|
625
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
626
|
+
# UUID is not supported (00000000-0000-0000-0000-000000000000).
|
627
|
+
# @param [String] fields
|
628
|
+
# Selector specifying which fields to include in a partial response.
|
629
|
+
# @param [String] quota_user
|
630
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
631
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
632
|
+
# @param [Google::Apis::RequestOptions] options
|
633
|
+
# Request-specific options
|
634
|
+
#
|
635
|
+
# @yield [result, err] Result & error if block supplied
|
636
|
+
# @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
|
637
|
+
# @yieldparam err [StandardError] error object if request failed
|
638
|
+
#
|
639
|
+
# @return [Google::Apis::GkehubV1alpha::Operation]
|
640
|
+
#
|
641
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
642
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
643
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
644
|
+
def create_project_location_membership(parent, membership_object = nil, membership_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
645
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/memberships', options)
|
646
|
+
command.request_representation = Google::Apis::GkehubV1alpha::Membership::Representation
|
647
|
+
command.request_object = membership_object
|
648
|
+
command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
|
649
|
+
command.response_class = Google::Apis::GkehubV1alpha::Operation
|
650
|
+
command.params['parent'] = parent unless parent.nil?
|
651
|
+
command.query['membershipId'] = membership_id unless membership_id.nil?
|
652
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
653
|
+
command.query['fields'] = fields unless fields.nil?
|
654
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
655
|
+
execute_or_queue_command(command, &block)
|
656
|
+
end
|
657
|
+
|
658
|
+
# Removes a Membership. **This is currently only supported for GKE clusters on
|
659
|
+
# Google Cloud**. To unregister other clusters, follow the instructions at https:
|
660
|
+
# //cloud.google.com/anthos/multicluster-management/connect/unregistering-a-
|
661
|
+
# cluster.
|
662
|
+
# @param [String] name
|
663
|
+
# Required. The Membership resource name in the format `projects/*/locations/*/
|
664
|
+
# memberships/*`.
|
665
|
+
# @param [String] request_id
|
666
|
+
# Optional. A request ID to identify requests. Specify a unique request ID so
|
667
|
+
# that if you must retry your request, the server will know to ignore the
|
668
|
+
# request if it has already been completed. The server will guarantee that for
|
669
|
+
# at least 60 minutes after the first request. For example, consider a situation
|
670
|
+
# where you make an initial request and the request times out. If you make the
|
671
|
+
# request again with the same request ID, the server can check if original
|
672
|
+
# operation with the same request ID was received, and if so, will ignore the
|
673
|
+
# second request. This prevents clients from accidentally creating duplicate
|
674
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
675
|
+
# UUID is not supported (00000000-0000-0000-0000-000000000000).
|
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::GkehubV1alpha::Operation] parsed result object
|
686
|
+
# @yieldparam err [StandardError] error object if request failed
|
687
|
+
#
|
688
|
+
# @return [Google::Apis::GkehubV1alpha::Operation]
|
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_project_location_membership(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
694
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
695
|
+
command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
|
696
|
+
command.response_class = Google::Apis::GkehubV1alpha::Operation
|
697
|
+
command.params['name'] = name unless name.nil?
|
698
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
699
|
+
command.query['fields'] = fields unless fields.nil?
|
700
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
701
|
+
execute_or_queue_command(command, &block)
|
702
|
+
end
|
703
|
+
|
704
|
+
# Generates the manifest for deployment of the GKE connect agent. **This method
|
705
|
+
# is used internally by Google-provided libraries.** Most clients should not
|
706
|
+
# need to call this method directly.
|
707
|
+
# @param [String] name
|
708
|
+
# Required. The Membership resource name the Agent will associate with, in the
|
709
|
+
# format `projects/*/locations/*/memberships/*`.
|
710
|
+
# @param [String] image_pull_secret_content
|
711
|
+
# Optional. The image pull secret content for the registry, if not public.
|
712
|
+
# @param [Boolean] is_upgrade
|
713
|
+
# Optional. If true, generate the resources for upgrade only. Some resources
|
714
|
+
# generated only for installation (e.g. secrets) will be excluded.
|
715
|
+
# @param [String] namespace
|
716
|
+
# Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
|
717
|
+
# The Connect Agent is authorized automatically when run in the default
|
718
|
+
# namespace. Otherwise, explicit authorization must be granted with an
|
719
|
+
# additional IAM binding.
|
720
|
+
# @param [String] proxy
|
721
|
+
# Optional. URI of a proxy if connectivity from the agent to gkeconnect.
|
722
|
+
# googleapis.com requires the use of a proxy. Format must be in the form `http(s)
|
723
|
+
# ://`proxy_address``, depending on the HTTP/HTTPS protocol supported by the
|
724
|
+
# proxy. This will direct the connect agent's outbound traffic through a HTTP(S)
|
725
|
+
# proxy.
|
726
|
+
# @param [String] registry
|
727
|
+
# Optional. The registry to fetch the connect agent image from. Defaults to gcr.
|
728
|
+
# io/gkeconnect.
|
729
|
+
# @param [String] version
|
730
|
+
# Optional. The Connect agent version to use. Defaults to the most current
|
731
|
+
# version.
|
732
|
+
# @param [String] fields
|
733
|
+
# Selector specifying which fields to include in a partial response.
|
734
|
+
# @param [String] quota_user
|
735
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
736
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
737
|
+
# @param [Google::Apis::RequestOptions] options
|
738
|
+
# Request-specific options
|
739
|
+
#
|
740
|
+
# @yield [result, err] Result & error if block supplied
|
741
|
+
# @yieldparam result [Google::Apis::GkehubV1alpha::GenerateConnectManifestResponse] parsed result object
|
742
|
+
# @yieldparam err [StandardError] error object if request failed
|
743
|
+
#
|
744
|
+
# @return [Google::Apis::GkehubV1alpha::GenerateConnectManifestResponse]
|
745
|
+
#
|
746
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
747
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
748
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
749
|
+
def generate_project_location_membership_connect_manifest(name, image_pull_secret_content: nil, is_upgrade: nil, namespace: nil, proxy: nil, registry: nil, version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
750
|
+
command = make_simple_command(:get, 'v1alpha/{+name}:generateConnectManifest', options)
|
751
|
+
command.response_representation = Google::Apis::GkehubV1alpha::GenerateConnectManifestResponse::Representation
|
752
|
+
command.response_class = Google::Apis::GkehubV1alpha::GenerateConnectManifestResponse
|
753
|
+
command.params['name'] = name unless name.nil?
|
754
|
+
command.query['imagePullSecretContent'] = image_pull_secret_content unless image_pull_secret_content.nil?
|
755
|
+
command.query['isUpgrade'] = is_upgrade unless is_upgrade.nil?
|
756
|
+
command.query['namespace'] = namespace unless namespace.nil?
|
757
|
+
command.query['proxy'] = proxy unless proxy.nil?
|
758
|
+
command.query['registry'] = registry unless registry.nil?
|
759
|
+
command.query['version'] = version unless version.nil?
|
760
|
+
command.query['fields'] = fields unless fields.nil?
|
761
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
762
|
+
execute_or_queue_command(command, &block)
|
763
|
+
end
|
764
|
+
|
765
|
+
# Gets the details of a Membership.
|
766
|
+
# @param [String] name
|
767
|
+
# Required. The Membership resource name in the format `projects/*/locations/*/
|
768
|
+
# memberships/*`.
|
769
|
+
# @param [String] fields
|
770
|
+
# Selector specifying which fields to include in a partial response.
|
771
|
+
# @param [String] quota_user
|
772
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
773
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
774
|
+
# @param [Google::Apis::RequestOptions] options
|
775
|
+
# Request-specific options
|
776
|
+
#
|
777
|
+
# @yield [result, err] Result & error if block supplied
|
778
|
+
# @yieldparam result [Google::Apis::GkehubV1alpha::Membership] parsed result object
|
779
|
+
# @yieldparam err [StandardError] error object if request failed
|
780
|
+
#
|
781
|
+
# @return [Google::Apis::GkehubV1alpha::Membership]
|
782
|
+
#
|
783
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
784
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
785
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
786
|
+
def get_project_location_membership(name, fields: nil, quota_user: nil, options: nil, &block)
|
787
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
788
|
+
command.response_representation = Google::Apis::GkehubV1alpha::Membership::Representation
|
789
|
+
command.response_class = Google::Apis::GkehubV1alpha::Membership
|
790
|
+
command.params['name'] = name unless name.nil?
|
791
|
+
command.query['fields'] = fields unless fields.nil?
|
792
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
793
|
+
execute_or_queue_command(command, &block)
|
794
|
+
end
|
795
|
+
|
465
796
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
466
797
|
# resource exists and does not have a policy set.
|
467
798
|
# @param [String] resource
|
468
799
|
# REQUIRED: The resource for which the policy is being requested. See the
|
469
800
|
# operation documentation for the appropriate value for this field.
|
470
801
|
# @param [Fixnum] options_requested_policy_version
|
471
|
-
# Optional. The policy
|
472
|
-
# 3. Requests specifying an invalid value will be
|
473
|
-
# policies with any conditional bindings must
|
474
|
-
#
|
475
|
-
# field unset.
|
476
|
-
#
|
477
|
-
#
|
802
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
803
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
804
|
+
# rejected. Requests for policies with any conditional role bindings must
|
805
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
806
|
+
# valid value or leave the field unset. The policy in the response might use the
|
807
|
+
# policy version that you specified, or it might use a lower policy version. For
|
808
|
+
# example, if you specify version 3, but the policy has no conditional role
|
809
|
+
# bindings, the response uses version 1. To learn which resources support
|
810
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
811
|
+
# google.com/iam/help/conditions/resource-policies).
|
478
812
|
# @param [String] fields
|
479
813
|
# Selector specifying which fields to include in a partial response.
|
480
814
|
# @param [String] quota_user
|
@@ -503,6 +837,58 @@ module Google
|
|
503
837
|
execute_or_queue_command(command, &block)
|
504
838
|
end
|
505
839
|
|
840
|
+
# Lists Memberships in a given project and location.
|
841
|
+
# @param [String] parent
|
842
|
+
# Required. The parent (project and location) where the Memberships will be
|
843
|
+
# listed. Specified in the format `projects/*/locations/*`.
|
844
|
+
# @param [String] filter
|
845
|
+
# Optional. Lists Memberships that match the filter expression, following the
|
846
|
+
# syntax outlined in https://google.aip.dev/160. Examples: - Name is `bar` in
|
847
|
+
# project `foo-proj` and location `global`: name = "projects/foo-proj/locations/
|
848
|
+
# global/membership/bar" - Memberships that have a label called `foo`: labels.
|
849
|
+
# foo:* - Memberships that have a label called `foo` whose value is `bar`:
|
850
|
+
# labels.foo = bar - Memberships in the CREATING state: state = CREATING
|
851
|
+
# @param [String] order_by
|
852
|
+
# Optional. One or more fields to compare and use to sort the output. See https:/
|
853
|
+
# /google.aip.dev/132#ordering.
|
854
|
+
# @param [Fixnum] page_size
|
855
|
+
# Optional. When requesting a 'page' of resources, `page_size` specifies number
|
856
|
+
# of resources to return. If unspecified or set to 0, all resources will be
|
857
|
+
# returned.
|
858
|
+
# @param [String] page_token
|
859
|
+
# Optional. Token returned by previous call to `ListMemberships` which specifies
|
860
|
+
# the position in the list from where to continue listing the resources.
|
861
|
+
# @param [String] fields
|
862
|
+
# Selector specifying which fields to include in a partial response.
|
863
|
+
# @param [String] quota_user
|
864
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
865
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
866
|
+
# @param [Google::Apis::RequestOptions] options
|
867
|
+
# Request-specific options
|
868
|
+
#
|
869
|
+
# @yield [result, err] Result & error if block supplied
|
870
|
+
# @yieldparam result [Google::Apis::GkehubV1alpha::ListMembershipsResponse] parsed result object
|
871
|
+
# @yieldparam err [StandardError] error object if request failed
|
872
|
+
#
|
873
|
+
# @return [Google::Apis::GkehubV1alpha::ListMembershipsResponse]
|
874
|
+
#
|
875
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
876
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
877
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
878
|
+
def list_project_location_memberships(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
879
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/memberships', options)
|
880
|
+
command.response_representation = Google::Apis::GkehubV1alpha::ListMembershipsResponse::Representation
|
881
|
+
command.response_class = Google::Apis::GkehubV1alpha::ListMembershipsResponse
|
882
|
+
command.params['parent'] = parent unless parent.nil?
|
883
|
+
command.query['filter'] = filter unless filter.nil?
|
884
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
885
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
886
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
887
|
+
command.query['fields'] = fields unless fields.nil?
|
888
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
889
|
+
execute_or_queue_command(command, &block)
|
890
|
+
end
|
891
|
+
|
506
892
|
# Lists Memberships of admin clusters in a given project and location. **This
|
507
893
|
# method is only used internally**.
|
508
894
|
# @param [String] parent
|
@@ -552,6 +938,55 @@ module Google
|
|
552
938
|
execute_or_queue_command(command, &block)
|
553
939
|
end
|
554
940
|
|
941
|
+
# Updates an existing Membership.
|
942
|
+
# @param [String] name
|
943
|
+
# Required. The Membership resource name in the format `projects/*/locations/*/
|
944
|
+
# memberships/*`.
|
945
|
+
# @param [Google::Apis::GkehubV1alpha::Membership] membership_object
|
946
|
+
# @param [String] request_id
|
947
|
+
# Optional. A request ID to identify requests. Specify a unique request ID so
|
948
|
+
# that if you must retry your request, the server will know to ignore the
|
949
|
+
# request if it has already been completed. The server will guarantee that for
|
950
|
+
# at least 60 minutes after the first request. For example, consider a situation
|
951
|
+
# where you make an initial request and the request times out. If you make the
|
952
|
+
# request again with the same request ID, the server can check if original
|
953
|
+
# operation with the same request ID was received, and if so, will ignore the
|
954
|
+
# second request. This prevents clients from accidentally creating duplicate
|
955
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
956
|
+
# UUID is not supported (00000000-0000-0000-0000-000000000000).
|
957
|
+
# @param [String] update_mask
|
958
|
+
# Required. Mask of fields to update.
|
959
|
+
# @param [String] fields
|
960
|
+
# Selector specifying which fields to include in a partial response.
|
961
|
+
# @param [String] quota_user
|
962
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
963
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
964
|
+
# @param [Google::Apis::RequestOptions] options
|
965
|
+
# Request-specific options
|
966
|
+
#
|
967
|
+
# @yield [result, err] Result & error if block supplied
|
968
|
+
# @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
|
969
|
+
# @yieldparam err [StandardError] error object if request failed
|
970
|
+
#
|
971
|
+
# @return [Google::Apis::GkehubV1alpha::Operation]
|
972
|
+
#
|
973
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
974
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
975
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
976
|
+
def patch_project_location_membership(name, membership_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
977
|
+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
|
978
|
+
command.request_representation = Google::Apis::GkehubV1alpha::Membership::Representation
|
979
|
+
command.request_object = membership_object
|
980
|
+
command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
|
981
|
+
command.response_class = Google::Apis::GkehubV1alpha::Operation
|
982
|
+
command.params['name'] = name unless name.nil?
|
983
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
984
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
985
|
+
command.query['fields'] = fields unless fields.nil?
|
986
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
987
|
+
execute_or_queue_command(command, &block)
|
988
|
+
end
|
989
|
+
|
555
990
|
# Sets the access control policy on the specified resource. Replaces any
|
556
991
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
557
992
|
# PERMISSION_DENIED` errors.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-gkehub_v1alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v1alpha/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.16.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v1alpha
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|