google-apis-gkehub_v1 0.52.0 → 0.54.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/gkehub_v1/classes.rb +303 -28
- data/lib/google/apis/gkehub_v1/gem_version.rb +2 -2
- data/lib/google/apis/gkehub_v1/representations.rb +116 -0
- data/lib/google/apis/gkehub_v1/service.rb +363 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 533e661344348117f3fa461d767519e8c4396ee6672f045594fcfc50df606970
|
4
|
+
data.tar.gz: 8963160fb060d038c3cad24e6edbc72a907beef4e62fa731ca7600bbe6885209
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b270298b3048ba02f9d293f6fd0bef0f2f5400a1d45236e0f7ff641b04c7c3075ac31629ce8b1729b9da3021f1ec3ef06370c4b4ab99c0fcc758c64480aaf52f
|
7
|
+
data.tar.gz: b3367243e70f8124744a7c15a3f0cc95ca35b22612d4437cc78b0f52c50eed30d35668314c24aade3e16639ff696ac7960b2347b4f14fad7cf20ad8066b281d6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-gkehub_v1
|
2
2
|
|
3
|
+
### v0.54.0 (2023-08-13)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230804
|
6
|
+
|
7
|
+
### v0.53.0 (2023-08-06)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230728
|
10
|
+
|
3
11
|
### v0.52.0 (2023-07-16)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230707
|
@@ -398,7 +398,7 @@ module Google
|
|
398
398
|
# Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is
|
399
399
|
# enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.
|
400
400
|
# metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the
|
401
|
-
# namespace `config-management-monitoring` should be
|
401
|
+
# namespace `config-management-monitoring` should be bound to the GSA. This
|
402
402
|
# field is required when automatic Feature management is enabled.
|
403
403
|
# Corresponds to the JSON property `metricsGcpServiceAccountEmail`
|
404
404
|
# @return [String]
|
@@ -2589,6 +2589,59 @@ module Google
|
|
2589
2589
|
end
|
2590
2590
|
end
|
2591
2591
|
|
2592
|
+
# List of fleet namespaces.
|
2593
|
+
class ListScopeNamespacesResponse
|
2594
|
+
include Google::Apis::Core::Hashable
|
2595
|
+
|
2596
|
+
# A token to request the next page of resources from the `ListNamespaces` method.
|
2597
|
+
# The value of an empty string means that there are no more resources to return.
|
2598
|
+
# Corresponds to the JSON property `nextPageToken`
|
2599
|
+
# @return [String]
|
2600
|
+
attr_accessor :next_page_token
|
2601
|
+
|
2602
|
+
# The list of fleet namespaces
|
2603
|
+
# Corresponds to the JSON property `scopeNamespaces`
|
2604
|
+
# @return [Array<Google::Apis::GkehubV1::Namespace>]
|
2605
|
+
attr_accessor :scope_namespaces
|
2606
|
+
|
2607
|
+
def initialize(**args)
|
2608
|
+
update!(**args)
|
2609
|
+
end
|
2610
|
+
|
2611
|
+
# Update properties of this object
|
2612
|
+
def update!(**args)
|
2613
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2614
|
+
@scope_namespaces = args[:scope_namespaces] if args.key?(:scope_namespaces)
|
2615
|
+
end
|
2616
|
+
end
|
2617
|
+
|
2618
|
+
# List of Scope RBACRoleBindings.
|
2619
|
+
class ListScopeRbacRoleBindingsResponse
|
2620
|
+
include Google::Apis::Core::Hashable
|
2621
|
+
|
2622
|
+
# A token to request the next page of resources from the `
|
2623
|
+
# ListScopeRBACRoleBindings` method. The value of an empty string means that
|
2624
|
+
# there are no more resources to return.
|
2625
|
+
# Corresponds to the JSON property `nextPageToken`
|
2626
|
+
# @return [String]
|
2627
|
+
attr_accessor :next_page_token
|
2628
|
+
|
2629
|
+
# The list of Scope RBACRoleBindings.
|
2630
|
+
# Corresponds to the JSON property `rbacrolebindings`
|
2631
|
+
# @return [Array<Google::Apis::GkehubV1::RbacRoleBinding>]
|
2632
|
+
attr_accessor :rbacrolebindings
|
2633
|
+
|
2634
|
+
def initialize(**args)
|
2635
|
+
update!(**args)
|
2636
|
+
end
|
2637
|
+
|
2638
|
+
# Update properties of this object
|
2639
|
+
def update!(**args)
|
2640
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2641
|
+
@rbacrolebindings = args[:rbacrolebindings] if args.key?(:rbacrolebindings)
|
2642
|
+
end
|
2643
|
+
end
|
2644
|
+
|
2592
2645
|
# List of Scopes.
|
2593
2646
|
class ListScopesResponse
|
2594
2647
|
include Google::Apis::Core::Hashable
|
@@ -3155,6 +3208,99 @@ module Google
|
|
3155
3208
|
end
|
3156
3209
|
end
|
3157
3210
|
|
3211
|
+
# Namespace represents a namespace across the Fleet
|
3212
|
+
class Namespace
|
3213
|
+
include Google::Apis::Core::Hashable
|
3214
|
+
|
3215
|
+
# Output only. When the namespace was created.
|
3216
|
+
# Corresponds to the JSON property `createTime`
|
3217
|
+
# @return [String]
|
3218
|
+
attr_accessor :create_time
|
3219
|
+
|
3220
|
+
# Output only. When the namespace was deleted.
|
3221
|
+
# Corresponds to the JSON property `deleteTime`
|
3222
|
+
# @return [String]
|
3223
|
+
attr_accessor :delete_time
|
3224
|
+
|
3225
|
+
# Optional. Labels for this Namespace.
|
3226
|
+
# Corresponds to the JSON property `labels`
|
3227
|
+
# @return [Hash<String,String>]
|
3228
|
+
attr_accessor :labels
|
3229
|
+
|
3230
|
+
# The resource name for the namespace `projects/`project`/locations/`location`/
|
3231
|
+
# namespaces/`namespace``
|
3232
|
+
# Corresponds to the JSON property `name`
|
3233
|
+
# @return [String]
|
3234
|
+
attr_accessor :name
|
3235
|
+
|
3236
|
+
# Optional. Namespace-level cluster namespace labels. These labels are applied
|
3237
|
+
# to the related namespace of the member clusters bound to the parent Scope.
|
3238
|
+
# Scope-level labels (`namespace_labels` in the Fleet Scope resource) take
|
3239
|
+
# precedence over Namespace-level labels if they share a key. Keys and values
|
3240
|
+
# must be Kubernetes-conformant.
|
3241
|
+
# Corresponds to the JSON property `namespaceLabels`
|
3242
|
+
# @return [Hash<String,String>]
|
3243
|
+
attr_accessor :namespace_labels
|
3244
|
+
|
3245
|
+
# Required. Scope associated with the namespace
|
3246
|
+
# Corresponds to the JSON property `scope`
|
3247
|
+
# @return [String]
|
3248
|
+
attr_accessor :scope
|
3249
|
+
|
3250
|
+
# NamespaceLifecycleState describes the state of a Namespace resource.
|
3251
|
+
# Corresponds to the JSON property `state`
|
3252
|
+
# @return [Google::Apis::GkehubV1::NamespaceLifecycleState]
|
3253
|
+
attr_accessor :state
|
3254
|
+
|
3255
|
+
# Output only. Google-generated UUID for this resource. This is unique across
|
3256
|
+
# all namespace resources. If a namespace resource is deleted and another
|
3257
|
+
# resource with the same name is created, it gets a different uid.
|
3258
|
+
# Corresponds to the JSON property `uid`
|
3259
|
+
# @return [String]
|
3260
|
+
attr_accessor :uid
|
3261
|
+
|
3262
|
+
# Output only. When the namespace was last updated.
|
3263
|
+
# Corresponds to the JSON property `updateTime`
|
3264
|
+
# @return [String]
|
3265
|
+
attr_accessor :update_time
|
3266
|
+
|
3267
|
+
def initialize(**args)
|
3268
|
+
update!(**args)
|
3269
|
+
end
|
3270
|
+
|
3271
|
+
# Update properties of this object
|
3272
|
+
def update!(**args)
|
3273
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
3274
|
+
@delete_time = args[:delete_time] if args.key?(:delete_time)
|
3275
|
+
@labels = args[:labels] if args.key?(:labels)
|
3276
|
+
@name = args[:name] if args.key?(:name)
|
3277
|
+
@namespace_labels = args[:namespace_labels] if args.key?(:namespace_labels)
|
3278
|
+
@scope = args[:scope] if args.key?(:scope)
|
3279
|
+
@state = args[:state] if args.key?(:state)
|
3280
|
+
@uid = args[:uid] if args.key?(:uid)
|
3281
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
3282
|
+
end
|
3283
|
+
end
|
3284
|
+
|
3285
|
+
# NamespaceLifecycleState describes the state of a Namespace resource.
|
3286
|
+
class NamespaceLifecycleState
|
3287
|
+
include Google::Apis::Core::Hashable
|
3288
|
+
|
3289
|
+
# Output only. The current state of the Namespace resource.
|
3290
|
+
# Corresponds to the JSON property `code`
|
3291
|
+
# @return [String]
|
3292
|
+
attr_accessor :code
|
3293
|
+
|
3294
|
+
def initialize(**args)
|
3295
|
+
update!(**args)
|
3296
|
+
end
|
3297
|
+
|
3298
|
+
# Update properties of this object
|
3299
|
+
def update!(**args)
|
3300
|
+
@code = args[:code] if args.key?(:code)
|
3301
|
+
end
|
3302
|
+
end
|
3303
|
+
|
3158
3304
|
# OnPremCluster contains information specific to GKE On-Prem clusters.
|
3159
3305
|
class OnPremCluster
|
3160
3306
|
include Google::Apis::Core::Hashable
|
@@ -3235,13 +3381,13 @@ module Google
|
|
3235
3381
|
# @return [String]
|
3236
3382
|
attr_accessor :name
|
3237
3383
|
|
3238
|
-
# The normal response of the operation
|
3239
|
-
#
|
3240
|
-
#
|
3241
|
-
#
|
3242
|
-
#
|
3243
|
-
#
|
3244
|
-
#
|
3384
|
+
# The normal, successful response of the operation. If the original method
|
3385
|
+
# returns no data on success, such as `Delete`, the response is `google.protobuf.
|
3386
|
+
# Empty`. If the original method is standard `Get`/`Create`/`Update`, the
|
3387
|
+
# response should be the resource. For other methods, the response should have
|
3388
|
+
# the type `XxxResponse`, where `Xxx` is the original method name. For example,
|
3389
|
+
# if the original method name is `TakeSnapshot()`, the inferred response type is
|
3390
|
+
# `TakeSnapshotResponse`.
|
3245
3391
|
# Corresponds to the JSON property `response`
|
3246
3392
|
# @return [Hash<String,Object>]
|
3247
3393
|
attr_accessor :response
|
@@ -3349,22 +3495,22 @@ module Google
|
|
3349
3495
|
# evaluates to `true`. A condition can add constraints based on attributes of
|
3350
3496
|
# the request, the resource, or both. To learn which resources support
|
3351
3497
|
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
3352
|
-
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
3498
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
|
3353
3499
|
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
3354
3500
|
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
3355
3501
|
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
3356
3502
|
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
3357
3503
|
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
3358
3504
|
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
3359
|
-
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML
|
3360
|
-
# bindings: - members: - user:mike@example.com - group:admins@
|
3361
|
-
# domain:google.com - serviceAccount:my-project-id@appspot.
|
3362
|
-
# role: roles/resourcemanager.organizationAdmin - members: -
|
3363
|
-
# com role: roles/resourcemanager.organizationViewer condition:
|
3364
|
-
# access description: Does not grant access after Sep 2020
|
3365
|
-
# time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
3366
|
-
# a description of IAM and its features, see the
|
3367
|
-
# cloud.google.com/iam/docs/).
|
3505
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
|
3506
|
+
# example:** ``` bindings: - members: - user:mike@example.com - group:admins@
|
3507
|
+
# example.com - domain:google.com - serviceAccount:my-project-id@appspot.
|
3508
|
+
# gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
|
3509
|
+
# user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
|
3510
|
+
# title: expirable access description: Does not grant access after Sep 2020
|
3511
|
+
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
3512
|
+
# BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
|
3513
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
3368
3514
|
class Policy
|
3369
3515
|
include Google::Apis::Core::Hashable
|
3370
3516
|
|
@@ -3433,6 +3579,106 @@ module Google
|
|
3433
3579
|
end
|
3434
3580
|
end
|
3435
3581
|
|
3582
|
+
# RBACRoleBinding represents a rbacrolebinding across the Fleet
|
3583
|
+
class RbacRoleBinding
|
3584
|
+
include Google::Apis::Core::Hashable
|
3585
|
+
|
3586
|
+
# Output only. When the rbacrolebinding was created.
|
3587
|
+
# Corresponds to the JSON property `createTime`
|
3588
|
+
# @return [String]
|
3589
|
+
attr_accessor :create_time
|
3590
|
+
|
3591
|
+
# Output only. When the rbacrolebinding was deleted.
|
3592
|
+
# Corresponds to the JSON property `deleteTime`
|
3593
|
+
# @return [String]
|
3594
|
+
attr_accessor :delete_time
|
3595
|
+
|
3596
|
+
# group is the group, as seen by the kubernetes cluster.
|
3597
|
+
# Corresponds to the JSON property `group`
|
3598
|
+
# @return [String]
|
3599
|
+
attr_accessor :group
|
3600
|
+
|
3601
|
+
# Optional. Labels for this RBACRolebinding.
|
3602
|
+
# Corresponds to the JSON property `labels`
|
3603
|
+
# @return [Hash<String,String>]
|
3604
|
+
attr_accessor :labels
|
3605
|
+
|
3606
|
+
# The resource name for the rbacrolebinding `projects/`project`/locations/`
|
3607
|
+
# location`/namespaces/`namespace`/rbacrolebindings/`rbacrolebinding`` or `
|
3608
|
+
# projects/`project`/locations/`location`/memberships/`membership`/
|
3609
|
+
# rbacrolebindings/`rbacrolebinding``
|
3610
|
+
# Corresponds to the JSON property `name`
|
3611
|
+
# @return [String]
|
3612
|
+
attr_accessor :name
|
3613
|
+
|
3614
|
+
# Role is the type for Kubernetes roles
|
3615
|
+
# Corresponds to the JSON property `role`
|
3616
|
+
# @return [Google::Apis::GkehubV1::Role]
|
3617
|
+
attr_accessor :role
|
3618
|
+
|
3619
|
+
# RBACRoleBindingLifecycleState describes the state of a RbacRoleBinding
|
3620
|
+
# resource.
|
3621
|
+
# Corresponds to the JSON property `state`
|
3622
|
+
# @return [Google::Apis::GkehubV1::RbacRoleBindingLifecycleState]
|
3623
|
+
attr_accessor :state
|
3624
|
+
|
3625
|
+
# Output only. Google-generated UUID for this resource. This is unique across
|
3626
|
+
# all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
|
3627
|
+
# another resource with the same name is created, it gets a different uid.
|
3628
|
+
# Corresponds to the JSON property `uid`
|
3629
|
+
# @return [String]
|
3630
|
+
attr_accessor :uid
|
3631
|
+
|
3632
|
+
# Output only. When the rbacrolebinding was last updated.
|
3633
|
+
# Corresponds to the JSON property `updateTime`
|
3634
|
+
# @return [String]
|
3635
|
+
attr_accessor :update_time
|
3636
|
+
|
3637
|
+
# user is the name of the user as seen by the kubernetes cluster, example "alice"
|
3638
|
+
# or "alice@domain.tld"
|
3639
|
+
# Corresponds to the JSON property `user`
|
3640
|
+
# @return [String]
|
3641
|
+
attr_accessor :user
|
3642
|
+
|
3643
|
+
def initialize(**args)
|
3644
|
+
update!(**args)
|
3645
|
+
end
|
3646
|
+
|
3647
|
+
# Update properties of this object
|
3648
|
+
def update!(**args)
|
3649
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
3650
|
+
@delete_time = args[:delete_time] if args.key?(:delete_time)
|
3651
|
+
@group = args[:group] if args.key?(:group)
|
3652
|
+
@labels = args[:labels] if args.key?(:labels)
|
3653
|
+
@name = args[:name] if args.key?(:name)
|
3654
|
+
@role = args[:role] if args.key?(:role)
|
3655
|
+
@state = args[:state] if args.key?(:state)
|
3656
|
+
@uid = args[:uid] if args.key?(:uid)
|
3657
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
3658
|
+
@user = args[:user] if args.key?(:user)
|
3659
|
+
end
|
3660
|
+
end
|
3661
|
+
|
3662
|
+
# RBACRoleBindingLifecycleState describes the state of a RbacRoleBinding
|
3663
|
+
# resource.
|
3664
|
+
class RbacRoleBindingLifecycleState
|
3665
|
+
include Google::Apis::Core::Hashable
|
3666
|
+
|
3667
|
+
# Output only. The current state of the rbacrolebinding resource.
|
3668
|
+
# Corresponds to the JSON property `code`
|
3669
|
+
# @return [String]
|
3670
|
+
attr_accessor :code
|
3671
|
+
|
3672
|
+
def initialize(**args)
|
3673
|
+
update!(**args)
|
3674
|
+
end
|
3675
|
+
|
3676
|
+
# Update properties of this object
|
3677
|
+
def update!(**args)
|
3678
|
+
@code = args[:code] if args.key?(:code)
|
3679
|
+
end
|
3680
|
+
end
|
3681
|
+
|
3436
3682
|
# ResourceManifest represents a single Kubernetes resource to be applied to the
|
3437
3683
|
# cluster.
|
3438
3684
|
class ResourceManifest
|
@@ -3500,6 +3746,25 @@ module Google
|
|
3500
3746
|
end
|
3501
3747
|
end
|
3502
3748
|
|
3749
|
+
# Role is the type for Kubernetes roles
|
3750
|
+
class Role
|
3751
|
+
include Google::Apis::Core::Hashable
|
3752
|
+
|
3753
|
+
# predefined_role is the Kubernetes default role to use
|
3754
|
+
# Corresponds to the JSON property `predefinedRole`
|
3755
|
+
# @return [String]
|
3756
|
+
attr_accessor :predefined_role
|
3757
|
+
|
3758
|
+
def initialize(**args)
|
3759
|
+
update!(**args)
|
3760
|
+
end
|
3761
|
+
|
3762
|
+
# Update properties of this object
|
3763
|
+
def update!(**args)
|
3764
|
+
@predefined_role = args[:predefined_role] if args.key?(:predefined_role)
|
3765
|
+
end
|
3766
|
+
end
|
3767
|
+
|
3503
3768
|
# Scope represents a Scope in a Fleet.
|
3504
3769
|
class Scope
|
3505
3770
|
include Google::Apis::Core::Hashable
|
@@ -3531,6 +3796,15 @@ module Google
|
|
3531
3796
|
# @return [String]
|
3532
3797
|
attr_accessor :name
|
3533
3798
|
|
3799
|
+
# Optional. Scope-level cluster namespace labels. For the member clusters bound
|
3800
|
+
# to the Scope, these labels are applied to each namespace under the Scope.
|
3801
|
+
# Scope-level labels take precedence over Namespace-level labels (`
|
3802
|
+
# namespace_labels` in the Fleet Namespace resource) if they share a key. Keys
|
3803
|
+
# and values must be Kubernetes-conformant.
|
3804
|
+
# Corresponds to the JSON property `namespaceLabels`
|
3805
|
+
# @return [Hash<String,String>]
|
3806
|
+
attr_accessor :namespace_labels
|
3807
|
+
|
3534
3808
|
# ScopeLifecycleState describes the state of a Scope resource.
|
3535
3809
|
# Corresponds to the JSON property `state`
|
3536
3810
|
# @return [Google::Apis::GkehubV1::ScopeLifecycleState]
|
@@ -3559,6 +3833,7 @@ module Google
|
|
3559
3833
|
@delete_time = args[:delete_time] if args.key?(:delete_time)
|
3560
3834
|
@labels = args[:labels] if args.key?(:labels)
|
3561
3835
|
@name = args[:name] if args.key?(:name)
|
3836
|
+
@namespace_labels = args[:namespace_labels] if args.key?(:namespace_labels)
|
3562
3837
|
@state = args[:state] if args.key?(:state)
|
3563
3838
|
@uid = args[:uid] if args.key?(:uid)
|
3564
3839
|
@update_time = args[:update_time] if args.key?(:update_time)
|
@@ -3760,22 +4035,22 @@ module Google
|
|
3760
4035
|
# evaluates to `true`. A condition can add constraints based on attributes of
|
3761
4036
|
# the request, the resource, or both. To learn which resources support
|
3762
4037
|
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
3763
|
-
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
4038
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
|
3764
4039
|
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
3765
4040
|
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
3766
4041
|
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
3767
4042
|
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
3768
4043
|
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
3769
4044
|
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
3770
|
-
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML
|
3771
|
-
# bindings: - members: - user:mike@example.com - group:admins@
|
3772
|
-
# domain:google.com - serviceAccount:my-project-id@appspot.
|
3773
|
-
# role: roles/resourcemanager.organizationAdmin - members: -
|
3774
|
-
# com role: roles/resourcemanager.organizationViewer condition:
|
3775
|
-
# access description: Does not grant access after Sep 2020
|
3776
|
-
# time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
3777
|
-
# a description of IAM and its features, see the
|
3778
|
-
# cloud.google.com/iam/docs/).
|
4045
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
|
4046
|
+
# example:** ``` bindings: - members: - user:mike@example.com - group:admins@
|
4047
|
+
# example.com - domain:google.com - serviceAccount:my-project-id@appspot.
|
4048
|
+
# gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
|
4049
|
+
# user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
|
4050
|
+
# title: expirable access description: Does not grant access after Sep 2020
|
4051
|
+
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
4052
|
+
# BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
|
4053
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
3779
4054
|
# Corresponds to the JSON property `policy`
|
3780
4055
|
# @return [Google::Apis::GkehubV1::Policy]
|
3781
4056
|
attr_accessor :policy
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module GkehubV1
|
18
18
|
# Version of the google-apis-gkehub_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.54.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230804"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -454,6 +454,18 @@ module Google
|
|
454
454
|
include Google::Apis::Core::JsonObjectSupport
|
455
455
|
end
|
456
456
|
|
457
|
+
class ListScopeNamespacesResponse
|
458
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
|
+
|
460
|
+
include Google::Apis::Core::JsonObjectSupport
|
461
|
+
end
|
462
|
+
|
463
|
+
class ListScopeRbacRoleBindingsResponse
|
464
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
465
|
+
|
466
|
+
include Google::Apis::Core::JsonObjectSupport
|
467
|
+
end
|
468
|
+
|
457
469
|
class ListScopesResponse
|
458
470
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
471
|
|
@@ -526,6 +538,18 @@ module Google
|
|
526
538
|
include Google::Apis::Core::JsonObjectSupport
|
527
539
|
end
|
528
540
|
|
541
|
+
class Namespace
|
542
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
543
|
+
|
544
|
+
include Google::Apis::Core::JsonObjectSupport
|
545
|
+
end
|
546
|
+
|
547
|
+
class NamespaceLifecycleState
|
548
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
549
|
+
|
550
|
+
include Google::Apis::Core::JsonObjectSupport
|
551
|
+
end
|
552
|
+
|
529
553
|
class OnPremCluster
|
530
554
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
531
555
|
|
@@ -556,6 +580,18 @@ module Google
|
|
556
580
|
include Google::Apis::Core::JsonObjectSupport
|
557
581
|
end
|
558
582
|
|
583
|
+
class RbacRoleBinding
|
584
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
585
|
+
|
586
|
+
include Google::Apis::Core::JsonObjectSupport
|
587
|
+
end
|
588
|
+
|
589
|
+
class RbacRoleBindingLifecycleState
|
590
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
591
|
+
|
592
|
+
include Google::Apis::Core::JsonObjectSupport
|
593
|
+
end
|
594
|
+
|
559
595
|
class ResourceManifest
|
560
596
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
561
597
|
|
@@ -568,6 +604,12 @@ module Google
|
|
568
604
|
include Google::Apis::Core::JsonObjectSupport
|
569
605
|
end
|
570
606
|
|
607
|
+
class Role
|
608
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
609
|
+
|
610
|
+
include Google::Apis::Core::JsonObjectSupport
|
611
|
+
end
|
612
|
+
|
571
613
|
class Scope
|
572
614
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
573
615
|
|
@@ -1377,6 +1419,24 @@ module Google
|
|
1377
1419
|
end
|
1378
1420
|
end
|
1379
1421
|
|
1422
|
+
class ListScopeNamespacesResponse
|
1423
|
+
# @private
|
1424
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1425
|
+
property :next_page_token, as: 'nextPageToken'
|
1426
|
+
collection :scope_namespaces, as: 'scopeNamespaces', class: Google::Apis::GkehubV1::Namespace, decorator: Google::Apis::GkehubV1::Namespace::Representation
|
1427
|
+
|
1428
|
+
end
|
1429
|
+
end
|
1430
|
+
|
1431
|
+
class ListScopeRbacRoleBindingsResponse
|
1432
|
+
# @private
|
1433
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1434
|
+
property :next_page_token, as: 'nextPageToken'
|
1435
|
+
collection :rbacrolebindings, as: 'rbacrolebindings', class: Google::Apis::GkehubV1::RbacRoleBinding, decorator: Google::Apis::GkehubV1::RbacRoleBinding::Representation
|
1436
|
+
|
1437
|
+
end
|
1438
|
+
end
|
1439
|
+
|
1380
1440
|
class ListScopesResponse
|
1381
1441
|
# @private
|
1382
1442
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1531,6 +1591,29 @@ module Google
|
|
1531
1591
|
end
|
1532
1592
|
end
|
1533
1593
|
|
1594
|
+
class Namespace
|
1595
|
+
# @private
|
1596
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1597
|
+
property :create_time, as: 'createTime'
|
1598
|
+
property :delete_time, as: 'deleteTime'
|
1599
|
+
hash :labels, as: 'labels'
|
1600
|
+
property :name, as: 'name'
|
1601
|
+
hash :namespace_labels, as: 'namespaceLabels'
|
1602
|
+
property :scope, as: 'scope'
|
1603
|
+
property :state, as: 'state', class: Google::Apis::GkehubV1::NamespaceLifecycleState, decorator: Google::Apis::GkehubV1::NamespaceLifecycleState::Representation
|
1604
|
+
|
1605
|
+
property :uid, as: 'uid'
|
1606
|
+
property :update_time, as: 'updateTime'
|
1607
|
+
end
|
1608
|
+
end
|
1609
|
+
|
1610
|
+
class NamespaceLifecycleState
|
1611
|
+
# @private
|
1612
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1613
|
+
property :code, as: 'code'
|
1614
|
+
end
|
1615
|
+
end
|
1616
|
+
|
1534
1617
|
class OnPremCluster
|
1535
1618
|
# @private
|
1536
1619
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1585,6 +1668,31 @@ module Google
|
|
1585
1668
|
end
|
1586
1669
|
end
|
1587
1670
|
|
1671
|
+
class RbacRoleBinding
|
1672
|
+
# @private
|
1673
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1674
|
+
property :create_time, as: 'createTime'
|
1675
|
+
property :delete_time, as: 'deleteTime'
|
1676
|
+
property :group, as: 'group'
|
1677
|
+
hash :labels, as: 'labels'
|
1678
|
+
property :name, as: 'name'
|
1679
|
+
property :role, as: 'role', class: Google::Apis::GkehubV1::Role, decorator: Google::Apis::GkehubV1::Role::Representation
|
1680
|
+
|
1681
|
+
property :state, as: 'state', class: Google::Apis::GkehubV1::RbacRoleBindingLifecycleState, decorator: Google::Apis::GkehubV1::RbacRoleBindingLifecycleState::Representation
|
1682
|
+
|
1683
|
+
property :uid, as: 'uid'
|
1684
|
+
property :update_time, as: 'updateTime'
|
1685
|
+
property :user, as: 'user'
|
1686
|
+
end
|
1687
|
+
end
|
1688
|
+
|
1689
|
+
class RbacRoleBindingLifecycleState
|
1690
|
+
# @private
|
1691
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1692
|
+
property :code, as: 'code'
|
1693
|
+
end
|
1694
|
+
end
|
1695
|
+
|
1588
1696
|
class ResourceManifest
|
1589
1697
|
# @private
|
1590
1698
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1602,6 +1710,13 @@ module Google
|
|
1602
1710
|
end
|
1603
1711
|
end
|
1604
1712
|
|
1713
|
+
class Role
|
1714
|
+
# @private
|
1715
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1716
|
+
property :predefined_role, as: 'predefinedRole'
|
1717
|
+
end
|
1718
|
+
end
|
1719
|
+
|
1605
1720
|
class Scope
|
1606
1721
|
# @private
|
1607
1722
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1610,6 +1725,7 @@ module Google
|
|
1610
1725
|
property :delete_time, as: 'deleteTime'
|
1611
1726
|
hash :labels, as: 'labels'
|
1612
1727
|
property :name, as: 'name'
|
1728
|
+
hash :namespace_labels, as: 'namespaceLabels'
|
1613
1729
|
property :state, as: 'state', class: Google::Apis::GkehubV1::ScopeLifecycleState, decorator: Google::Apis::GkehubV1::ScopeLifecycleState::Representation
|
1614
1730
|
|
1615
1731
|
property :uid, as: 'uid'
|
@@ -1732,6 +1732,369 @@ module Google
|
|
1732
1732
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1733
1733
|
execute_or_queue_command(command, &block)
|
1734
1734
|
end
|
1735
|
+
|
1736
|
+
# Creates a fleet namespace.
|
1737
|
+
# @param [String] parent
|
1738
|
+
# Required. The parent (project and location) where the Namespace will be
|
1739
|
+
# created. Specified in the format `projects/*/locations/*/scopes/*`.
|
1740
|
+
# @param [Google::Apis::GkehubV1::Namespace] namespace_object
|
1741
|
+
# @param [String] scope_namespace_id
|
1742
|
+
# Required. Client chosen ID for the Namespace. `namespace_id` must be a valid
|
1743
|
+
# RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must
|
1744
|
+
# consist of lower case alphanumeric characters or `-` 3. It must start and end
|
1745
|
+
# with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([
|
1746
|
+
# -a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
|
1747
|
+
# @param [String] fields
|
1748
|
+
# Selector specifying which fields to include in a partial response.
|
1749
|
+
# @param [String] quota_user
|
1750
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1751
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1752
|
+
# @param [Google::Apis::RequestOptions] options
|
1753
|
+
# Request-specific options
|
1754
|
+
#
|
1755
|
+
# @yield [result, err] Result & error if block supplied
|
1756
|
+
# @yieldparam result [Google::Apis::GkehubV1::Operation] parsed result object
|
1757
|
+
# @yieldparam err [StandardError] error object if request failed
|
1758
|
+
#
|
1759
|
+
# @return [Google::Apis::GkehubV1::Operation]
|
1760
|
+
#
|
1761
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1762
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1763
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1764
|
+
def create_project_location_scope_namespace(parent, namespace_object = nil, scope_namespace_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1765
|
+
command = make_simple_command(:post, 'v1/{+parent}/namespaces', options)
|
1766
|
+
command.request_representation = Google::Apis::GkehubV1::Namespace::Representation
|
1767
|
+
command.request_object = namespace_object
|
1768
|
+
command.response_representation = Google::Apis::GkehubV1::Operation::Representation
|
1769
|
+
command.response_class = Google::Apis::GkehubV1::Operation
|
1770
|
+
command.params['parent'] = parent unless parent.nil?
|
1771
|
+
command.query['scopeNamespaceId'] = scope_namespace_id unless scope_namespace_id.nil?
|
1772
|
+
command.query['fields'] = fields unless fields.nil?
|
1773
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1774
|
+
execute_or_queue_command(command, &block)
|
1775
|
+
end
|
1776
|
+
|
1777
|
+
# Deletes a fleet namespace.
|
1778
|
+
# @param [String] name
|
1779
|
+
# Required. The Namespace resource name in the format `projects/*/locations/*/
|
1780
|
+
# scopes/*/namespaces/*`.
|
1781
|
+
# @param [String] fields
|
1782
|
+
# Selector specifying which fields to include in a partial response.
|
1783
|
+
# @param [String] quota_user
|
1784
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1785
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1786
|
+
# @param [Google::Apis::RequestOptions] options
|
1787
|
+
# Request-specific options
|
1788
|
+
#
|
1789
|
+
# @yield [result, err] Result & error if block supplied
|
1790
|
+
# @yieldparam result [Google::Apis::GkehubV1::Operation] parsed result object
|
1791
|
+
# @yieldparam err [StandardError] error object if request failed
|
1792
|
+
#
|
1793
|
+
# @return [Google::Apis::GkehubV1::Operation]
|
1794
|
+
#
|
1795
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1796
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1797
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1798
|
+
def delete_project_location_scope_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
|
1799
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1800
|
+
command.response_representation = Google::Apis::GkehubV1::Operation::Representation
|
1801
|
+
command.response_class = Google::Apis::GkehubV1::Operation
|
1802
|
+
command.params['name'] = name unless name.nil?
|
1803
|
+
command.query['fields'] = fields unless fields.nil?
|
1804
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1805
|
+
execute_or_queue_command(command, &block)
|
1806
|
+
end
|
1807
|
+
|
1808
|
+
# Returns the details of a fleet namespace.
|
1809
|
+
# @param [String] name
|
1810
|
+
# Required. The Namespace resource name in the format `projects/*/locations/*/
|
1811
|
+
# scopes/*/namespaces/*`.
|
1812
|
+
# @param [String] fields
|
1813
|
+
# Selector specifying which fields to include in a partial response.
|
1814
|
+
# @param [String] quota_user
|
1815
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1816
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1817
|
+
# @param [Google::Apis::RequestOptions] options
|
1818
|
+
# Request-specific options
|
1819
|
+
#
|
1820
|
+
# @yield [result, err] Result & error if block supplied
|
1821
|
+
# @yieldparam result [Google::Apis::GkehubV1::Namespace] parsed result object
|
1822
|
+
# @yieldparam err [StandardError] error object if request failed
|
1823
|
+
#
|
1824
|
+
# @return [Google::Apis::GkehubV1::Namespace]
|
1825
|
+
#
|
1826
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1827
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1828
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1829
|
+
def get_project_location_scope_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
|
1830
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1831
|
+
command.response_representation = Google::Apis::GkehubV1::Namespace::Representation
|
1832
|
+
command.response_class = Google::Apis::GkehubV1::Namespace
|
1833
|
+
command.params['name'] = name unless name.nil?
|
1834
|
+
command.query['fields'] = fields unless fields.nil?
|
1835
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1836
|
+
execute_or_queue_command(command, &block)
|
1837
|
+
end
|
1838
|
+
|
1839
|
+
# Lists fleet namespaces.
|
1840
|
+
# @param [String] parent
|
1841
|
+
# Required. The parent (project and location) where the Features will be listed.
|
1842
|
+
# Specified in the format `projects/*/locations/*/scopes/*`.
|
1843
|
+
# @param [Fixnum] page_size
|
1844
|
+
# Optional. When requesting a 'page' of resources, `page_size` specifies number
|
1845
|
+
# of resources to return. If unspecified or set to 0, all resources will be
|
1846
|
+
# returned.
|
1847
|
+
# @param [String] page_token
|
1848
|
+
# Optional. Token returned by previous call to `ListFeatures` which specifies
|
1849
|
+
# the position in the list from where to continue listing the resources.
|
1850
|
+
# @param [String] fields
|
1851
|
+
# Selector specifying which fields to include in a partial response.
|
1852
|
+
# @param [String] quota_user
|
1853
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1854
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1855
|
+
# @param [Google::Apis::RequestOptions] options
|
1856
|
+
# Request-specific options
|
1857
|
+
#
|
1858
|
+
# @yield [result, err] Result & error if block supplied
|
1859
|
+
# @yieldparam result [Google::Apis::GkehubV1::ListScopeNamespacesResponse] parsed result object
|
1860
|
+
# @yieldparam err [StandardError] error object if request failed
|
1861
|
+
#
|
1862
|
+
# @return [Google::Apis::GkehubV1::ListScopeNamespacesResponse]
|
1863
|
+
#
|
1864
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1865
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1866
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1867
|
+
def list_project_location_scope_namespaces(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1868
|
+
command = make_simple_command(:get, 'v1/{+parent}/namespaces', options)
|
1869
|
+
command.response_representation = Google::Apis::GkehubV1::ListScopeNamespacesResponse::Representation
|
1870
|
+
command.response_class = Google::Apis::GkehubV1::ListScopeNamespacesResponse
|
1871
|
+
command.params['parent'] = parent unless parent.nil?
|
1872
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1873
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1874
|
+
command.query['fields'] = fields unless fields.nil?
|
1875
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1876
|
+
execute_or_queue_command(command, &block)
|
1877
|
+
end
|
1878
|
+
|
1879
|
+
# Updates a fleet namespace.
|
1880
|
+
# @param [String] name
|
1881
|
+
# The resource name for the namespace `projects/`project`/locations/`location`/
|
1882
|
+
# namespaces/`namespace``
|
1883
|
+
# @param [Google::Apis::GkehubV1::Namespace] namespace_object
|
1884
|
+
# @param [String] update_mask
|
1885
|
+
# Required. The fields to be updated.
|
1886
|
+
# @param [String] fields
|
1887
|
+
# Selector specifying which fields to include in a partial response.
|
1888
|
+
# @param [String] quota_user
|
1889
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1890
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1891
|
+
# @param [Google::Apis::RequestOptions] options
|
1892
|
+
# Request-specific options
|
1893
|
+
#
|
1894
|
+
# @yield [result, err] Result & error if block supplied
|
1895
|
+
# @yieldparam result [Google::Apis::GkehubV1::Operation] parsed result object
|
1896
|
+
# @yieldparam err [StandardError] error object if request failed
|
1897
|
+
#
|
1898
|
+
# @return [Google::Apis::GkehubV1::Operation]
|
1899
|
+
#
|
1900
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1901
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1902
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1903
|
+
def patch_project_location_scope_namespace(name, namespace_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1904
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1905
|
+
command.request_representation = Google::Apis::GkehubV1::Namespace::Representation
|
1906
|
+
command.request_object = namespace_object
|
1907
|
+
command.response_representation = Google::Apis::GkehubV1::Operation::Representation
|
1908
|
+
command.response_class = Google::Apis::GkehubV1::Operation
|
1909
|
+
command.params['name'] = name unless name.nil?
|
1910
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1911
|
+
command.query['fields'] = fields unless fields.nil?
|
1912
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1913
|
+
execute_or_queue_command(command, &block)
|
1914
|
+
end
|
1915
|
+
|
1916
|
+
# Creates a Scope RBACRoleBinding.
|
1917
|
+
# @param [String] parent
|
1918
|
+
# Required. The parent (project and location) where the RBACRoleBinding will be
|
1919
|
+
# created. Specified in the format `projects/*/locations/*/scopes/*`.
|
1920
|
+
# @param [Google::Apis::GkehubV1::RbacRoleBinding] rbac_role_binding_object
|
1921
|
+
# @param [String] rbacrolebinding_id
|
1922
|
+
# Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` must
|
1923
|
+
# be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2.
|
1924
|
+
# It must consist of lower case alphanumeric characters or `-` 3. It must start
|
1925
|
+
# and end with an alphanumeric character Which can be expressed as the regex: `[
|
1926
|
+
# a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
|
1927
|
+
# @param [String] fields
|
1928
|
+
# Selector specifying which fields to include in a partial response.
|
1929
|
+
# @param [String] quota_user
|
1930
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1931
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1932
|
+
# @param [Google::Apis::RequestOptions] options
|
1933
|
+
# Request-specific options
|
1934
|
+
#
|
1935
|
+
# @yield [result, err] Result & error if block supplied
|
1936
|
+
# @yieldparam result [Google::Apis::GkehubV1::Operation] parsed result object
|
1937
|
+
# @yieldparam err [StandardError] error object if request failed
|
1938
|
+
#
|
1939
|
+
# @return [Google::Apis::GkehubV1::Operation]
|
1940
|
+
#
|
1941
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1942
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1943
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1944
|
+
def create_project_location_scope_rbacrolebinding(parent, rbac_role_binding_object = nil, rbacrolebinding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1945
|
+
command = make_simple_command(:post, 'v1/{+parent}/rbacrolebindings', options)
|
1946
|
+
command.request_representation = Google::Apis::GkehubV1::RbacRoleBinding::Representation
|
1947
|
+
command.request_object = rbac_role_binding_object
|
1948
|
+
command.response_representation = Google::Apis::GkehubV1::Operation::Representation
|
1949
|
+
command.response_class = Google::Apis::GkehubV1::Operation
|
1950
|
+
command.params['parent'] = parent unless parent.nil?
|
1951
|
+
command.query['rbacrolebindingId'] = rbacrolebinding_id unless rbacrolebinding_id.nil?
|
1952
|
+
command.query['fields'] = fields unless fields.nil?
|
1953
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1954
|
+
execute_or_queue_command(command, &block)
|
1955
|
+
end
|
1956
|
+
|
1957
|
+
# Deletes a Scope RBACRoleBinding.
|
1958
|
+
# @param [String] name
|
1959
|
+
# Required. The RBACRoleBinding resource name in the format `projects/*/
|
1960
|
+
# locations/*/scopes/*/rbacrolebindings/*`.
|
1961
|
+
# @param [String] fields
|
1962
|
+
# Selector specifying which fields to include in a partial response.
|
1963
|
+
# @param [String] quota_user
|
1964
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1965
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1966
|
+
# @param [Google::Apis::RequestOptions] options
|
1967
|
+
# Request-specific options
|
1968
|
+
#
|
1969
|
+
# @yield [result, err] Result & error if block supplied
|
1970
|
+
# @yieldparam result [Google::Apis::GkehubV1::Operation] parsed result object
|
1971
|
+
# @yieldparam err [StandardError] error object if request failed
|
1972
|
+
#
|
1973
|
+
# @return [Google::Apis::GkehubV1::Operation]
|
1974
|
+
#
|
1975
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1976
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1977
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1978
|
+
def delete_project_location_scope_rbacrolebinding(name, fields: nil, quota_user: nil, options: nil, &block)
|
1979
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1980
|
+
command.response_representation = Google::Apis::GkehubV1::Operation::Representation
|
1981
|
+
command.response_class = Google::Apis::GkehubV1::Operation
|
1982
|
+
command.params['name'] = name unless name.nil?
|
1983
|
+
command.query['fields'] = fields unless fields.nil?
|
1984
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1985
|
+
execute_or_queue_command(command, &block)
|
1986
|
+
end
|
1987
|
+
|
1988
|
+
# Returns the details of a Scope RBACRoleBinding.
|
1989
|
+
# @param [String] name
|
1990
|
+
# Required. The RBACRoleBinding resource name in the format `projects/*/
|
1991
|
+
# locations/*/scopes/*/rbacrolebindings/*`.
|
1992
|
+
# @param [String] fields
|
1993
|
+
# Selector specifying which fields to include in a partial response.
|
1994
|
+
# @param [String] quota_user
|
1995
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1996
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1997
|
+
# @param [Google::Apis::RequestOptions] options
|
1998
|
+
# Request-specific options
|
1999
|
+
#
|
2000
|
+
# @yield [result, err] Result & error if block supplied
|
2001
|
+
# @yieldparam result [Google::Apis::GkehubV1::RbacRoleBinding] parsed result object
|
2002
|
+
# @yieldparam err [StandardError] error object if request failed
|
2003
|
+
#
|
2004
|
+
# @return [Google::Apis::GkehubV1::RbacRoleBinding]
|
2005
|
+
#
|
2006
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2007
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2008
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2009
|
+
def get_project_location_scope_rbacrolebinding(name, fields: nil, quota_user: nil, options: nil, &block)
|
2010
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
2011
|
+
command.response_representation = Google::Apis::GkehubV1::RbacRoleBinding::Representation
|
2012
|
+
command.response_class = Google::Apis::GkehubV1::RbacRoleBinding
|
2013
|
+
command.params['name'] = name unless name.nil?
|
2014
|
+
command.query['fields'] = fields unless fields.nil?
|
2015
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2016
|
+
execute_or_queue_command(command, &block)
|
2017
|
+
end
|
2018
|
+
|
2019
|
+
# Lists all Scope RBACRoleBindings.
|
2020
|
+
# @param [String] parent
|
2021
|
+
# Required. The parent (project and location) where the Features will be listed.
|
2022
|
+
# Specified in the format `projects/*/locations/*/scopes/*`.
|
2023
|
+
# @param [Fixnum] page_size
|
2024
|
+
# Optional. When requesting a 'page' of resources, `page_size` specifies number
|
2025
|
+
# of resources to return. If unspecified or set to 0, all resources will be
|
2026
|
+
# returned.
|
2027
|
+
# @param [String] page_token
|
2028
|
+
# Optional. Token returned by previous call to `ListScopeRBACRoleBindings` which
|
2029
|
+
# specifies the position in the list from where to continue listing the
|
2030
|
+
# resources.
|
2031
|
+
# @param [String] fields
|
2032
|
+
# Selector specifying which fields to include in a partial response.
|
2033
|
+
# @param [String] quota_user
|
2034
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2035
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2036
|
+
# @param [Google::Apis::RequestOptions] options
|
2037
|
+
# Request-specific options
|
2038
|
+
#
|
2039
|
+
# @yield [result, err] Result & error if block supplied
|
2040
|
+
# @yieldparam result [Google::Apis::GkehubV1::ListScopeRbacRoleBindingsResponse] parsed result object
|
2041
|
+
# @yieldparam err [StandardError] error object if request failed
|
2042
|
+
#
|
2043
|
+
# @return [Google::Apis::GkehubV1::ListScopeRbacRoleBindingsResponse]
|
2044
|
+
#
|
2045
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2046
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2047
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2048
|
+
def list_project_location_scope_rbacrolebindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2049
|
+
command = make_simple_command(:get, 'v1/{+parent}/rbacrolebindings', options)
|
2050
|
+
command.response_representation = Google::Apis::GkehubV1::ListScopeRbacRoleBindingsResponse::Representation
|
2051
|
+
command.response_class = Google::Apis::GkehubV1::ListScopeRbacRoleBindingsResponse
|
2052
|
+
command.params['parent'] = parent unless parent.nil?
|
2053
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2054
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2055
|
+
command.query['fields'] = fields unless fields.nil?
|
2056
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2057
|
+
execute_or_queue_command(command, &block)
|
2058
|
+
end
|
2059
|
+
|
2060
|
+
# Updates a Scope RBACRoleBinding.
|
2061
|
+
# @param [String] name
|
2062
|
+
# The resource name for the rbacrolebinding `projects/`project`/locations/`
|
2063
|
+
# location`/namespaces/`namespace`/rbacrolebindings/`rbacrolebinding`` or `
|
2064
|
+
# projects/`project`/locations/`location`/memberships/`membership`/
|
2065
|
+
# rbacrolebindings/`rbacrolebinding``
|
2066
|
+
# @param [Google::Apis::GkehubV1::RbacRoleBinding] rbac_role_binding_object
|
2067
|
+
# @param [String] update_mask
|
2068
|
+
# Required. The fields to be updated.
|
2069
|
+
# @param [String] fields
|
2070
|
+
# Selector specifying which fields to include in a partial response.
|
2071
|
+
# @param [String] quota_user
|
2072
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2073
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2074
|
+
# @param [Google::Apis::RequestOptions] options
|
2075
|
+
# Request-specific options
|
2076
|
+
#
|
2077
|
+
# @yield [result, err] Result & error if block supplied
|
2078
|
+
# @yieldparam result [Google::Apis::GkehubV1::Operation] parsed result object
|
2079
|
+
# @yieldparam err [StandardError] error object if request failed
|
2080
|
+
#
|
2081
|
+
# @return [Google::Apis::GkehubV1::Operation]
|
2082
|
+
#
|
2083
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2084
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2085
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2086
|
+
def patch_project_location_scope_rbacrolebinding(name, rbac_role_binding_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2087
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
2088
|
+
command.request_representation = Google::Apis::GkehubV1::RbacRoleBinding::Representation
|
2089
|
+
command.request_object = rbac_role_binding_object
|
2090
|
+
command.response_representation = Google::Apis::GkehubV1::Operation::Representation
|
2091
|
+
command.response_class = Google::Apis::GkehubV1::Operation
|
2092
|
+
command.params['name'] = name unless name.nil?
|
2093
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2094
|
+
command.query['fields'] = fields unless fields.nil?
|
2095
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2096
|
+
execute_or_queue_command(command, &block)
|
2097
|
+
end
|
1735
2098
|
|
1736
2099
|
protected
|
1737
2100
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-gkehub_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.54.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: 2023-
|
11
|
+
date: 2023-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1/v0.54.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|