google-cloud-app_hub-v1 0.a → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/cloud/app_hub/v1/app_hub/client.rb +3426 -0
- data/lib/google/cloud/app_hub/v1/app_hub/credentials.rb +47 -0
- data/lib/google/cloud/app_hub/v1/app_hub/operations.rb +809 -0
- data/lib/google/cloud/app_hub/v1/app_hub/paths.rb +182 -0
- data/lib/google/cloud/app_hub/v1/app_hub/rest/client.rb +3214 -0
- data/lib/google/cloud/app_hub/v1/app_hub/rest/operations.rb +902 -0
- data/lib/google/cloud/app_hub/v1/app_hub/rest/service_stub.rb +1670 -0
- data/lib/google/cloud/app_hub/v1/app_hub/rest.rb +54 -0
- data/lib/google/cloud/app_hub/v1/app_hub.rb +56 -0
- data/lib/google/cloud/app_hub/v1/bindings_override.rb +135 -0
- data/lib/google/cloud/app_hub/v1/rest.rb +38 -0
- data/lib/google/cloud/app_hub/v1/version.rb +7 -2
- data/lib/google/cloud/app_hub/v1.rb +45 -0
- data/lib/google/cloud/apphub/v1/apphub_service_pb.rb +98 -0
- data/lib/google/cloud/apphub/v1/apphub_service_services_pb.rb +104 -0
- data/lib/google/cloud/apphub/v1/application_pb.rb +53 -0
- data/lib/google/cloud/apphub/v1/attributes_pb.rb +49 -0
- data/lib/google/cloud/apphub/v1/service_pb.rb +54 -0
- data/lib/google/cloud/apphub/v1/service_project_attachment_pb.rb +49 -0
- data/lib/google/cloud/apphub/v1/workload_pb.rb +54 -0
- data/lib/google-cloud-app_hub-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +420 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/apphub/v1/apphub_service.rb +786 -0
- data/proto_docs/google/cloud/apphub/v1/application.rb +100 -0
- data/proto_docs/google/cloud/apphub/v1/attributes.rb +115 -0
- data/proto_docs/google/cloud/apphub/v1/service.rb +139 -0
- data/proto_docs/google/cloud/apphub/v1/service_project_attachment.rb +72 -0
- data/proto_docs/google/cloud/apphub/v1/workload.rb +140 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +125 -10
@@ -0,0 +1,100 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module AppHub
|
23
|
+
module V1
|
24
|
+
# Application defines the governance boundary for App Hub Entities that
|
25
|
+
# perform a logical end-to-end business function.
|
26
|
+
# App Hub supports application level IAM permission to align with governance
|
27
|
+
# requirements.
|
28
|
+
# @!attribute [rw] name
|
29
|
+
# @return [::String]
|
30
|
+
# Identifier. The resource name of an Application. Format:
|
31
|
+
# "projects/\\{host-project-id}/locations/\\{location}/applications/\\{application-id}"
|
32
|
+
# @!attribute [rw] display_name
|
33
|
+
# @return [::String]
|
34
|
+
# Optional. User-defined name for the Application.
|
35
|
+
# Can have a maximum length of 63 characters.
|
36
|
+
# @!attribute [rw] description
|
37
|
+
# @return [::String]
|
38
|
+
# Optional. User-defined description of an Application.
|
39
|
+
# Can have a maximum length of 2048 characters.
|
40
|
+
# @!attribute [rw] attributes
|
41
|
+
# @return [::Google::Cloud::AppHub::V1::Attributes]
|
42
|
+
# Optional. Consumer provided attributes.
|
43
|
+
# @!attribute [r] create_time
|
44
|
+
# @return [::Google::Protobuf::Timestamp]
|
45
|
+
# Output only. Create time.
|
46
|
+
# @!attribute [r] update_time
|
47
|
+
# @return [::Google::Protobuf::Timestamp]
|
48
|
+
# Output only. Update time.
|
49
|
+
# @!attribute [rw] scope
|
50
|
+
# @return [::Google::Cloud::AppHub::V1::Scope]
|
51
|
+
# Required. Immutable. Defines what data can be included into this
|
52
|
+
# Application. Limits which Services and Workloads can be registered.
|
53
|
+
# @!attribute [r] uid
|
54
|
+
# @return [::String]
|
55
|
+
# Output only. A universally unique identifier (in UUID4 format) for the
|
56
|
+
# `Application`.
|
57
|
+
# @!attribute [r] state
|
58
|
+
# @return [::Google::Cloud::AppHub::V1::Application::State]
|
59
|
+
# Output only. Application state.
|
60
|
+
class Application
|
61
|
+
include ::Google::Protobuf::MessageExts
|
62
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
63
|
+
|
64
|
+
# Application state.
|
65
|
+
module State
|
66
|
+
# Unspecified state.
|
67
|
+
STATE_UNSPECIFIED = 0
|
68
|
+
|
69
|
+
# The Application is being created.
|
70
|
+
CREATING = 1
|
71
|
+
|
72
|
+
# The Application is ready to register Services and Workloads.
|
73
|
+
ACTIVE = 2
|
74
|
+
|
75
|
+
# The Application is being deleted.
|
76
|
+
DELETING = 3
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
# Scope of an application.
|
81
|
+
# @!attribute [rw] type
|
82
|
+
# @return [::Google::Cloud::AppHub::V1::Scope::Type]
|
83
|
+
# Required. Scope Type.
|
84
|
+
class Scope
|
85
|
+
include ::Google::Protobuf::MessageExts
|
86
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
87
|
+
|
88
|
+
# Scope Type.
|
89
|
+
module Type
|
90
|
+
# Unspecified type.
|
91
|
+
TYPE_UNSPECIFIED = 0
|
92
|
+
|
93
|
+
# Regional type.
|
94
|
+
REGIONAL = 1
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
@@ -0,0 +1,115 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module AppHub
|
23
|
+
module V1
|
24
|
+
# Consumer provided attributes.
|
25
|
+
# @!attribute [rw] criticality
|
26
|
+
# @return [::Google::Cloud::AppHub::V1::Criticality]
|
27
|
+
# Optional. User-defined criticality information.
|
28
|
+
# @!attribute [rw] environment
|
29
|
+
# @return [::Google::Cloud::AppHub::V1::Environment]
|
30
|
+
# Optional. User-defined environment information.
|
31
|
+
# @!attribute [rw] developer_owners
|
32
|
+
# @return [::Array<::Google::Cloud::AppHub::V1::ContactInfo>]
|
33
|
+
# Optional. Developer team that owns development and coding.
|
34
|
+
# @!attribute [rw] operator_owners
|
35
|
+
# @return [::Array<::Google::Cloud::AppHub::V1::ContactInfo>]
|
36
|
+
# Optional. Operator team that ensures runtime and operations.
|
37
|
+
# @!attribute [rw] business_owners
|
38
|
+
# @return [::Array<::Google::Cloud::AppHub::V1::ContactInfo>]
|
39
|
+
# Optional. Business team that ensures user needs are met and value is
|
40
|
+
# delivered
|
41
|
+
class Attributes
|
42
|
+
include ::Google::Protobuf::MessageExts
|
43
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
44
|
+
end
|
45
|
+
|
46
|
+
# Criticality of the Application, Service, or Workload
|
47
|
+
# @!attribute [rw] type
|
48
|
+
# @return [::Google::Cloud::AppHub::V1::Criticality::Type]
|
49
|
+
# Required. Criticality Type.
|
50
|
+
class Criticality
|
51
|
+
include ::Google::Protobuf::MessageExts
|
52
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
53
|
+
|
54
|
+
# Criticality Type.
|
55
|
+
module Type
|
56
|
+
# Unspecified type.
|
57
|
+
TYPE_UNSPECIFIED = 0
|
58
|
+
|
59
|
+
# Mission critical service, application or workload.
|
60
|
+
MISSION_CRITICAL = 1
|
61
|
+
|
62
|
+
# High impact.
|
63
|
+
HIGH = 2
|
64
|
+
|
65
|
+
# Medium impact.
|
66
|
+
MEDIUM = 3
|
67
|
+
|
68
|
+
# Low impact.
|
69
|
+
LOW = 4
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Environment of the Application, Service, or Workload
|
74
|
+
# @!attribute [rw] type
|
75
|
+
# @return [::Google::Cloud::AppHub::V1::Environment::Type]
|
76
|
+
# Required. Environment Type.
|
77
|
+
class Environment
|
78
|
+
include ::Google::Protobuf::MessageExts
|
79
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
80
|
+
|
81
|
+
# Environment Type.
|
82
|
+
module Type
|
83
|
+
# Unspecified type.
|
84
|
+
TYPE_UNSPECIFIED = 0
|
85
|
+
|
86
|
+
# Production environment.
|
87
|
+
PRODUCTION = 1
|
88
|
+
|
89
|
+
# Staging environment.
|
90
|
+
STAGING = 2
|
91
|
+
|
92
|
+
# Test environment.
|
93
|
+
TEST = 3
|
94
|
+
|
95
|
+
# Development environment.
|
96
|
+
DEVELOPMENT = 4
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# Contact information of stakeholders.
|
101
|
+
# @!attribute [rw] display_name
|
102
|
+
# @return [::String]
|
103
|
+
# Optional. Contact's name.
|
104
|
+
# Can have a maximum length of 63 characters.
|
105
|
+
# @!attribute [rw] email
|
106
|
+
# @return [::String]
|
107
|
+
# Required. Email address of the contacts.
|
108
|
+
class ContactInfo
|
109
|
+
include ::Google::Protobuf::MessageExts
|
110
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
@@ -0,0 +1,139 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module AppHub
|
23
|
+
module V1
|
24
|
+
# Service is an App Hub data model that contains a discovered service, which
|
25
|
+
# represents a network/api interface that exposes some functionality to clients
|
26
|
+
# for consumption over the network.
|
27
|
+
# @!attribute [rw] name
|
28
|
+
# @return [::String]
|
29
|
+
# Identifier. The resource name of a Service. Format:
|
30
|
+
# "projects/\\{host-project-id}/locations/\\{location}/applications/\\{application-id}/services/\\{service-id}"
|
31
|
+
# @!attribute [rw] display_name
|
32
|
+
# @return [::String]
|
33
|
+
# Optional. User-defined name for the Service.
|
34
|
+
# Can have a maximum length of 63 characters.
|
35
|
+
# @!attribute [rw] description
|
36
|
+
# @return [::String]
|
37
|
+
# Optional. User-defined description of a Service.
|
38
|
+
# Can have a maximum length of 2048 characters.
|
39
|
+
# @!attribute [r] service_reference
|
40
|
+
# @return [::Google::Cloud::AppHub::V1::ServiceReference]
|
41
|
+
# Output only. Reference to an underlying networking resource that can
|
42
|
+
# comprise a Service. These are immutable.
|
43
|
+
# @!attribute [r] service_properties
|
44
|
+
# @return [::Google::Cloud::AppHub::V1::ServiceProperties]
|
45
|
+
# Output only. Properties of an underlying compute resource that can comprise
|
46
|
+
# a Service. These are immutable.
|
47
|
+
# @!attribute [rw] attributes
|
48
|
+
# @return [::Google::Cloud::AppHub::V1::Attributes]
|
49
|
+
# Optional. Consumer provided attributes.
|
50
|
+
# @!attribute [rw] discovered_service
|
51
|
+
# @return [::String]
|
52
|
+
# Required. Immutable. The resource name of the original discovered service.
|
53
|
+
# @!attribute [r] create_time
|
54
|
+
# @return [::Google::Protobuf::Timestamp]
|
55
|
+
# Output only. Create time.
|
56
|
+
# @!attribute [r] update_time
|
57
|
+
# @return [::Google::Protobuf::Timestamp]
|
58
|
+
# Output only. Update time.
|
59
|
+
# @!attribute [r] uid
|
60
|
+
# @return [::String]
|
61
|
+
# Output only. A universally unique identifier (UUID) for the `Service` in
|
62
|
+
# the UUID4 format.
|
63
|
+
# @!attribute [r] state
|
64
|
+
# @return [::Google::Cloud::AppHub::V1::Service::State]
|
65
|
+
# Output only. Service state.
|
66
|
+
class Service
|
67
|
+
include ::Google::Protobuf::MessageExts
|
68
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
69
|
+
|
70
|
+
# Service state.
|
71
|
+
module State
|
72
|
+
# Unspecified state.
|
73
|
+
STATE_UNSPECIFIED = 0
|
74
|
+
|
75
|
+
# The service is being created.
|
76
|
+
CREATING = 1
|
77
|
+
|
78
|
+
# The service is ready.
|
79
|
+
ACTIVE = 2
|
80
|
+
|
81
|
+
# The service is being deleted.
|
82
|
+
DELETING = 3
|
83
|
+
|
84
|
+
# The underlying networking resources have been deleted.
|
85
|
+
DETACHED = 4
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
# Reference to an underlying networking resource that can comprise a Service.
|
90
|
+
# @!attribute [r] uri
|
91
|
+
# @return [::String]
|
92
|
+
# Output only. The underlying resource URI (For example, URI of Forwarding
|
93
|
+
# Rule, URL Map, and Backend Service).
|
94
|
+
class ServiceReference
|
95
|
+
include ::Google::Protobuf::MessageExts
|
96
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
97
|
+
end
|
98
|
+
|
99
|
+
# Properties of an underlying cloud resource that can comprise a Service.
|
100
|
+
# @!attribute [r] gcp_project
|
101
|
+
# @return [::String]
|
102
|
+
# Output only. The service project identifier that the underlying cloud
|
103
|
+
# resource resides in.
|
104
|
+
# @!attribute [r] location
|
105
|
+
# @return [::String]
|
106
|
+
# Output only. The location that the underlying resource resides in, for
|
107
|
+
# example, us-west1.
|
108
|
+
# @!attribute [r] zone
|
109
|
+
# @return [::String]
|
110
|
+
# Output only. The location that the underlying resource resides in if it is
|
111
|
+
# zonal, for example, us-west1-a).
|
112
|
+
class ServiceProperties
|
113
|
+
include ::Google::Protobuf::MessageExts
|
114
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
115
|
+
end
|
116
|
+
|
117
|
+
# DiscoveredService is a network/api interface that exposes some functionality
|
118
|
+
# to clients for consumption over the network. A discovered service can be
|
119
|
+
# registered to a App Hub service.
|
120
|
+
# @!attribute [rw] name
|
121
|
+
# @return [::String]
|
122
|
+
# Identifier. The resource name of the discovered service. Format:
|
123
|
+
# "projects/\\{host-project-id}/locations/\\{location}/discoveredServices/\\{uuid}""
|
124
|
+
# @!attribute [r] service_reference
|
125
|
+
# @return [::Google::Cloud::AppHub::V1::ServiceReference]
|
126
|
+
# Output only. Reference to an underlying networking resource that can
|
127
|
+
# comprise a Service. These are immutable.
|
128
|
+
# @!attribute [r] service_properties
|
129
|
+
# @return [::Google::Cloud::AppHub::V1::ServiceProperties]
|
130
|
+
# Output only. Properties of an underlying compute resource that can comprise
|
131
|
+
# a Service. These are immutable.
|
132
|
+
class DiscoveredService
|
133
|
+
include ::Google::Protobuf::MessageExts
|
134
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module AppHub
|
23
|
+
module V1
|
24
|
+
# ServiceProjectAttachment represents an attachment from a service project to a
|
25
|
+
# host project. Service projects contain the underlying cloud
|
26
|
+
# infrastructure resources, and expose these resources to the host project
|
27
|
+
# through a ServiceProjectAttachment. With the attachments, the host project
|
28
|
+
# can provide an aggregated view of resources across all service projects.
|
29
|
+
# @!attribute [rw] name
|
30
|
+
# @return [::String]
|
31
|
+
# Identifier. The resource name of a ServiceProjectAttachment. Format:
|
32
|
+
# "projects/\\{host-project-id}/locations/global/serviceProjectAttachments/\\{service-project-id}."
|
33
|
+
# @!attribute [rw] service_project
|
34
|
+
# @return [::String]
|
35
|
+
# Required. Immutable. Service project name in the format: "projects/abc" or
|
36
|
+
# "projects/123". As input, project name with either project id or number are
|
37
|
+
# accepted. As output, this field will contain project number.
|
38
|
+
# @!attribute [r] create_time
|
39
|
+
# @return [::Google::Protobuf::Timestamp]
|
40
|
+
# Output only. Create time.
|
41
|
+
# @!attribute [r] uid
|
42
|
+
# @return [::String]
|
43
|
+
# Output only. A globally unique identifier (in UUID4 format) for the
|
44
|
+
# `ServiceProjectAttachment`.
|
45
|
+
# @!attribute [r] state
|
46
|
+
# @return [::Google::Cloud::AppHub::V1::ServiceProjectAttachment::State]
|
47
|
+
# Output only. ServiceProjectAttachment state.
|
48
|
+
class ServiceProjectAttachment
|
49
|
+
include ::Google::Protobuf::MessageExts
|
50
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
51
|
+
|
52
|
+
# ServiceProjectAttachment state.
|
53
|
+
module State
|
54
|
+
# Unspecified state.
|
55
|
+
STATE_UNSPECIFIED = 0
|
56
|
+
|
57
|
+
# The ServiceProjectAttachment is being created.
|
58
|
+
CREATING = 1
|
59
|
+
|
60
|
+
# The ServiceProjectAttachment is ready.
|
61
|
+
# This means Services and Workloads under the corresponding
|
62
|
+
# ServiceProjectAttachment is ready for registration.
|
63
|
+
ACTIVE = 2
|
64
|
+
|
65
|
+
# The ServiceProjectAttachment is being deleted.
|
66
|
+
DELETING = 3
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,140 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module AppHub
|
23
|
+
module V1
|
24
|
+
# Workload is an App Hub data model that contains a discovered workload, which
|
25
|
+
# represents a binary deployment (such as managed instance groups (MIGs) and
|
26
|
+
# GKE deployments) that performs the smallest logical subset of business
|
27
|
+
# functionality.
|
28
|
+
# @!attribute [rw] name
|
29
|
+
# @return [::String]
|
30
|
+
# Identifier. The resource name of the Workload. Format:
|
31
|
+
# "projects/\\{host-project-id}/locations/\\{location}/applications/\\{application-id}/workloads/\\{workload-id}"
|
32
|
+
# @!attribute [rw] display_name
|
33
|
+
# @return [::String]
|
34
|
+
# Optional. User-defined name for the Workload.
|
35
|
+
# Can have a maximum length of 63 characters.
|
36
|
+
# @!attribute [rw] description
|
37
|
+
# @return [::String]
|
38
|
+
# Optional. User-defined description of a Workload.
|
39
|
+
# Can have a maximum length of 2048 characters.
|
40
|
+
# @!attribute [r] workload_reference
|
41
|
+
# @return [::Google::Cloud::AppHub::V1::WorkloadReference]
|
42
|
+
# Output only. Reference of an underlying compute resource represented by the
|
43
|
+
# Workload. These are immutable.
|
44
|
+
# @!attribute [r] workload_properties
|
45
|
+
# @return [::Google::Cloud::AppHub::V1::WorkloadProperties]
|
46
|
+
# Output only. Properties of an underlying compute resource represented by
|
47
|
+
# the Workload. These are immutable.
|
48
|
+
# @!attribute [rw] discovered_workload
|
49
|
+
# @return [::String]
|
50
|
+
# Required. Immutable. The resource name of the original discovered workload.
|
51
|
+
# @!attribute [rw] attributes
|
52
|
+
# @return [::Google::Cloud::AppHub::V1::Attributes]
|
53
|
+
# Optional. Consumer provided attributes.
|
54
|
+
# @!attribute [r] create_time
|
55
|
+
# @return [::Google::Protobuf::Timestamp]
|
56
|
+
# Output only. Create time.
|
57
|
+
# @!attribute [r] update_time
|
58
|
+
# @return [::Google::Protobuf::Timestamp]
|
59
|
+
# Output only. Update time.
|
60
|
+
# @!attribute [r] uid
|
61
|
+
# @return [::String]
|
62
|
+
# Output only. A universally unique identifier (UUID) for the `Workload` in
|
63
|
+
# the UUID4 format.
|
64
|
+
# @!attribute [r] state
|
65
|
+
# @return [::Google::Cloud::AppHub::V1::Workload::State]
|
66
|
+
# Output only. Workload state.
|
67
|
+
class Workload
|
68
|
+
include ::Google::Protobuf::MessageExts
|
69
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
70
|
+
|
71
|
+
# Workload state.
|
72
|
+
module State
|
73
|
+
# Unspecified state.
|
74
|
+
STATE_UNSPECIFIED = 0
|
75
|
+
|
76
|
+
# The Workload is being created.
|
77
|
+
CREATING = 1
|
78
|
+
|
79
|
+
# The Workload is ready.
|
80
|
+
ACTIVE = 2
|
81
|
+
|
82
|
+
# The Workload is being deleted.
|
83
|
+
DELETING = 3
|
84
|
+
|
85
|
+
# The underlying compute resources have been deleted.
|
86
|
+
DETACHED = 4
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
# Reference of an underlying compute resource represented by the Workload.
|
91
|
+
# @!attribute [r] uri
|
92
|
+
# @return [::String]
|
93
|
+
# Output only. The underlying compute resource uri.
|
94
|
+
class WorkloadReference
|
95
|
+
include ::Google::Protobuf::MessageExts
|
96
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
97
|
+
end
|
98
|
+
|
99
|
+
# Properties of an underlying compute resource represented by the Workload.
|
100
|
+
# @!attribute [r] gcp_project
|
101
|
+
# @return [::String]
|
102
|
+
# Output only. The service project identifier that the underlying cloud
|
103
|
+
# resource resides in. Empty for non cloud resources.
|
104
|
+
# @!attribute [r] location
|
105
|
+
# @return [::String]
|
106
|
+
# Output only. The location that the underlying compute resource resides in
|
107
|
+
# (e.g us-west1).
|
108
|
+
# @!attribute [r] zone
|
109
|
+
# @return [::String]
|
110
|
+
# Output only. The location that the underlying compute resource resides in
|
111
|
+
# if it is zonal (e.g us-west1-a).
|
112
|
+
class WorkloadProperties
|
113
|
+
include ::Google::Protobuf::MessageExts
|
114
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
115
|
+
end
|
116
|
+
|
117
|
+
# DiscoveredWorkload is a binary deployment (such as managed instance groups
|
118
|
+
# (MIGs) and GKE deployments) that performs the smallest logical subset of
|
119
|
+
# business functionality. A discovered workload can be registered to an App Hub
|
120
|
+
# Workload.
|
121
|
+
# @!attribute [rw] name
|
122
|
+
# @return [::String]
|
123
|
+
# Identifier. The resource name of the discovered workload. Format:
|
124
|
+
# "projects/\\{host-project-id}/locations/\\{location}/discoveredWorkloads/\\{uuid}"
|
125
|
+
# @!attribute [r] workload_reference
|
126
|
+
# @return [::Google::Cloud::AppHub::V1::WorkloadReference]
|
127
|
+
# Output only. Reference of an underlying compute resource represented by the
|
128
|
+
# Workload. These are immutable.
|
129
|
+
# @!attribute [r] workload_properties
|
130
|
+
# @return [::Google::Cloud::AppHub::V1::WorkloadProperties]
|
131
|
+
# Output only. Properties of an underlying compute resource represented by
|
132
|
+
# the Workload. These are immutable.
|
133
|
+
class DiscoveredWorkload
|
134
|
+
include ::Google::Protobuf::MessageExts
|
135
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
140
|
+
end
|