google-apis-gkehub_v1 0.52.0 → 0.53.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 +4 -0
- data/lib/google/apis/gkehub_v1/classes.rb +276 -7
- data/lib/google/apis/gkehub_v1/gem_version.rb +2 -2
- data/lib/google/apis/gkehub_v1/representations.rb +116 -1
- 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: 88bb27ef2bf9f43618bdf0556a476b8f55b5c9d9e207d68cbb79c82f44b3d118
|
4
|
+
data.tar.gz: 4cc630f5a5fe7d9a4ed8c6ced1a73a4162b380ffa9ae0555873896e0d8de9c7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fbee63d397c678cf6a2839c3e5eba652dabfd121d0969aa7861d047b6b1e7e95629f5fbf3fe6a9a13817f7f6e9843ca39ca6972958fbc72b5d169a8a434c6f5
|
7
|
+
data.tar.gz: c18e8d45308d4833e450e41b8414a7243f719fc4d3f386ebacb00ea2d27ea9f22ab2d69c6005d94ad04939de26926682efc3581ba57c7a81545bbc32f9e019f5
|
data/CHANGELOG.md
CHANGED
@@ -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]
|
@@ -2115,11 +2115,6 @@ module Google
|
|
2115
2115
|
# @return [String]
|
2116
2116
|
attr_accessor :tenant
|
2117
2117
|
|
2118
|
-
# Optional. Claim in the AzureAD ID Token that holds the user details.
|
2119
|
-
# Corresponds to the JSON property `userClaim`
|
2120
|
-
# @return [String]
|
2121
|
-
attr_accessor :user_claim
|
2122
|
-
|
2123
2118
|
def initialize(**args)
|
2124
2119
|
update!(**args)
|
2125
2120
|
end
|
@@ -2131,7 +2126,6 @@ module Google
|
|
2131
2126
|
@encrypted_client_secret = args[:encrypted_client_secret] if args.key?(:encrypted_client_secret)
|
2132
2127
|
@kubectl_redirect_uri = args[:kubectl_redirect_uri] if args.key?(:kubectl_redirect_uri)
|
2133
2128
|
@tenant = args[:tenant] if args.key?(:tenant)
|
2134
|
-
@user_claim = args[:user_claim] if args.key?(:user_claim)
|
2135
2129
|
end
|
2136
2130
|
end
|
2137
2131
|
|
@@ -2589,6 +2583,59 @@ module Google
|
|
2589
2583
|
end
|
2590
2584
|
end
|
2591
2585
|
|
2586
|
+
# List of fleet namespaces.
|
2587
|
+
class ListScopeNamespacesResponse
|
2588
|
+
include Google::Apis::Core::Hashable
|
2589
|
+
|
2590
|
+
# A token to request the next page of resources from the `ListNamespaces` method.
|
2591
|
+
# The value of an empty string means that there are no more resources to return.
|
2592
|
+
# Corresponds to the JSON property `nextPageToken`
|
2593
|
+
# @return [String]
|
2594
|
+
attr_accessor :next_page_token
|
2595
|
+
|
2596
|
+
# The list of fleet namespaces
|
2597
|
+
# Corresponds to the JSON property `scopeNamespaces`
|
2598
|
+
# @return [Array<Google::Apis::GkehubV1::Namespace>]
|
2599
|
+
attr_accessor :scope_namespaces
|
2600
|
+
|
2601
|
+
def initialize(**args)
|
2602
|
+
update!(**args)
|
2603
|
+
end
|
2604
|
+
|
2605
|
+
# Update properties of this object
|
2606
|
+
def update!(**args)
|
2607
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2608
|
+
@scope_namespaces = args[:scope_namespaces] if args.key?(:scope_namespaces)
|
2609
|
+
end
|
2610
|
+
end
|
2611
|
+
|
2612
|
+
# List of Scope RBACRoleBindings.
|
2613
|
+
class ListScopeRbacRoleBindingsResponse
|
2614
|
+
include Google::Apis::Core::Hashable
|
2615
|
+
|
2616
|
+
# A token to request the next page of resources from the `
|
2617
|
+
# ListScopeRBACRoleBindings` method. The value of an empty string means that
|
2618
|
+
# there are no more resources to return.
|
2619
|
+
# Corresponds to the JSON property `nextPageToken`
|
2620
|
+
# @return [String]
|
2621
|
+
attr_accessor :next_page_token
|
2622
|
+
|
2623
|
+
# The list of Scope RBACRoleBindings.
|
2624
|
+
# Corresponds to the JSON property `rbacrolebindings`
|
2625
|
+
# @return [Array<Google::Apis::GkehubV1::RbacRoleBinding>]
|
2626
|
+
attr_accessor :rbacrolebindings
|
2627
|
+
|
2628
|
+
def initialize(**args)
|
2629
|
+
update!(**args)
|
2630
|
+
end
|
2631
|
+
|
2632
|
+
# Update properties of this object
|
2633
|
+
def update!(**args)
|
2634
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2635
|
+
@rbacrolebindings = args[:rbacrolebindings] if args.key?(:rbacrolebindings)
|
2636
|
+
end
|
2637
|
+
end
|
2638
|
+
|
2592
2639
|
# List of Scopes.
|
2593
2640
|
class ListScopesResponse
|
2594
2641
|
include Google::Apis::Core::Hashable
|
@@ -3155,6 +3202,99 @@ module Google
|
|
3155
3202
|
end
|
3156
3203
|
end
|
3157
3204
|
|
3205
|
+
# Namespace represents a namespace across the Fleet
|
3206
|
+
class Namespace
|
3207
|
+
include Google::Apis::Core::Hashable
|
3208
|
+
|
3209
|
+
# Output only. When the namespace was created.
|
3210
|
+
# Corresponds to the JSON property `createTime`
|
3211
|
+
# @return [String]
|
3212
|
+
attr_accessor :create_time
|
3213
|
+
|
3214
|
+
# Output only. When the namespace was deleted.
|
3215
|
+
# Corresponds to the JSON property `deleteTime`
|
3216
|
+
# @return [String]
|
3217
|
+
attr_accessor :delete_time
|
3218
|
+
|
3219
|
+
# Optional. Labels for this Namespace.
|
3220
|
+
# Corresponds to the JSON property `labels`
|
3221
|
+
# @return [Hash<String,String>]
|
3222
|
+
attr_accessor :labels
|
3223
|
+
|
3224
|
+
# The resource name for the namespace `projects/`project`/locations/`location`/
|
3225
|
+
# namespaces/`namespace``
|
3226
|
+
# Corresponds to the JSON property `name`
|
3227
|
+
# @return [String]
|
3228
|
+
attr_accessor :name
|
3229
|
+
|
3230
|
+
# Optional. Namespace-level cluster namespace labels. These labels are applied
|
3231
|
+
# to the related namespace of the member clusters bound to the parent Scope.
|
3232
|
+
# Scope-level labels (`namespace_labels` in the Fleet Scope resource) take
|
3233
|
+
# precedence over Namespace-level labels if they share a key. Keys and values
|
3234
|
+
# must be Kubernetes-conformant.
|
3235
|
+
# Corresponds to the JSON property `namespaceLabels`
|
3236
|
+
# @return [Hash<String,String>]
|
3237
|
+
attr_accessor :namespace_labels
|
3238
|
+
|
3239
|
+
# Required. Scope associated with the namespace
|
3240
|
+
# Corresponds to the JSON property `scope`
|
3241
|
+
# @return [String]
|
3242
|
+
attr_accessor :scope
|
3243
|
+
|
3244
|
+
# NamespaceLifecycleState describes the state of a Namespace resource.
|
3245
|
+
# Corresponds to the JSON property `state`
|
3246
|
+
# @return [Google::Apis::GkehubV1::NamespaceLifecycleState]
|
3247
|
+
attr_accessor :state
|
3248
|
+
|
3249
|
+
# Output only. Google-generated UUID for this resource. This is unique across
|
3250
|
+
# all namespace resources. If a namespace resource is deleted and another
|
3251
|
+
# resource with the same name is created, it gets a different uid.
|
3252
|
+
# Corresponds to the JSON property `uid`
|
3253
|
+
# @return [String]
|
3254
|
+
attr_accessor :uid
|
3255
|
+
|
3256
|
+
# Output only. When the namespace was last updated.
|
3257
|
+
# Corresponds to the JSON property `updateTime`
|
3258
|
+
# @return [String]
|
3259
|
+
attr_accessor :update_time
|
3260
|
+
|
3261
|
+
def initialize(**args)
|
3262
|
+
update!(**args)
|
3263
|
+
end
|
3264
|
+
|
3265
|
+
# Update properties of this object
|
3266
|
+
def update!(**args)
|
3267
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
3268
|
+
@delete_time = args[:delete_time] if args.key?(:delete_time)
|
3269
|
+
@labels = args[:labels] if args.key?(:labels)
|
3270
|
+
@name = args[:name] if args.key?(:name)
|
3271
|
+
@namespace_labels = args[:namespace_labels] if args.key?(:namespace_labels)
|
3272
|
+
@scope = args[:scope] if args.key?(:scope)
|
3273
|
+
@state = args[:state] if args.key?(:state)
|
3274
|
+
@uid = args[:uid] if args.key?(:uid)
|
3275
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
3276
|
+
end
|
3277
|
+
end
|
3278
|
+
|
3279
|
+
# NamespaceLifecycleState describes the state of a Namespace resource.
|
3280
|
+
class NamespaceLifecycleState
|
3281
|
+
include Google::Apis::Core::Hashable
|
3282
|
+
|
3283
|
+
# Output only. The current state of the Namespace resource.
|
3284
|
+
# Corresponds to the JSON property `code`
|
3285
|
+
# @return [String]
|
3286
|
+
attr_accessor :code
|
3287
|
+
|
3288
|
+
def initialize(**args)
|
3289
|
+
update!(**args)
|
3290
|
+
end
|
3291
|
+
|
3292
|
+
# Update properties of this object
|
3293
|
+
def update!(**args)
|
3294
|
+
@code = args[:code] if args.key?(:code)
|
3295
|
+
end
|
3296
|
+
end
|
3297
|
+
|
3158
3298
|
# OnPremCluster contains information specific to GKE On-Prem clusters.
|
3159
3299
|
class OnPremCluster
|
3160
3300
|
include Google::Apis::Core::Hashable
|
@@ -3433,6 +3573,106 @@ module Google
|
|
3433
3573
|
end
|
3434
3574
|
end
|
3435
3575
|
|
3576
|
+
# RBACRoleBinding represents a rbacrolebinding across the Fleet
|
3577
|
+
class RbacRoleBinding
|
3578
|
+
include Google::Apis::Core::Hashable
|
3579
|
+
|
3580
|
+
# Output only. When the rbacrolebinding was created.
|
3581
|
+
# Corresponds to the JSON property `createTime`
|
3582
|
+
# @return [String]
|
3583
|
+
attr_accessor :create_time
|
3584
|
+
|
3585
|
+
# Output only. When the rbacrolebinding was deleted.
|
3586
|
+
# Corresponds to the JSON property `deleteTime`
|
3587
|
+
# @return [String]
|
3588
|
+
attr_accessor :delete_time
|
3589
|
+
|
3590
|
+
# group is the group, as seen by the kubernetes cluster.
|
3591
|
+
# Corresponds to the JSON property `group`
|
3592
|
+
# @return [String]
|
3593
|
+
attr_accessor :group
|
3594
|
+
|
3595
|
+
# Optional. Labels for this RBACRolebinding.
|
3596
|
+
# Corresponds to the JSON property `labels`
|
3597
|
+
# @return [Hash<String,String>]
|
3598
|
+
attr_accessor :labels
|
3599
|
+
|
3600
|
+
# The resource name for the rbacrolebinding `projects/`project`/locations/`
|
3601
|
+
# location`/namespaces/`namespace`/rbacrolebindings/`rbacrolebinding`` or `
|
3602
|
+
# projects/`project`/locations/`location`/memberships/`membership`/
|
3603
|
+
# rbacrolebindings/`rbacrolebinding``
|
3604
|
+
# Corresponds to the JSON property `name`
|
3605
|
+
# @return [String]
|
3606
|
+
attr_accessor :name
|
3607
|
+
|
3608
|
+
# Role is the type for Kubernetes roles
|
3609
|
+
# Corresponds to the JSON property `role`
|
3610
|
+
# @return [Google::Apis::GkehubV1::Role]
|
3611
|
+
attr_accessor :role
|
3612
|
+
|
3613
|
+
# RBACRoleBindingLifecycleState describes the state of a RbacRoleBinding
|
3614
|
+
# resource.
|
3615
|
+
# Corresponds to the JSON property `state`
|
3616
|
+
# @return [Google::Apis::GkehubV1::RbacRoleBindingLifecycleState]
|
3617
|
+
attr_accessor :state
|
3618
|
+
|
3619
|
+
# Output only. Google-generated UUID for this resource. This is unique across
|
3620
|
+
# all rbacrolebinding resources. If a rbacrolebinding resource is deleted and
|
3621
|
+
# another resource with the same name is created, it gets a different uid.
|
3622
|
+
# Corresponds to the JSON property `uid`
|
3623
|
+
# @return [String]
|
3624
|
+
attr_accessor :uid
|
3625
|
+
|
3626
|
+
# Output only. When the rbacrolebinding was last updated.
|
3627
|
+
# Corresponds to the JSON property `updateTime`
|
3628
|
+
# @return [String]
|
3629
|
+
attr_accessor :update_time
|
3630
|
+
|
3631
|
+
# user is the name of the user as seen by the kubernetes cluster, example "alice"
|
3632
|
+
# or "alice@domain.tld"
|
3633
|
+
# Corresponds to the JSON property `user`
|
3634
|
+
# @return [String]
|
3635
|
+
attr_accessor :user
|
3636
|
+
|
3637
|
+
def initialize(**args)
|
3638
|
+
update!(**args)
|
3639
|
+
end
|
3640
|
+
|
3641
|
+
# Update properties of this object
|
3642
|
+
def update!(**args)
|
3643
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
3644
|
+
@delete_time = args[:delete_time] if args.key?(:delete_time)
|
3645
|
+
@group = args[:group] if args.key?(:group)
|
3646
|
+
@labels = args[:labels] if args.key?(:labels)
|
3647
|
+
@name = args[:name] if args.key?(:name)
|
3648
|
+
@role = args[:role] if args.key?(:role)
|
3649
|
+
@state = args[:state] if args.key?(:state)
|
3650
|
+
@uid = args[:uid] if args.key?(:uid)
|
3651
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
3652
|
+
@user = args[:user] if args.key?(:user)
|
3653
|
+
end
|
3654
|
+
end
|
3655
|
+
|
3656
|
+
# RBACRoleBindingLifecycleState describes the state of a RbacRoleBinding
|
3657
|
+
# resource.
|
3658
|
+
class RbacRoleBindingLifecycleState
|
3659
|
+
include Google::Apis::Core::Hashable
|
3660
|
+
|
3661
|
+
# Output only. The current state of the rbacrolebinding resource.
|
3662
|
+
# Corresponds to the JSON property `code`
|
3663
|
+
# @return [String]
|
3664
|
+
attr_accessor :code
|
3665
|
+
|
3666
|
+
def initialize(**args)
|
3667
|
+
update!(**args)
|
3668
|
+
end
|
3669
|
+
|
3670
|
+
# Update properties of this object
|
3671
|
+
def update!(**args)
|
3672
|
+
@code = args[:code] if args.key?(:code)
|
3673
|
+
end
|
3674
|
+
end
|
3675
|
+
|
3436
3676
|
# ResourceManifest represents a single Kubernetes resource to be applied to the
|
3437
3677
|
# cluster.
|
3438
3678
|
class ResourceManifest
|
@@ -3500,6 +3740,25 @@ module Google
|
|
3500
3740
|
end
|
3501
3741
|
end
|
3502
3742
|
|
3743
|
+
# Role is the type for Kubernetes roles
|
3744
|
+
class Role
|
3745
|
+
include Google::Apis::Core::Hashable
|
3746
|
+
|
3747
|
+
# predefined_role is the Kubernetes default role to use
|
3748
|
+
# Corresponds to the JSON property `predefinedRole`
|
3749
|
+
# @return [String]
|
3750
|
+
attr_accessor :predefined_role
|
3751
|
+
|
3752
|
+
def initialize(**args)
|
3753
|
+
update!(**args)
|
3754
|
+
end
|
3755
|
+
|
3756
|
+
# Update properties of this object
|
3757
|
+
def update!(**args)
|
3758
|
+
@predefined_role = args[:predefined_role] if args.key?(:predefined_role)
|
3759
|
+
end
|
3760
|
+
end
|
3761
|
+
|
3503
3762
|
# Scope represents a Scope in a Fleet.
|
3504
3763
|
class Scope
|
3505
3764
|
include Google::Apis::Core::Hashable
|
@@ -3531,6 +3790,15 @@ module Google
|
|
3531
3790
|
# @return [String]
|
3532
3791
|
attr_accessor :name
|
3533
3792
|
|
3793
|
+
# Optional. Scope-level cluster namespace labels. For the member clusters bound
|
3794
|
+
# to the Scope, these labels are applied to each namespace under the Scope.
|
3795
|
+
# Scope-level labels take precedence over Namespace-level labels (`
|
3796
|
+
# namespace_labels` in the Fleet Namespace resource) if they share a key. Keys
|
3797
|
+
# and values must be Kubernetes-conformant.
|
3798
|
+
# Corresponds to the JSON property `namespaceLabels`
|
3799
|
+
# @return [Hash<String,String>]
|
3800
|
+
attr_accessor :namespace_labels
|
3801
|
+
|
3534
3802
|
# ScopeLifecycleState describes the state of a Scope resource.
|
3535
3803
|
# Corresponds to the JSON property `state`
|
3536
3804
|
# @return [Google::Apis::GkehubV1::ScopeLifecycleState]
|
@@ -3559,6 +3827,7 @@ module Google
|
|
3559
3827
|
@delete_time = args[:delete_time] if args.key?(:delete_time)
|
3560
3828
|
@labels = args[:labels] if args.key?(:labels)
|
3561
3829
|
@name = args[:name] if args.key?(:name)
|
3830
|
+
@namespace_labels = args[:namespace_labels] if args.key?(:namespace_labels)
|
3562
3831
|
@state = args[:state] if args.key?(:state)
|
3563
3832
|
@uid = args[:uid] if args.key?(:uid)
|
3564
3833
|
@update_time = args[:update_time] if args.key?(:update_time)
|
@@ -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.53.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 = "20230728"
|
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
|
|
@@ -1247,7 +1289,6 @@ module Google
|
|
1247
1289
|
property :encrypted_client_secret, :base64 => true, as: 'encryptedClientSecret'
|
1248
1290
|
property :kubectl_redirect_uri, as: 'kubectlRedirectUri'
|
1249
1291
|
property :tenant, as: 'tenant'
|
1250
|
-
property :user_claim, as: 'userClaim'
|
1251
1292
|
end
|
1252
1293
|
end
|
1253
1294
|
|
@@ -1377,6 +1418,24 @@ module Google
|
|
1377
1418
|
end
|
1378
1419
|
end
|
1379
1420
|
|
1421
|
+
class ListScopeNamespacesResponse
|
1422
|
+
# @private
|
1423
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1424
|
+
property :next_page_token, as: 'nextPageToken'
|
1425
|
+
collection :scope_namespaces, as: 'scopeNamespaces', class: Google::Apis::GkehubV1::Namespace, decorator: Google::Apis::GkehubV1::Namespace::Representation
|
1426
|
+
|
1427
|
+
end
|
1428
|
+
end
|
1429
|
+
|
1430
|
+
class ListScopeRbacRoleBindingsResponse
|
1431
|
+
# @private
|
1432
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1433
|
+
property :next_page_token, as: 'nextPageToken'
|
1434
|
+
collection :rbacrolebindings, as: 'rbacrolebindings', class: Google::Apis::GkehubV1::RbacRoleBinding, decorator: Google::Apis::GkehubV1::RbacRoleBinding::Representation
|
1435
|
+
|
1436
|
+
end
|
1437
|
+
end
|
1438
|
+
|
1380
1439
|
class ListScopesResponse
|
1381
1440
|
# @private
|
1382
1441
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1531,6 +1590,29 @@ module Google
|
|
1531
1590
|
end
|
1532
1591
|
end
|
1533
1592
|
|
1593
|
+
class Namespace
|
1594
|
+
# @private
|
1595
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1596
|
+
property :create_time, as: 'createTime'
|
1597
|
+
property :delete_time, as: 'deleteTime'
|
1598
|
+
hash :labels, as: 'labels'
|
1599
|
+
property :name, as: 'name'
|
1600
|
+
hash :namespace_labels, as: 'namespaceLabels'
|
1601
|
+
property :scope, as: 'scope'
|
1602
|
+
property :state, as: 'state', class: Google::Apis::GkehubV1::NamespaceLifecycleState, decorator: Google::Apis::GkehubV1::NamespaceLifecycleState::Representation
|
1603
|
+
|
1604
|
+
property :uid, as: 'uid'
|
1605
|
+
property :update_time, as: 'updateTime'
|
1606
|
+
end
|
1607
|
+
end
|
1608
|
+
|
1609
|
+
class NamespaceLifecycleState
|
1610
|
+
# @private
|
1611
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1612
|
+
property :code, as: 'code'
|
1613
|
+
end
|
1614
|
+
end
|
1615
|
+
|
1534
1616
|
class OnPremCluster
|
1535
1617
|
# @private
|
1536
1618
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1585,6 +1667,31 @@ module Google
|
|
1585
1667
|
end
|
1586
1668
|
end
|
1587
1669
|
|
1670
|
+
class RbacRoleBinding
|
1671
|
+
# @private
|
1672
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1673
|
+
property :create_time, as: 'createTime'
|
1674
|
+
property :delete_time, as: 'deleteTime'
|
1675
|
+
property :group, as: 'group'
|
1676
|
+
hash :labels, as: 'labels'
|
1677
|
+
property :name, as: 'name'
|
1678
|
+
property :role, as: 'role', class: Google::Apis::GkehubV1::Role, decorator: Google::Apis::GkehubV1::Role::Representation
|
1679
|
+
|
1680
|
+
property :state, as: 'state', class: Google::Apis::GkehubV1::RbacRoleBindingLifecycleState, decorator: Google::Apis::GkehubV1::RbacRoleBindingLifecycleState::Representation
|
1681
|
+
|
1682
|
+
property :uid, as: 'uid'
|
1683
|
+
property :update_time, as: 'updateTime'
|
1684
|
+
property :user, as: 'user'
|
1685
|
+
end
|
1686
|
+
end
|
1687
|
+
|
1688
|
+
class RbacRoleBindingLifecycleState
|
1689
|
+
# @private
|
1690
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1691
|
+
property :code, as: 'code'
|
1692
|
+
end
|
1693
|
+
end
|
1694
|
+
|
1588
1695
|
class ResourceManifest
|
1589
1696
|
# @private
|
1590
1697
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1602,6 +1709,13 @@ module Google
|
|
1602
1709
|
end
|
1603
1710
|
end
|
1604
1711
|
|
1712
|
+
class Role
|
1713
|
+
# @private
|
1714
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1715
|
+
property :predefined_role, as: 'predefinedRole'
|
1716
|
+
end
|
1717
|
+
end
|
1718
|
+
|
1605
1719
|
class Scope
|
1606
1720
|
# @private
|
1607
1721
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1610,6 +1724,7 @@ module Google
|
|
1610
1724
|
property :delete_time, as: 'deleteTime'
|
1611
1725
|
hash :labels, as: 'labels'
|
1612
1726
|
property :name, as: 'name'
|
1727
|
+
hash :namespace_labels, as: 'namespaceLabels'
|
1613
1728
|
property :state, as: 'state', class: Google::Apis::GkehubV1::ScopeLifecycleState, decorator: Google::Apis::GkehubV1::ScopeLifecycleState::Representation
|
1614
1729
|
|
1615
1730
|
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.53.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-06 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.53.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: []
|