google-apis-gkehub_v1alpha 0.14.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/gkehub_v1alpha/classes.rb +244 -1
- data/lib/google/apis/gkehub_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/gkehub_v1alpha/representations.rb +86 -0
- data/lib/google/apis/gkehub_v1alpha/service.rb +154 -14
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8811352994029975a8d65be7fe3d0d70ded46b264f5e4dfd54543178b3fff6a5
|
4
|
+
data.tar.gz: 16e653f1d22c7a09c12339d7e86853a6ad539d4f7ebece874c8833d85cfe25f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62095a833a6987ff52842695c7040f450fe69c5e7a387c43836096102a2611411f4129b053acb769b131f9904716e074522f685ab2d1b84add4a37f6c1960f3a
|
7
|
+
data.tar.gz: f6dd2166d6cd0673273394aebe85b3699d0fa12545127a830fac3b283c9bf8f55ea2f4e90fed5e7083f647001766ee82c43fa3769c22fae579f6f02821ba4b5c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-gkehub_v1alpha
|
2
2
|
|
3
|
+
### v0.18.0 (2021-12-16)
|
4
|
+
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.17.0 (2021-12-12)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211203
|
10
|
+
|
11
|
+
### v0.16.0 (2021-11-20)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20211111
|
14
|
+
|
15
|
+
### v0.15.0 (2021-11-13)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20211105
|
18
|
+
|
3
19
|
### v0.14.0 (2021-10-30)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20211021
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/gkehub_v1alpha"
|
|
51
51
|
client = Google::Apis::GkehubV1alpha::GKEHubService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -22,6 +22,36 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module GkehubV1alpha
|
24
24
|
|
25
|
+
# **Anthosobservability**: Per-Membership Feature spec.
|
26
|
+
class AnthosObservabilityMembershipSpec
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# use full of metrics rather than optimized metrics. See https://cloud.google.
|
30
|
+
# com/anthos/clusters/docs/on-prem/1.8/concepts/logging-and-monitoring#
|
31
|
+
# optimized_metrics_default_metrics
|
32
|
+
# Corresponds to the JSON property `doNotOptimizeMetrics`
|
33
|
+
# @return [Boolean]
|
34
|
+
attr_accessor :do_not_optimize_metrics
|
35
|
+
alias_method :do_not_optimize_metrics?, :do_not_optimize_metrics
|
36
|
+
|
37
|
+
# enable collecting and reporting metrics and logs from user apps See go/onyx-
|
38
|
+
# application-metrics-logs-user-guide
|
39
|
+
# Corresponds to the JSON property `enableStackdriverOnApplications`
|
40
|
+
# @return [Boolean]
|
41
|
+
attr_accessor :enable_stackdriver_on_applications
|
42
|
+
alias_method :enable_stackdriver_on_applications?, :enable_stackdriver_on_applications
|
43
|
+
|
44
|
+
def initialize(**args)
|
45
|
+
update!(**args)
|
46
|
+
end
|
47
|
+
|
48
|
+
# Update properties of this object
|
49
|
+
def update!(**args)
|
50
|
+
@do_not_optimize_metrics = args[:do_not_optimize_metrics] if args.key?(:do_not_optimize_metrics)
|
51
|
+
@enable_stackdriver_on_applications = args[:enable_stackdriver_on_applications] if args.key?(:enable_stackdriver_on_applications)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
25
55
|
# Spec for App Dev Experience Feature.
|
26
56
|
class AppDevExperienceFeatureSpec
|
27
57
|
include Google::Apis::Core::Hashable
|
@@ -435,6 +465,14 @@ module Google
|
|
435
465
|
# @return [Google::Apis::GkehubV1alpha::ConfigManagementGitConfig]
|
436
466
|
attr_accessor :git
|
437
467
|
|
468
|
+
# Set to true to enable the Config Sync admission webhook to prevent drifts. If
|
469
|
+
# set to `false`, disables the Config Sync admission webhook and does not
|
470
|
+
# prevent drifts.
|
471
|
+
# Corresponds to the JSON property `preventDrift`
|
472
|
+
# @return [Boolean]
|
473
|
+
attr_accessor :prevent_drift
|
474
|
+
alias_method :prevent_drift?, :prevent_drift
|
475
|
+
|
438
476
|
# Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured”
|
439
477
|
# mode.
|
440
478
|
# Corresponds to the JSON property `sourceFormat`
|
@@ -449,6 +487,7 @@ module Google
|
|
449
487
|
def update!(**args)
|
450
488
|
@enabled = args[:enabled] if args.key?(:enabled)
|
451
489
|
@git = args[:git] if args.key?(:git)
|
490
|
+
@prevent_drift = args[:prevent_drift] if args.key?(:prevent_drift)
|
452
491
|
@source_format = args[:source_format] if args.key?(:source_format)
|
453
492
|
end
|
454
493
|
end
|
@@ -683,7 +722,9 @@ module Google
|
|
683
722
|
# @return [String]
|
684
723
|
attr_accessor :policy_dir
|
685
724
|
|
686
|
-
# Type of secret configured for access to the Git repo.
|
725
|
+
# Type of secret configured for access to the Git repo. Must be one of ssh,
|
726
|
+
# cookiefile, gcenode, token, gcpserviceaccount or none. The validation of this
|
727
|
+
# is case-sensitive. Required.
|
687
728
|
# Corresponds to the JSON property `secretType`
|
688
729
|
# @return [String]
|
689
730
|
attr_accessor :secret_type
|
@@ -1460,6 +1501,72 @@ module Google
|
|
1460
1501
|
end
|
1461
1502
|
end
|
1462
1503
|
|
1504
|
+
# Fleet contains the Fleet-wide metadata and configuration.
|
1505
|
+
class Fleet
|
1506
|
+
include Google::Apis::Core::Hashable
|
1507
|
+
|
1508
|
+
# Output only. When the Fleet was created.
|
1509
|
+
# Corresponds to the JSON property `createTime`
|
1510
|
+
# @return [String]
|
1511
|
+
attr_accessor :create_time
|
1512
|
+
|
1513
|
+
# Output only. When the Fleet was deleted.
|
1514
|
+
# Corresponds to the JSON property `deleteTime`
|
1515
|
+
# @return [String]
|
1516
|
+
attr_accessor :delete_time
|
1517
|
+
|
1518
|
+
# Optional. A user-assigned display name of the Fleet. When present, it must be
|
1519
|
+
# between 4 to 30 characters. Allowed characters are: lowercase and uppercase
|
1520
|
+
# letters, numbers, hyphen, single-quote, double-quote, space, and exclamation
|
1521
|
+
# point. Example: `Production Fleet`
|
1522
|
+
# Corresponds to the JSON property `displayName`
|
1523
|
+
# @return [String]
|
1524
|
+
attr_accessor :display_name
|
1525
|
+
|
1526
|
+
# The name for the fleet. The name must meet the following constraints: + The
|
1527
|
+
# name of a fleet should be unique within the organization; + It must consist of
|
1528
|
+
# lower case alphanumeric characters or `-`; + The length of the name must be
|
1529
|
+
# less than or equal to 63; + Unicode names must be expressed in Punycode format
|
1530
|
+
# (rfc3492). Examples: + prod-fleet + xn--wlq33vhyw9jb (Punycode form for "生产环境")
|
1531
|
+
# Corresponds to the JSON property `fleetName`
|
1532
|
+
# @return [String]
|
1533
|
+
attr_accessor :fleet_name
|
1534
|
+
|
1535
|
+
# Output only. The full, unique resource name of this fleet in the format of `
|
1536
|
+
# projects/`project`/locations/`location`/fleets/`fleet``. Each GCP project can
|
1537
|
+
# have at most one fleet resource, named "default".
|
1538
|
+
# Corresponds to the JSON property `name`
|
1539
|
+
# @return [String]
|
1540
|
+
attr_accessor :name
|
1541
|
+
|
1542
|
+
# Output only. Google-generated UUID for this resource. This is unique across
|
1543
|
+
# all Fleet resources. If a Fleet resource is deleted and another resource with
|
1544
|
+
# the same name is created, it gets a different uid.
|
1545
|
+
# Corresponds to the JSON property `uid`
|
1546
|
+
# @return [String]
|
1547
|
+
attr_accessor :uid
|
1548
|
+
|
1549
|
+
# Output only. When the Fleet was last updated.
|
1550
|
+
# Corresponds to the JSON property `updateTime`
|
1551
|
+
# @return [String]
|
1552
|
+
attr_accessor :update_time
|
1553
|
+
|
1554
|
+
def initialize(**args)
|
1555
|
+
update!(**args)
|
1556
|
+
end
|
1557
|
+
|
1558
|
+
# Update properties of this object
|
1559
|
+
def update!(**args)
|
1560
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1561
|
+
@delete_time = args[:delete_time] if args.key?(:delete_time)
|
1562
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1563
|
+
@fleet_name = args[:fleet_name] if args.key?(:fleet_name)
|
1564
|
+
@name = args[:name] if args.key?(:name)
|
1565
|
+
@uid = args[:uid] if args.key?(:uid)
|
1566
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1567
|
+
end
|
1568
|
+
end
|
1569
|
+
|
1463
1570
|
# GenerateConnectManifestResponse contains manifest information for installing/
|
1464
1571
|
# upgrading a Connect agent.
|
1465
1572
|
class GenerateConnectManifestResponse
|
@@ -1777,6 +1884,61 @@ module Google
|
|
1777
1884
|
end
|
1778
1885
|
end
|
1779
1886
|
|
1887
|
+
# KubernetesResource contains the YAML manifests and configuration for
|
1888
|
+
# Membership Kubernetes resources in the cluster. After CreateMembership or
|
1889
|
+
# UpdateMembership, these resources should be re-applied in the cluster.
|
1890
|
+
class KubernetesResource
|
1891
|
+
include Google::Apis::Core::Hashable
|
1892
|
+
|
1893
|
+
# Output only. The Kubernetes resources for installing the GKE Connect agent
|
1894
|
+
# This field is only populated in the Membership returned from a successful long-
|
1895
|
+
# running operation from CreateMembership or UpdateMembership. It is not
|
1896
|
+
# populated during normal GetMembership or ListMemberships requests. To get the
|
1897
|
+
# resource manifest after the initial registration, the caller should make a
|
1898
|
+
# UpdateMembership call with an empty field mask.
|
1899
|
+
# Corresponds to the JSON property `connectResources`
|
1900
|
+
# @return [Array<Google::Apis::GkehubV1alpha::ResourceManifest>]
|
1901
|
+
attr_accessor :connect_resources
|
1902
|
+
|
1903
|
+
# Input only. The YAML representation of the Membership CR. This field is
|
1904
|
+
# ignored for GKE clusters where Hub can read the CR directly. Callers should
|
1905
|
+
# provide the CR that is currently present in the cluster during
|
1906
|
+
# CreateMembership or UpdateMembership, or leave this field empty if none exists.
|
1907
|
+
# The CR manifest is used to validate the cluster has not been registered with
|
1908
|
+
# another Membership.
|
1909
|
+
# Corresponds to the JSON property `membershipCrManifest`
|
1910
|
+
# @return [String]
|
1911
|
+
attr_accessor :membership_cr_manifest
|
1912
|
+
|
1913
|
+
# Output only. Additional Kubernetes resources that need to be applied to the
|
1914
|
+
# cluster after Membership creation, and after every update. This field is only
|
1915
|
+
# populated in the Membership returned from a successful long-running operation
|
1916
|
+
# from CreateMembership or UpdateMembership. It is not populated during normal
|
1917
|
+
# GetMembership or ListMemberships requests. To get the resource manifest after
|
1918
|
+
# the initial registration, the caller should make a UpdateMembership call with
|
1919
|
+
# an empty field mask.
|
1920
|
+
# Corresponds to the JSON property `membershipResources`
|
1921
|
+
# @return [Array<Google::Apis::GkehubV1alpha::ResourceManifest>]
|
1922
|
+
attr_accessor :membership_resources
|
1923
|
+
|
1924
|
+
# ResourceOptions represent options for Kubernetes resource generation.
|
1925
|
+
# Corresponds to the JSON property `resourceOptions`
|
1926
|
+
# @return [Google::Apis::GkehubV1alpha::ResourceOptions]
|
1927
|
+
attr_accessor :resource_options
|
1928
|
+
|
1929
|
+
def initialize(**args)
|
1930
|
+
update!(**args)
|
1931
|
+
end
|
1932
|
+
|
1933
|
+
# Update properties of this object
|
1934
|
+
def update!(**args)
|
1935
|
+
@connect_resources = args[:connect_resources] if args.key?(:connect_resources)
|
1936
|
+
@membership_cr_manifest = args[:membership_cr_manifest] if args.key?(:membership_cr_manifest)
|
1937
|
+
@membership_resources = args[:membership_resources] if args.key?(:membership_resources)
|
1938
|
+
@resource_options = args[:resource_options] if args.key?(:resource_options)
|
1939
|
+
end
|
1940
|
+
end
|
1941
|
+
|
1780
1942
|
# Response message for the `GkeHub.ListAdminClusterMemberships` method.
|
1781
1943
|
class ListAdminClusterMembershipsResponse
|
1782
1944
|
include Google::Apis::Core::Hashable
|
@@ -2085,6 +2247,13 @@ module Google
|
|
2085
2247
|
# @return [Google::Apis::GkehubV1alpha::KubernetesMetadata]
|
2086
2248
|
attr_accessor :kubernetes_metadata
|
2087
2249
|
|
2250
|
+
# KubernetesResource contains the YAML manifests and configuration for
|
2251
|
+
# Membership Kubernetes resources in the cluster. After CreateMembership or
|
2252
|
+
# UpdateMembership, these resources should be re-applied in the cluster.
|
2253
|
+
# Corresponds to the JSON property `kubernetesResource`
|
2254
|
+
# @return [Google::Apis::GkehubV1alpha::KubernetesResource]
|
2255
|
+
attr_accessor :kubernetes_resource
|
2256
|
+
|
2088
2257
|
# MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.
|
2089
2258
|
# Corresponds to the JSON property `multiCloudCluster`
|
2090
2259
|
# @return [Google::Apis::GkehubV1alpha::MultiCloudCluster]
|
@@ -2103,6 +2272,7 @@ module Google
|
|
2103
2272
|
def update!(**args)
|
2104
2273
|
@gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster)
|
2105
2274
|
@kubernetes_metadata = args[:kubernetes_metadata] if args.key?(:kubernetes_metadata)
|
2275
|
+
@kubernetes_resource = args[:kubernetes_resource] if args.key?(:kubernetes_resource)
|
2106
2276
|
@multi_cloud_cluster = args[:multi_cloud_cluster] if args.key?(:multi_cloud_cluster)
|
2107
2277
|
@on_prem_cluster = args[:on_prem_cluster] if args.key?(:on_prem_cluster)
|
2108
2278
|
end
|
@@ -2113,6 +2283,11 @@ module Google
|
|
2113
2283
|
class MembershipFeatureSpec
|
2114
2284
|
include Google::Apis::Core::Hashable
|
2115
2285
|
|
2286
|
+
# **Anthosobservability**: Per-Membership Feature spec.
|
2287
|
+
# Corresponds to the JSON property `anthosobservability`
|
2288
|
+
# @return [Google::Apis::GkehubV1alpha::AnthosObservabilityMembershipSpec]
|
2289
|
+
attr_accessor :anthosobservability
|
2290
|
+
|
2116
2291
|
# **Anthos Config Management**: Configuration for a single cluster. Intended to
|
2117
2292
|
# parallel the ConfigManagement CR.
|
2118
2293
|
# Corresponds to the JSON property `configmanagement`
|
@@ -2135,6 +2310,7 @@ module Google
|
|
2135
2310
|
|
2136
2311
|
# Update properties of this object
|
2137
2312
|
def update!(**args)
|
2313
|
+
@anthosobservability = args[:anthosobservability] if args.key?(:anthosobservability)
|
2138
2314
|
@configmanagement = args[:configmanagement] if args.key?(:configmanagement)
|
2139
2315
|
@identityservice = args[:identityservice] if args.key?(:identityservice)
|
2140
2316
|
@mesh = args[:mesh] if args.key?(:mesh)
|
@@ -2551,6 +2727,73 @@ module Google
|
|
2551
2727
|
end
|
2552
2728
|
end
|
2553
2729
|
|
2730
|
+
# ResourceManifest represents a single Kubernetes resource to be applied to the
|
2731
|
+
# cluster.
|
2732
|
+
class ResourceManifest
|
2733
|
+
include Google::Apis::Core::Hashable
|
2734
|
+
|
2735
|
+
# Whether the resource provided in the manifest is `cluster_scoped`. If unset,
|
2736
|
+
# the manifest is assumed to be namespace scoped. This field is used for REST
|
2737
|
+
# mapping when applying the resource in a cluster.
|
2738
|
+
# Corresponds to the JSON property `clusterScoped`
|
2739
|
+
# @return [Boolean]
|
2740
|
+
attr_accessor :cluster_scoped
|
2741
|
+
alias_method :cluster_scoped?, :cluster_scoped
|
2742
|
+
|
2743
|
+
# YAML manifest of the resource.
|
2744
|
+
# Corresponds to the JSON property `manifest`
|
2745
|
+
# @return [String]
|
2746
|
+
attr_accessor :manifest
|
2747
|
+
|
2748
|
+
def initialize(**args)
|
2749
|
+
update!(**args)
|
2750
|
+
end
|
2751
|
+
|
2752
|
+
# Update properties of this object
|
2753
|
+
def update!(**args)
|
2754
|
+
@cluster_scoped = args[:cluster_scoped] if args.key?(:cluster_scoped)
|
2755
|
+
@manifest = args[:manifest] if args.key?(:manifest)
|
2756
|
+
end
|
2757
|
+
end
|
2758
|
+
|
2759
|
+
# ResourceOptions represent options for Kubernetes resource generation.
|
2760
|
+
class ResourceOptions
|
2761
|
+
include Google::Apis::Core::Hashable
|
2762
|
+
|
2763
|
+
# Optional. The Connect agent version to use for connect_resources. Defaults to
|
2764
|
+
# the latest GKE Connect version. The version must be a currently supported
|
2765
|
+
# version, obsolete versions will be rejected.
|
2766
|
+
# Corresponds to the JSON property `connectVersion`
|
2767
|
+
# @return [String]
|
2768
|
+
attr_accessor :connect_version
|
2769
|
+
|
2770
|
+
# Optional. Major version of the Kubernetes cluster. This is only used to
|
2771
|
+
# determine which version to use for the CustomResourceDefinition resources, `
|
2772
|
+
# apiextensions/v1beta1` or`apiextensions/v1`.
|
2773
|
+
# Corresponds to the JSON property `k8sVersion`
|
2774
|
+
# @return [String]
|
2775
|
+
attr_accessor :k8s_version
|
2776
|
+
|
2777
|
+
# Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
|
2778
|
+
# CustomResourceDefinition resources. This option should be set for clusters
|
2779
|
+
# with Kubernetes apiserver versions <1.16.
|
2780
|
+
# Corresponds to the JSON property `v1beta1Crd`
|
2781
|
+
# @return [Boolean]
|
2782
|
+
attr_accessor :v1beta1_crd
|
2783
|
+
alias_method :v1beta1_crd?, :v1beta1_crd
|
2784
|
+
|
2785
|
+
def initialize(**args)
|
2786
|
+
update!(**args)
|
2787
|
+
end
|
2788
|
+
|
2789
|
+
# Update properties of this object
|
2790
|
+
def update!(**args)
|
2791
|
+
@connect_version = args[:connect_version] if args.key?(:connect_version)
|
2792
|
+
@k8s_version = args[:k8s_version] if args.key?(:k8s_version)
|
2793
|
+
@v1beta1_crd = args[:v1beta1_crd] if args.key?(:v1beta1_crd)
|
2794
|
+
end
|
2795
|
+
end
|
2796
|
+
|
2554
2797
|
# AnalysisMessage is a single message produced by an analyzer, and it used to
|
2555
2798
|
# communicate to the end user about the state of their Service Mesh
|
2556
2799
|
# configuration.
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module GkehubV1alpha
|
18
18
|
# Version of the google-apis-gkehub_v1alpha gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.18.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211203"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module GkehubV1alpha
|
24
24
|
|
25
|
+
class AnthosObservabilityMembershipSpec
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class AppDevExperienceFeatureSpec
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -262,6 +268,12 @@ module Google
|
|
262
268
|
include Google::Apis::Core::JsonObjectSupport
|
263
269
|
end
|
264
270
|
|
271
|
+
class Fleet
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
265
277
|
class GenerateConnectManifestResponse
|
266
278
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
279
|
|
@@ -310,6 +322,12 @@ module Google
|
|
310
322
|
include Google::Apis::Core::JsonObjectSupport
|
311
323
|
end
|
312
324
|
|
325
|
+
class KubernetesResource
|
326
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
327
|
+
|
328
|
+
include Google::Apis::Core::JsonObjectSupport
|
329
|
+
end
|
330
|
+
|
313
331
|
class ListAdminClusterMembershipsResponse
|
314
332
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
333
|
|
@@ -418,6 +436,18 @@ module Google
|
|
418
436
|
include Google::Apis::Core::JsonObjectSupport
|
419
437
|
end
|
420
438
|
|
439
|
+
class ResourceManifest
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
|
+
|
442
|
+
include Google::Apis::Core::JsonObjectSupport
|
443
|
+
end
|
444
|
+
|
445
|
+
class ResourceOptions
|
446
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
447
|
+
|
448
|
+
include Google::Apis::Core::JsonObjectSupport
|
449
|
+
end
|
450
|
+
|
421
451
|
class ServiceMeshAnalysisMessage
|
422
452
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
453
|
|
@@ -484,6 +514,14 @@ module Google
|
|
484
514
|
include Google::Apis::Core::JsonObjectSupport
|
485
515
|
end
|
486
516
|
|
517
|
+
class AnthosObservabilityMembershipSpec
|
518
|
+
# @private
|
519
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
520
|
+
property :do_not_optimize_metrics, as: 'doNotOptimizeMetrics'
|
521
|
+
property :enable_stackdriver_on_applications, as: 'enableStackdriverOnApplications'
|
522
|
+
end
|
523
|
+
end
|
524
|
+
|
487
525
|
class AppDevExperienceFeatureSpec
|
488
526
|
# @private
|
489
527
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -601,6 +639,7 @@ module Google
|
|
601
639
|
property :enabled, as: 'enabled'
|
602
640
|
property :git, as: 'git', class: Google::Apis::GkehubV1alpha::ConfigManagementGitConfig, decorator: Google::Apis::GkehubV1alpha::ConfigManagementGitConfig::Representation
|
603
641
|
|
642
|
+
property :prevent_drift, as: 'preventDrift'
|
604
643
|
property :source_format, as: 'sourceFormat'
|
605
644
|
end
|
606
645
|
end
|
@@ -888,6 +927,19 @@ module Google
|
|
888
927
|
end
|
889
928
|
end
|
890
929
|
|
930
|
+
class Fleet
|
931
|
+
# @private
|
932
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
933
|
+
property :create_time, as: 'createTime'
|
934
|
+
property :delete_time, as: 'deleteTime'
|
935
|
+
property :display_name, as: 'displayName'
|
936
|
+
property :fleet_name, as: 'fleetName'
|
937
|
+
property :name, as: 'name'
|
938
|
+
property :uid, as: 'uid'
|
939
|
+
property :update_time, as: 'updateTime'
|
940
|
+
end
|
941
|
+
end
|
942
|
+
|
891
943
|
class GenerateConnectManifestResponse
|
892
944
|
# @private
|
893
945
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -971,6 +1023,19 @@ module Google
|
|
971
1023
|
end
|
972
1024
|
end
|
973
1025
|
|
1026
|
+
class KubernetesResource
|
1027
|
+
# @private
|
1028
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1029
|
+
collection :connect_resources, as: 'connectResources', class: Google::Apis::GkehubV1alpha::ResourceManifest, decorator: Google::Apis::GkehubV1alpha::ResourceManifest::Representation
|
1030
|
+
|
1031
|
+
property :membership_cr_manifest, as: 'membershipCrManifest'
|
1032
|
+
collection :membership_resources, as: 'membershipResources', class: Google::Apis::GkehubV1alpha::ResourceManifest, decorator: Google::Apis::GkehubV1alpha::ResourceManifest::Representation
|
1033
|
+
|
1034
|
+
property :resource_options, as: 'resourceOptions', class: Google::Apis::GkehubV1alpha::ResourceOptions, decorator: Google::Apis::GkehubV1alpha::ResourceOptions::Representation
|
1035
|
+
|
1036
|
+
end
|
1037
|
+
end
|
1038
|
+
|
974
1039
|
class ListAdminClusterMembershipsResponse
|
975
1040
|
# @private
|
976
1041
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1057,6 +1122,8 @@ module Google
|
|
1057
1122
|
|
1058
1123
|
property :kubernetes_metadata, as: 'kubernetesMetadata', class: Google::Apis::GkehubV1alpha::KubernetesMetadata, decorator: Google::Apis::GkehubV1alpha::KubernetesMetadata::Representation
|
1059
1124
|
|
1125
|
+
property :kubernetes_resource, as: 'kubernetesResource', class: Google::Apis::GkehubV1alpha::KubernetesResource, decorator: Google::Apis::GkehubV1alpha::KubernetesResource::Representation
|
1126
|
+
|
1060
1127
|
property :multi_cloud_cluster, as: 'multiCloudCluster', class: Google::Apis::GkehubV1alpha::MultiCloudCluster, decorator: Google::Apis::GkehubV1alpha::MultiCloudCluster::Representation
|
1061
1128
|
|
1062
1129
|
property :on_prem_cluster, as: 'onPremCluster', class: Google::Apis::GkehubV1alpha::OnPremCluster, decorator: Google::Apis::GkehubV1alpha::OnPremCluster::Representation
|
@@ -1067,6 +1134,8 @@ module Google
|
|
1067
1134
|
class MembershipFeatureSpec
|
1068
1135
|
# @private
|
1069
1136
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1137
|
+
property :anthosobservability, as: 'anthosobservability', class: Google::Apis::GkehubV1alpha::AnthosObservabilityMembershipSpec, decorator: Google::Apis::GkehubV1alpha::AnthosObservabilityMembershipSpec::Representation
|
1138
|
+
|
1070
1139
|
property :configmanagement, as: 'configmanagement', class: Google::Apis::GkehubV1alpha::ConfigManagementMembershipSpec, decorator: Google::Apis::GkehubV1alpha::ConfigManagementMembershipSpec::Representation
|
1071
1140
|
|
1072
1141
|
property :identityservice, as: 'identityservice', class: Google::Apis::GkehubV1alpha::IdentityServiceMembershipSpec, decorator: Google::Apis::GkehubV1alpha::IdentityServiceMembershipSpec::Representation
|
@@ -1171,6 +1240,23 @@ module Google
|
|
1171
1240
|
end
|
1172
1241
|
end
|
1173
1242
|
|
1243
|
+
class ResourceManifest
|
1244
|
+
# @private
|
1245
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1246
|
+
property :cluster_scoped, as: 'clusterScoped'
|
1247
|
+
property :manifest, as: 'manifest'
|
1248
|
+
end
|
1249
|
+
end
|
1250
|
+
|
1251
|
+
class ResourceOptions
|
1252
|
+
# @private
|
1253
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1254
|
+
property :connect_version, as: 'connectVersion'
|
1255
|
+
property :k8s_version, as: 'k8sVersion'
|
1256
|
+
property :v1beta1_crd, as: 'v1beta1Crd'
|
1257
|
+
end
|
1258
|
+
end
|
1259
|
+
|
1174
1260
|
class ServiceMeshAnalysisMessage
|
1175
1261
|
# @private
|
1176
1262
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -254,13 +254,16 @@ module Google
|
|
254
254
|
# REQUIRED: The resource for which the policy is being requested. See the
|
255
255
|
# operation documentation for the appropriate value for this field.
|
256
256
|
# @param [Fixnum] options_requested_policy_version
|
257
|
-
# Optional. The policy
|
258
|
-
# 3. Requests specifying an invalid value will be
|
259
|
-
# policies with any conditional bindings must
|
260
|
-
#
|
261
|
-
# field unset.
|
262
|
-
#
|
263
|
-
#
|
257
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
258
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
259
|
+
# rejected. Requests for policies with any conditional role bindings must
|
260
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
261
|
+
# valid value or leave the field unset. The policy in the response might use the
|
262
|
+
# policy version that you specified, or it might use a lower policy version. For
|
263
|
+
# example, if you specify version 3, but the policy has no conditional role
|
264
|
+
# bindings, the response uses version 1. To learn which resources support
|
265
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
266
|
+
# google.com/iam/help/conditions/resource-policies).
|
264
267
|
# @param [String] fields
|
265
268
|
# Selector specifying which fields to include in a partial response.
|
266
269
|
# @param [String] quota_user
|
@@ -462,6 +465,140 @@ module Google
|
|
462
465
|
execute_or_queue_command(command, &block)
|
463
466
|
end
|
464
467
|
|
468
|
+
# Creates a fleet.
|
469
|
+
# @param [String] parent
|
470
|
+
# Required. The parent (project and location) where the Fleet will be created.
|
471
|
+
# Specified in the format `projects/*/locations/*`.
|
472
|
+
# @param [Google::Apis::GkehubV1alpha::Fleet] fleet_object
|
473
|
+
# @param [String] fields
|
474
|
+
# Selector specifying which fields to include in a partial response.
|
475
|
+
# @param [String] quota_user
|
476
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
477
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
478
|
+
# @param [Google::Apis::RequestOptions] options
|
479
|
+
# Request-specific options
|
480
|
+
#
|
481
|
+
# @yield [result, err] Result & error if block supplied
|
482
|
+
# @yieldparam result [Google::Apis::GkehubV1alpha::Fleet] parsed result object
|
483
|
+
# @yieldparam err [StandardError] error object if request failed
|
484
|
+
#
|
485
|
+
# @return [Google::Apis::GkehubV1alpha::Fleet]
|
486
|
+
#
|
487
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
488
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
489
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
490
|
+
def create_project_location_fleet(parent, fleet_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
491
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/fleets', options)
|
492
|
+
command.request_representation = Google::Apis::GkehubV1alpha::Fleet::Representation
|
493
|
+
command.request_object = fleet_object
|
494
|
+
command.response_representation = Google::Apis::GkehubV1alpha::Fleet::Representation
|
495
|
+
command.response_class = Google::Apis::GkehubV1alpha::Fleet
|
496
|
+
command.params['parent'] = parent unless parent.nil?
|
497
|
+
command.query['fields'] = fields unless fields.nil?
|
498
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
499
|
+
execute_or_queue_command(command, &block)
|
500
|
+
end
|
501
|
+
|
502
|
+
# Removes a Fleet. There must be no memberships remaining in the Fleet.
|
503
|
+
# @param [String] name
|
504
|
+
# Required. The Fleet resource name in the format `projects/*/locations/*/fleets/
|
505
|
+
# *`.
|
506
|
+
# @param [String] fields
|
507
|
+
# Selector specifying which fields to include in a partial response.
|
508
|
+
# @param [String] quota_user
|
509
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
510
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
511
|
+
# @param [Google::Apis::RequestOptions] options
|
512
|
+
# Request-specific options
|
513
|
+
#
|
514
|
+
# @yield [result, err] Result & error if block supplied
|
515
|
+
# @yieldparam result [Google::Apis::GkehubV1alpha::Empty] parsed result object
|
516
|
+
# @yieldparam err [StandardError] error object if request failed
|
517
|
+
#
|
518
|
+
# @return [Google::Apis::GkehubV1alpha::Empty]
|
519
|
+
#
|
520
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
521
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
522
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
523
|
+
def delete_project_location_fleet(name, fields: nil, quota_user: nil, options: nil, &block)
|
524
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
525
|
+
command.response_representation = Google::Apis::GkehubV1alpha::Empty::Representation
|
526
|
+
command.response_class = Google::Apis::GkehubV1alpha::Empty
|
527
|
+
command.params['name'] = name unless name.nil?
|
528
|
+
command.query['fields'] = fields unless fields.nil?
|
529
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
530
|
+
execute_or_queue_command(command, &block)
|
531
|
+
end
|
532
|
+
|
533
|
+
# Returns the details of a fleet.
|
534
|
+
# @param [String] name
|
535
|
+
# Required. The Fleet resource name in the format `projects/*/locations/*/fleets/
|
536
|
+
# *`.
|
537
|
+
# @param [String] fields
|
538
|
+
# Selector specifying which fields to include in a partial response.
|
539
|
+
# @param [String] quota_user
|
540
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
541
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
542
|
+
# @param [Google::Apis::RequestOptions] options
|
543
|
+
# Request-specific options
|
544
|
+
#
|
545
|
+
# @yield [result, err] Result & error if block supplied
|
546
|
+
# @yieldparam result [Google::Apis::GkehubV1alpha::Fleet] parsed result object
|
547
|
+
# @yieldparam err [StandardError] error object if request failed
|
548
|
+
#
|
549
|
+
# @return [Google::Apis::GkehubV1alpha::Fleet]
|
550
|
+
#
|
551
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
552
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
553
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
554
|
+
def get_project_location_fleet(name, fields: nil, quota_user: nil, options: nil, &block)
|
555
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
556
|
+
command.response_representation = Google::Apis::GkehubV1alpha::Fleet::Representation
|
557
|
+
command.response_class = Google::Apis::GkehubV1alpha::Fleet
|
558
|
+
command.params['name'] = name unless name.nil?
|
559
|
+
command.query['fields'] = fields unless fields.nil?
|
560
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
561
|
+
execute_or_queue_command(command, &block)
|
562
|
+
end
|
563
|
+
|
564
|
+
# Updates a fleet.
|
565
|
+
# @param [String] name
|
566
|
+
# Output only. The full, unique resource name of this fleet in the format of `
|
567
|
+
# projects/`project`/locations/`location`/fleets/`fleet``. Each GCP project can
|
568
|
+
# have at most one fleet resource, named "default".
|
569
|
+
# @param [Google::Apis::GkehubV1alpha::Fleet] fleet_object
|
570
|
+
# @param [String] update_mask
|
571
|
+
# Required. The fields to be updated;
|
572
|
+
# @param [String] fields
|
573
|
+
# Selector specifying which fields to include in a partial response.
|
574
|
+
# @param [String] quota_user
|
575
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
576
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
577
|
+
# @param [Google::Apis::RequestOptions] options
|
578
|
+
# Request-specific options
|
579
|
+
#
|
580
|
+
# @yield [result, err] Result & error if block supplied
|
581
|
+
# @yieldparam result [Google::Apis::GkehubV1alpha::Fleet] parsed result object
|
582
|
+
# @yieldparam err [StandardError] error object if request failed
|
583
|
+
#
|
584
|
+
# @return [Google::Apis::GkehubV1alpha::Fleet]
|
585
|
+
#
|
586
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
587
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
588
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
589
|
+
def patch_project_location_fleet(name, fleet_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
590
|
+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
|
591
|
+
command.request_representation = Google::Apis::GkehubV1alpha::Fleet::Representation
|
592
|
+
command.request_object = fleet_object
|
593
|
+
command.response_representation = Google::Apis::GkehubV1alpha::Fleet::Representation
|
594
|
+
command.response_class = Google::Apis::GkehubV1alpha::Fleet
|
595
|
+
command.params['name'] = name unless name.nil?
|
596
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
597
|
+
command.query['fields'] = fields unless fields.nil?
|
598
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
599
|
+
execute_or_queue_command(command, &block)
|
600
|
+
end
|
601
|
+
|
465
602
|
# Creates a new Membership. **This is currently only supported for GKE clusters
|
466
603
|
# on Google Cloud**. To register other clusters, follow the instructions at
|
467
604
|
# https://cloud.google.com/anthos/multicluster-management/connect/registering-a-
|
@@ -662,13 +799,16 @@ module Google
|
|
662
799
|
# REQUIRED: The resource for which the policy is being requested. See the
|
663
800
|
# operation documentation for the appropriate value for this field.
|
664
801
|
# @param [Fixnum] options_requested_policy_version
|
665
|
-
# Optional. The policy
|
666
|
-
# 3. Requests specifying an invalid value will be
|
667
|
-
# policies with any conditional bindings must
|
668
|
-
#
|
669
|
-
# field unset.
|
670
|
-
#
|
671
|
-
#
|
802
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
803
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
804
|
+
# rejected. Requests for policies with any conditional role bindings must
|
805
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
806
|
+
# valid value or leave the field unset. The policy in the response might use the
|
807
|
+
# policy version that you specified, or it might use a lower policy version. For
|
808
|
+
# example, if you specify version 3, but the policy has no conditional role
|
809
|
+
# bindings, the response uses version 1. To learn which resources support
|
810
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
811
|
+
# google.com/iam/help/conditions/resource-policies).
|
672
812
|
# @param [String] fields
|
673
813
|
# Selector specifying which fields to include in a partial response.
|
674
814
|
# @param [String] quota_user
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-gkehub_v1alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.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:
|
11
|
+
date: 2022-01-10 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_v1alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.18.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v1alpha
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.4
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for GKE Hub API V1alpha
|