google-apis-gkehub_v1alpha 0.10.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -462,6 +462,200 @@ module Google
462
462
  execute_or_queue_command(command, &block)
463
463
  end
464
464
 
465
+ # Creates a new Membership. **This is currently only supported for GKE clusters
466
+ # on Google Cloud**. To register other clusters, follow the instructions at
467
+ # https://cloud.google.com/anthos/multicluster-management/connect/registering-a-
468
+ # cluster.
469
+ # @param [String] parent
470
+ # Required. The parent (project and location) where the Memberships will be
471
+ # created. Specified in the format `projects/*/locations/*`.
472
+ # @param [Google::Apis::GkehubV1alpha::Membership] membership_object
473
+ # @param [String] membership_id
474
+ # Required. Client chosen ID for the membership. `membership_id` must be a valid
475
+ # RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must
476
+ # consist of lower case alphanumeric characters or `-` 3. It must start and end
477
+ # with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([
478
+ # -a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
479
+ # @param [String] request_id
480
+ # Optional. A request ID to identify requests. Specify a unique request ID so
481
+ # that if you must retry your request, the server will know to ignore the
482
+ # request if it has already been completed. The server will guarantee that for
483
+ # at least 60 minutes after the first request. For example, consider a situation
484
+ # where you make an initial request and the request times out. If you make the
485
+ # request again with the same request ID, the server can check if original
486
+ # operation with the same request ID was received, and if so, will ignore the
487
+ # second request. This prevents clients from accidentally creating duplicate
488
+ # commitments. The request ID must be a valid UUID with the exception that zero
489
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
490
+ # @param [String] fields
491
+ # Selector specifying which fields to include in a partial response.
492
+ # @param [String] quota_user
493
+ # Available to use for quota purposes for server-side applications. Can be any
494
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
495
+ # @param [Google::Apis::RequestOptions] options
496
+ # Request-specific options
497
+ #
498
+ # @yield [result, err] Result & error if block supplied
499
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
500
+ # @yieldparam err [StandardError] error object if request failed
501
+ #
502
+ # @return [Google::Apis::GkehubV1alpha::Operation]
503
+ #
504
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
505
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
506
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
507
+ def create_project_location_membership(parent, membership_object = nil, membership_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
508
+ command = make_simple_command(:post, 'v1alpha/{+parent}/memberships', options)
509
+ command.request_representation = Google::Apis::GkehubV1alpha::Membership::Representation
510
+ command.request_object = membership_object
511
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
512
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
513
+ command.params['parent'] = parent unless parent.nil?
514
+ command.query['membershipId'] = membership_id unless membership_id.nil?
515
+ command.query['requestId'] = request_id unless request_id.nil?
516
+ command.query['fields'] = fields unless fields.nil?
517
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
518
+ execute_or_queue_command(command, &block)
519
+ end
520
+
521
+ # Removes a Membership. **This is currently only supported for GKE clusters on
522
+ # Google Cloud**. To unregister other clusters, follow the instructions at https:
523
+ # //cloud.google.com/anthos/multicluster-management/connect/unregistering-a-
524
+ # cluster.
525
+ # @param [String] name
526
+ # Required. The Membership resource name in the format `projects/*/locations/*/
527
+ # memberships/*`.
528
+ # @param [String] request_id
529
+ # Optional. A request ID to identify requests. Specify a unique request ID so
530
+ # that if you must retry your request, the server will know to ignore the
531
+ # request if it has already been completed. The server will guarantee that for
532
+ # at least 60 minutes after the first request. For example, consider a situation
533
+ # where you make an initial request and the request times out. If you make the
534
+ # request again with the same request ID, the server can check if original
535
+ # operation with the same request ID was received, and if so, will ignore the
536
+ # second request. This prevents clients from accidentally creating duplicate
537
+ # commitments. The request ID must be a valid UUID with the exception that zero
538
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
539
+ # @param [String] fields
540
+ # Selector specifying which fields to include in a partial response.
541
+ # @param [String] quota_user
542
+ # Available to use for quota purposes for server-side applications. Can be any
543
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
544
+ # @param [Google::Apis::RequestOptions] options
545
+ # Request-specific options
546
+ #
547
+ # @yield [result, err] Result & error if block supplied
548
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
549
+ # @yieldparam err [StandardError] error object if request failed
550
+ #
551
+ # @return [Google::Apis::GkehubV1alpha::Operation]
552
+ #
553
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
554
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
555
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
556
+ def delete_project_location_membership(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
557
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
558
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
559
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
560
+ command.params['name'] = name unless name.nil?
561
+ command.query['requestId'] = request_id unless request_id.nil?
562
+ command.query['fields'] = fields unless fields.nil?
563
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
564
+ execute_or_queue_command(command, &block)
565
+ end
566
+
567
+ # Generates the manifest for deployment of the GKE connect agent. **This method
568
+ # is used internally by Google-provided libraries.** Most clients should not
569
+ # need to call this method directly.
570
+ # @param [String] name
571
+ # Required. The Membership resource name the Agent will associate with, in the
572
+ # format `projects/*/locations/*/memberships/*`.
573
+ # @param [String] image_pull_secret_content
574
+ # Optional. The image pull secret content for the registry, if not public.
575
+ # @param [Boolean] is_upgrade
576
+ # Optional. If true, generate the resources for upgrade only. Some resources
577
+ # generated only for installation (e.g. secrets) will be excluded.
578
+ # @param [String] namespace
579
+ # Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
580
+ # The Connect Agent is authorized automatically when run in the default
581
+ # namespace. Otherwise, explicit authorization must be granted with an
582
+ # additional IAM binding.
583
+ # @param [String] proxy
584
+ # Optional. URI of a proxy if connectivity from the agent to gkeconnect.
585
+ # googleapis.com requires the use of a proxy. Format must be in the form `http(s)
586
+ # ://`proxy_address``, depending on the HTTP/HTTPS protocol supported by the
587
+ # proxy. This will direct the connect agent's outbound traffic through a HTTP(S)
588
+ # proxy.
589
+ # @param [String] registry
590
+ # Optional. The registry to fetch the connect agent image from. Defaults to gcr.
591
+ # io/gkeconnect.
592
+ # @param [String] version
593
+ # Optional. The Connect agent version to use. Defaults to the most current
594
+ # version.
595
+ # @param [String] fields
596
+ # Selector specifying which fields to include in a partial response.
597
+ # @param [String] quota_user
598
+ # Available to use for quota purposes for server-side applications. Can be any
599
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
600
+ # @param [Google::Apis::RequestOptions] options
601
+ # Request-specific options
602
+ #
603
+ # @yield [result, err] Result & error if block supplied
604
+ # @yieldparam result [Google::Apis::GkehubV1alpha::GenerateConnectManifestResponse] parsed result object
605
+ # @yieldparam err [StandardError] error object if request failed
606
+ #
607
+ # @return [Google::Apis::GkehubV1alpha::GenerateConnectManifestResponse]
608
+ #
609
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
610
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
611
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
612
+ 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)
613
+ command = make_simple_command(:get, 'v1alpha/{+name}:generateConnectManifest', options)
614
+ command.response_representation = Google::Apis::GkehubV1alpha::GenerateConnectManifestResponse::Representation
615
+ command.response_class = Google::Apis::GkehubV1alpha::GenerateConnectManifestResponse
616
+ command.params['name'] = name unless name.nil?
617
+ command.query['imagePullSecretContent'] = image_pull_secret_content unless image_pull_secret_content.nil?
618
+ command.query['isUpgrade'] = is_upgrade unless is_upgrade.nil?
619
+ command.query['namespace'] = namespace unless namespace.nil?
620
+ command.query['proxy'] = proxy unless proxy.nil?
621
+ command.query['registry'] = registry unless registry.nil?
622
+ command.query['version'] = version unless version.nil?
623
+ command.query['fields'] = fields unless fields.nil?
624
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
625
+ execute_or_queue_command(command, &block)
626
+ end
627
+
628
+ # Gets the details of a Membership.
629
+ # @param [String] name
630
+ # Required. The Membership resource name in the format `projects/*/locations/*/
631
+ # memberships/*`.
632
+ # @param [String] fields
633
+ # Selector specifying which fields to include in a partial response.
634
+ # @param [String] quota_user
635
+ # Available to use for quota purposes for server-side applications. Can be any
636
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
637
+ # @param [Google::Apis::RequestOptions] options
638
+ # Request-specific options
639
+ #
640
+ # @yield [result, err] Result & error if block supplied
641
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Membership] parsed result object
642
+ # @yieldparam err [StandardError] error object if request failed
643
+ #
644
+ # @return [Google::Apis::GkehubV1alpha::Membership]
645
+ #
646
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
647
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
648
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
649
+ def get_project_location_membership(name, fields: nil, quota_user: nil, options: nil, &block)
650
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
651
+ command.response_representation = Google::Apis::GkehubV1alpha::Membership::Representation
652
+ command.response_class = Google::Apis::GkehubV1alpha::Membership
653
+ command.params['name'] = name unless name.nil?
654
+ command.query['fields'] = fields unless fields.nil?
655
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
656
+ execute_or_queue_command(command, &block)
657
+ end
658
+
465
659
  # Gets the access control policy for a resource. Returns an empty policy if the
466
660
  # resource exists and does not have a policy set.
467
661
  # @param [String] resource
@@ -503,6 +697,156 @@ module Google
503
697
  execute_or_queue_command(command, &block)
504
698
  end
505
699
 
700
+ # Lists Memberships in a given project and location.
701
+ # @param [String] parent
702
+ # Required. The parent (project and location) where the Memberships will be
703
+ # listed. Specified in the format `projects/*/locations/*`.
704
+ # @param [String] filter
705
+ # Optional. Lists Memberships that match the filter expression, following the
706
+ # syntax outlined in https://google.aip.dev/160. Examples: - Name is `bar` in
707
+ # project `foo-proj` and location `global`: name = "projects/foo-proj/locations/
708
+ # global/membership/bar" - Memberships that have a label called `foo`: labels.
709
+ # foo:* - Memberships that have a label called `foo` whose value is `bar`:
710
+ # labels.foo = bar - Memberships in the CREATING state: state = CREATING
711
+ # @param [String] order_by
712
+ # Optional. One or more fields to compare and use to sort the output. See https:/
713
+ # /google.aip.dev/132#ordering.
714
+ # @param [Fixnum] page_size
715
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
716
+ # of resources to return. If unspecified or set to 0, all resources will be
717
+ # returned.
718
+ # @param [String] page_token
719
+ # Optional. Token returned by previous call to `ListMemberships` which specifies
720
+ # the position in the list from where to continue listing the resources.
721
+ # @param [String] fields
722
+ # Selector specifying which fields to include in a partial response.
723
+ # @param [String] quota_user
724
+ # Available to use for quota purposes for server-side applications. Can be any
725
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
726
+ # @param [Google::Apis::RequestOptions] options
727
+ # Request-specific options
728
+ #
729
+ # @yield [result, err] Result & error if block supplied
730
+ # @yieldparam result [Google::Apis::GkehubV1alpha::ListMembershipsResponse] parsed result object
731
+ # @yieldparam err [StandardError] error object if request failed
732
+ #
733
+ # @return [Google::Apis::GkehubV1alpha::ListMembershipsResponse]
734
+ #
735
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
736
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
737
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
738
+ 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)
739
+ command = make_simple_command(:get, 'v1alpha/{+parent}/memberships', options)
740
+ command.response_representation = Google::Apis::GkehubV1alpha::ListMembershipsResponse::Representation
741
+ command.response_class = Google::Apis::GkehubV1alpha::ListMembershipsResponse
742
+ command.params['parent'] = parent unless parent.nil?
743
+ command.query['filter'] = filter unless filter.nil?
744
+ command.query['orderBy'] = order_by unless order_by.nil?
745
+ command.query['pageSize'] = page_size unless page_size.nil?
746
+ command.query['pageToken'] = page_token unless page_token.nil?
747
+ command.query['fields'] = fields unless fields.nil?
748
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
749
+ execute_or_queue_command(command, &block)
750
+ end
751
+
752
+ # Lists Memberships of admin clusters in a given project and location. **This
753
+ # method is only used internally**.
754
+ # @param [String] parent
755
+ # Required. The parent (project and location) where the Memberships of admin
756
+ # cluster will be listed. Specified in the format `projects/*/locations/*`.
757
+ # @param [String] filter
758
+ # Optional. Lists Memberships of admin clusters that match the filter expression.
759
+ # @param [String] order_by
760
+ # Optional. One or more fields to compare and use to sort the output. See https:/
761
+ # /google.aip.dev/132#ordering.
762
+ # @param [Fixnum] page_size
763
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
764
+ # of resources to return. If unspecified or set to 0, all resources will be
765
+ # returned.
766
+ # @param [String] page_token
767
+ # Optional. Token returned by previous call to `ListAdminClusterMemberships`
768
+ # which specifies the position in the list from where to continue listing the
769
+ # resources.
770
+ # @param [String] fields
771
+ # Selector specifying which fields to include in a partial response.
772
+ # @param [String] quota_user
773
+ # Available to use for quota purposes for server-side applications. Can be any
774
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
775
+ # @param [Google::Apis::RequestOptions] options
776
+ # Request-specific options
777
+ #
778
+ # @yield [result, err] Result & error if block supplied
779
+ # @yieldparam result [Google::Apis::GkehubV1alpha::ListAdminClusterMembershipsResponse] parsed result object
780
+ # @yieldparam err [StandardError] error object if request failed
781
+ #
782
+ # @return [Google::Apis::GkehubV1alpha::ListAdminClusterMembershipsResponse]
783
+ #
784
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
785
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
786
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
787
+ def list_project_location_membership_admin(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
788
+ command = make_simple_command(:get, 'v1alpha/{+parent}/memberships:listAdmin', options)
789
+ command.response_representation = Google::Apis::GkehubV1alpha::ListAdminClusterMembershipsResponse::Representation
790
+ command.response_class = Google::Apis::GkehubV1alpha::ListAdminClusterMembershipsResponse
791
+ command.params['parent'] = parent unless parent.nil?
792
+ command.query['filter'] = filter unless filter.nil?
793
+ command.query['orderBy'] = order_by unless order_by.nil?
794
+ command.query['pageSize'] = page_size unless page_size.nil?
795
+ command.query['pageToken'] = page_token unless page_token.nil?
796
+ command.query['fields'] = fields unless fields.nil?
797
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
798
+ execute_or_queue_command(command, &block)
799
+ end
800
+
801
+ # Updates an existing Membership.
802
+ # @param [String] name
803
+ # Required. The Membership resource name in the format `projects/*/locations/*/
804
+ # memberships/*`.
805
+ # @param [Google::Apis::GkehubV1alpha::Membership] membership_object
806
+ # @param [String] request_id
807
+ # Optional. A request ID to identify requests. Specify a unique request ID so
808
+ # that if you must retry your request, the server will know to ignore the
809
+ # request if it has already been completed. The server will guarantee that for
810
+ # at least 60 minutes after the first request. For example, consider a situation
811
+ # where you make an initial request and the request times out. If you make the
812
+ # request again with the same request ID, the server can check if original
813
+ # operation with the same request ID was received, and if so, will ignore the
814
+ # second request. This prevents clients from accidentally creating duplicate
815
+ # commitments. The request ID must be a valid UUID with the exception that zero
816
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
817
+ # @param [String] update_mask
818
+ # Required. Mask of fields to update.
819
+ # @param [String] fields
820
+ # Selector specifying which fields to include in a partial response.
821
+ # @param [String] quota_user
822
+ # Available to use for quota purposes for server-side applications. Can be any
823
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
824
+ # @param [Google::Apis::RequestOptions] options
825
+ # Request-specific options
826
+ #
827
+ # @yield [result, err] Result & error if block supplied
828
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
829
+ # @yieldparam err [StandardError] error object if request failed
830
+ #
831
+ # @return [Google::Apis::GkehubV1alpha::Operation]
832
+ #
833
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
834
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
835
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
836
+ def patch_project_location_membership(name, membership_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
837
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
838
+ command.request_representation = Google::Apis::GkehubV1alpha::Membership::Representation
839
+ command.request_object = membership_object
840
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
841
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
842
+ command.params['name'] = name unless name.nil?
843
+ command.query['requestId'] = request_id unless request_id.nil?
844
+ command.query['updateMask'] = update_mask unless update_mask.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
+
506
850
  # Sets the access control policy on the specified resource. Replaces any
507
851
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
508
852
  # 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.10.0
4
+ version: 0.14.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-08-23 00:00:00.000000000 Z
11
+ date: 2021-11-01 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/master/generated/google-apis-gkehub_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.10.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-gkehub_v1alpha
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.14.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: