Class: Google::Apis::GkehubV1alpha::GKEHubService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::GkehubV1alpha::GKEHubService
- Defined in:
- lib/google/apis/gkehub_v1alpha/service.rb
Overview
GKE Hub API
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Empty
Starts asynchronous cancellation on a long-running operation.
-
#create_project_location_feature(parent, feature_object = nil, feature_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Adds a new Feature.
-
#create_project_location_fleet(parent, fleet_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Creates a fleet.
-
#create_project_location_membership(parent, membership_object = nil, membership_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Creates a new Membership.
-
#delete_project_location_feature(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Removes a Feature.
-
#delete_project_location_fleet(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Removes a Fleet.
-
#delete_project_location_membership(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Removes a Membership.
-
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Empty
Deletes a long-running operation.
-
#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) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::GenerateConnectManifestResponse
Generates the manifest for deployment of the GKE connect agent.
-
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Location
Gets information about a location.
-
#get_project_location_feature(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Feature
Gets details of a single Feature.
-
#get_project_location_feature_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Policy
Gets the access control policy for a resource.
-
#get_project_location_fleet(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Fleet
Returns the details of a fleet.
-
#get_project_location_membership(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Membership
Gets the details of a Membership.
-
#get_project_location_membership_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Policy
Gets the access control policy for a resource.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Gets the latest state of a long-running operation.
-
#initialize ⇒ GKEHubService
constructor
A new instance of GKEHubService.
-
#list_organization_location_fleets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::ListFleetsResponse
Returns all fleets within an organization or a project that the caller has access to.
-
#list_project_location_features(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::ListFeaturesResponse
Lists Features in a given project and location.
-
#list_project_location_fleets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::ListFleetsResponse
Returns all fleets within an organization or a project that the caller has access to.
-
#list_project_location_membership_admin(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::ListAdminClusterMembershipsResponse
Lists Memberships of admin clusters in a given project and location.
-
#list_project_location_memberships(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::ListMembershipsResponse
Lists Memberships in a given project and location.
-
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::ListLocationsResponse
Lists information about the supported locations for this service.
-
#patch_project_location_feature(name, feature_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Updates an existing Feature.
-
#patch_project_location_fleet(name, fleet_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Updates a fleet.
-
#patch_project_location_membership(name, membership_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Updates an existing Membership.
-
#set_feature_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Policy
Sets the access control policy on the specified resource.
-
#set_membership_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Policy
Sets the access control policy on the specified resource.
-
#test_feature_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_membership_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
Constructor Details
#initialize ⇒ GKEHubService
Returns a new instance of GKEHubService.
45 46 47 48 49 50 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 45 def initialize super('https://gkehub.googleapis.com/', '', client_name: 'google-apis-gkehub_v1alpha', client_version: Google::Apis::GkehubV1alpha::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
38 39 40 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 38 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
43 44 45 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 43 def quota_user @quota_user end |
Instance Method Details
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Empty
Starts asynchronous cancellation on a long-running operation. The server makes
a best effort to cancel the operation, but success is not guaranteed. If the
server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
Clients can use Operations.GetOperation or other methods to check whether the
cancellation succeeded or whether the operation completed despite cancellation.
On successful cancellation, the operation is not deleted; instead, it becomes
an operation with an Operation.error value with a google.rpc.Status.code of 1,
corresponding to Code.CANCELLED.
1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 1185 def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+name}:cancel', ) command.request_representation = Google::Apis::GkehubV1alpha::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::GkehubV1alpha::Empty::Representation command.response_class = Google::Apis::GkehubV1alpha::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_feature(parent, feature_object = nil, feature_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Adds a new Feature.
202 203 204 205 206 207 208 209 210 211 212 213 214 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 202 def create_project_location_feature(parent, feature_object = nil, feature_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+parent}/features', ) command.request_representation = Google::Apis::GkehubV1alpha::Feature::Representation command.request_object = feature_object command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation command.response_class = Google::Apis::GkehubV1alpha::Operation command.params['parent'] = parent unless parent.nil? command.query['featureId'] = feature_id unless feature_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_fleet(parent, fleet_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Creates a fleet.
538 539 540 541 542 543 544 545 546 547 548 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 538 def create_project_location_fleet(parent, fleet_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+parent}/fleets', ) command.request_representation = Google::Apis::GkehubV1alpha::Fleet::Representation command.request_object = fleet_object command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation command.response_class = Google::Apis::GkehubV1alpha::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_membership(parent, membership_object = nil, membership_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Creates a new Membership. This is currently only supported for GKE clusters on Google Cloud. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a- cluster.
734 735 736 737 738 739 740 741 742 743 744 745 746 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 734 def create_project_location_membership(parent, membership_object = nil, membership_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+parent}/memberships', ) command.request_representation = Google::Apis::GkehubV1alpha::Membership::Representation command.request_object = membership_object command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation command.response_class = Google::Apis::GkehubV1alpha::Operation command.params['parent'] = parent unless parent.nil? command.query['membershipId'] = membership_id unless membership_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_feature(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Removes a Feature.
252 253 254 255 256 257 258 259 260 261 262 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 252 def delete_project_location_feature(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation command.response_class = Google::Apis::GkehubV1alpha::Operation command.params['name'] = name unless name.nil? command.query['force'] = force unless force.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_fleet(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Removes a Fleet. There must be no memberships remaining in the Fleet.
571 572 573 574 575 576 577 578 579 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 571 def delete_project_location_fleet(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation command.response_class = Google::Apis::GkehubV1alpha::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_membership(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Removes a Membership. This is currently only supported for GKE clusters on Google Cloud. To unregister other clusters, follow the instructions at https: //cloud.google.com/anthos/multicluster-management/connect/unregistering-a- cluster.
783 784 785 786 787 788 789 790 791 792 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 783 def delete_project_location_membership(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation command.response_class = Google::Apis::GkehubV1alpha::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Empty
Deletes a long-running operation. This method indicates that the client is no
longer interested in the operation result. It does not cancel the operation.
If the server doesn't support this method, it returns google.rpc.Code.
UNIMPLEMENTED.
1220 1221 1222 1223 1224 1225 1226 1227 1228 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 1220 def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::GkehubV1alpha::Empty::Representation command.response_class = Google::Apis::GkehubV1alpha::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#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) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::GenerateConnectManifestResponse
Generates the manifest for deployment of the GKE connect agent. This method is used internally by Google-provided libraries. Most clients should not need to call this method directly.
839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 839 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) command = make_simple_command(:get, 'v1alpha/{+name}:generateConnectManifest', ) command.response_representation = Google::Apis::GkehubV1alpha::GenerateConnectManifestResponse::Representation command.response_class = Google::Apis::GkehubV1alpha::GenerateConnectManifestResponse command.params['name'] = name unless name.nil? command.query['imagePullSecretContent'] = image_pull_secret_content unless image_pull_secret_content.nil? command.query['isUpgrade'] = is_upgrade unless is_upgrade.nil? command.query['namespace'] = namespace unless namespace.nil? command.query['proxy'] = proxy unless proxy.nil? command.query['registry'] = registry unless registry.nil? command.query['version'] = version unless version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Location
Gets information about a location.
114 115 116 117 118 119 120 121 122 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 114 def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::GkehubV1alpha::Location::Representation command.response_class = Google::Apis::GkehubV1alpha::Location command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_feature(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Feature
Gets details of a single Feature.
285 286 287 288 289 290 291 292 293 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 285 def get_project_location_feature(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::GkehubV1alpha::Feature::Representation command.response_class = Google::Apis::GkehubV1alpha::Feature command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_feature_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
329 330 331 332 333 334 335 336 337 338 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 329 def get_project_location_feature_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::GkehubV1alpha::Policy::Representation command.response_class = Google::Apis::GkehubV1alpha::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_fleet(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Fleet
Returns the details of a fleet.
602 603 604 605 606 607 608 609 610 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 602 def get_project_location_fleet(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::GkehubV1alpha::Fleet::Representation command.response_class = Google::Apis::GkehubV1alpha::Fleet command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_membership(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Membership
Gets the details of a Membership.
876 877 878 879 880 881 882 883 884 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 876 def get_project_location_membership(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::GkehubV1alpha::Membership::Representation command.response_class = Google::Apis::GkehubV1alpha::Membership command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_membership_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
920 921 922 923 924 925 926 927 928 929 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 920 def get_project_location_membership_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::GkehubV1alpha::Policy::Representation command.response_class = Google::Apis::GkehubV1alpha::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
1251 1252 1253 1254 1255 1256 1257 1258 1259 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 1251 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation command.response_class = Google::Apis::GkehubV1alpha::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_organization_location_fleets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::ListFleetsResponse
Returns all fleets within an organization or a project that the caller has access to.
82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 82 def list_organization_location_fleets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+parent}/fleets', ) command.response_representation = Google::Apis::GkehubV1alpha::ListFleetsResponse::Representation command.response_class = Google::Apis::GkehubV1alpha::ListFleetsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_features(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::ListFeaturesResponse
Lists Features in a given project and location.
377 378 379 380 381 382 383 384 385 386 387 388 389 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 377 def list_project_location_features(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+parent}/features', ) command.response_representation = Google::Apis::GkehubV1alpha::ListFeaturesResponse::Representation command.response_class = Google::Apis::GkehubV1alpha::ListFeaturesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_fleets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::ListFleetsResponse
Returns all fleets within an organization or a project that the caller has access to.
642 643 644 645 646 647 648 649 650 651 652 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 642 def list_project_location_fleets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+parent}/fleets', ) command.response_representation = Google::Apis::GkehubV1alpha::ListFleetsResponse::Representation command.response_class = Google::Apis::GkehubV1alpha::ListFleetsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_membership_admin(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::ListAdminClusterMembershipsResponse
Lists Memberships of admin clusters in a given project and location. This method is only used internally.
1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 1018 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) command = make_simple_command(:get, 'v1alpha/{+parent}/memberships:listAdmin', ) command.response_representation = Google::Apis::GkehubV1alpha::ListAdminClusterMembershipsResponse::Representation command.response_class = Google::Apis::GkehubV1alpha::ListAdminClusterMembershipsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_memberships(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::ListMembershipsResponse
Lists Memberships in a given project and location.
969 970 971 972 973 974 975 976 977 978 979 980 981 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 969 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) command = make_simple_command(:get, 'v1alpha/{+parent}/memberships', ) command.response_representation = Google::Apis::GkehubV1alpha::ListMembershipsResponse::Representation command.response_class = Google::Apis::GkehubV1alpha::ListMembershipsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::ListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED. NOTE: the name
binding allows API services to override the binding to use different resource
name schemes, such as users/*/operations. To override the binding, API
services can add a binding such as "/v1/name=users/*/operations" to their
service configuration. For backwards compatibility, the default name includes
the operations collection id, however overriding users must ensure the name
binding is the parent resource, without the operations collection id.
1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 1294 def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}/operations', ) command.response_representation = Google::Apis::GkehubV1alpha::ListOperationsResponse::Representation command.response_class = Google::Apis::GkehubV1alpha::ListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::ListLocationsResponse
Lists information about the supported locations for this service.
154 155 156 157 158 159 160 161 162 163 164 165 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 154 def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}/locations', ) command.response_representation = Google::Apis::GkehubV1alpha::ListLocationsResponse::Representation command.response_class = Google::Apis::GkehubV1alpha::ListLocationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_feature(name, feature_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Updates an existing Feature.
426 427 428 429 430 431 432 433 434 435 436 437 438 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 426 def patch_project_location_feature(name, feature_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1alpha/{+name}', ) command.request_representation = Google::Apis::GkehubV1alpha::Feature::Representation command.request_object = feature_object command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation command.response_class = Google::Apis::GkehubV1alpha::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_fleet(name, fleet_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Updates a fleet.
679 680 681 682 683 684 685 686 687 688 689 690 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 679 def patch_project_location_fleet(name, fleet_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1alpha/{+name}', ) command.request_representation = Google::Apis::GkehubV1alpha::Fleet::Representation command.request_object = fleet_object command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation command.response_class = Google::Apis::GkehubV1alpha::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_membership(name, membership_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Operation
Updates an existing Membership.
1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 1067 def patch_project_location_membership(name, membership_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1alpha/{+name}', ) command.request_representation = Google::Apis::GkehubV1alpha::Membership::Representation command.request_object = membership_object command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation command.response_class = Google::Apis::GkehubV1alpha::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_feature_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and
PERMISSION_DENIED errors.
465 466 467 468 469 470 471 472 473 474 475 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 465 def set_feature_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::GkehubV1alpha::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::GkehubV1alpha::Policy::Representation command.response_class = Google::Apis::GkehubV1alpha::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_membership_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and
PERMISSION_DENIED errors.
1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 1106 def set_membership_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::GkehubV1alpha::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::GkehubV1alpha::Policy::Representation command.response_class = Google::Apis::GkehubV1alpha::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_feature_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
504 505 506 507 508 509 510 511 512 513 514 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 504 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::GkehubV1alpha::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::GkehubV1alpha::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::GkehubV1alpha::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_membership_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkehubV1alpha::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 |
# File 'lib/google/apis/gkehub_v1alpha/service.rb', line 1145 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::GkehubV1alpha::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::GkehubV1alpha::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::GkehubV1alpha::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |