google-apis-apphub_v1alpha 0.5.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79636494a21af985129062b4227dbee65221cc2954165018b20b3f45b02bab0a
4
- data.tar.gz: d27a29f8e3b1dc0618ba7106f6332abb76db2adebbcab91663324aa1f4618cb8
3
+ metadata.gz: 5b6b43bc4c0e6d077da75758b034eda5f04216b10417a3bd2ae10c4c7ebb9199
4
+ data.tar.gz: 2a0bd2ccebeeeca0ec87949beb9b4206491cbab49f630a1e5b2c7d6006c7790c
5
5
  SHA512:
6
- metadata.gz: d6d4a92f4dffe795855868eb350ff2ecaa19d886d957e4fdcaaf380cedb22708c5cda901f12765923781aee5401daf15c54c466a403b8d1d99a61c24fe4bb4f2
7
- data.tar.gz: 66e163be15764cc19abea9f1de15a3f97a0b712efd750ef2b18c5df2e6449a50cfbd6c40b6126d1e5fd21f4a931b5edf035dbe778bd30cd8259fa5980dd5594c
6
+ metadata.gz: fb5df894f56d0bf0d2eb68958f2c8b790085b6cbc3df8bc4fa2732bfa25015b48d998f1a23fa84e84ad5f2b2f0ce74b6491ecf495b03f1bb00d996669c7783ae
7
+ data.tar.gz: 03ffc455babdad4fab5f3009887ca70cf735962340188a100e7ca9ec8bd93d5da0ff78bdbda7183acf818963deb916d6047316eef98e6fb38f3a569d32d2746c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-apphub_v1alpha
2
2
 
3
+ ### v0.7.0 (2024-03-31)
4
+
5
+ * Regenerated from discovery document revision 20240328
6
+
7
+ ### v0.6.0 (2024-03-10)
8
+
9
+ * Regenerated from discovery document revision 20240307
10
+ * Regenerated using generator version 0.14.0
11
+
3
12
  ### v0.5.0 (2024-02-23)
4
13
 
5
14
  * Regenerated from discovery document revision 20240217
@@ -379,12 +379,13 @@ module Google
379
379
 
380
380
  # Optional. Criticality level. Can contain only lowercase letters, numeric
381
381
  # characters, underscores, and dashes. Can have a maximum length of 63
382
- # characters.
382
+ # characters. Deprecated: Please refer to type instead.
383
383
  # Corresponds to the JSON property `level`
384
384
  # @return [String]
385
385
  attr_accessor :level
386
386
 
387
387
  # Optional. Indicates mission-critical Application, Service, or Workload.
388
+ # Deprecated: Please refer to type instead.
388
389
  # Corresponds to the JSON property `missionCritical`
389
390
  # @return [Boolean]
390
391
  attr_accessor :mission_critical
@@ -524,7 +525,7 @@ module Google
524
525
 
525
526
  # Optional. Environment name. Can contain only lowercase letters, numeric
526
527
  # characters, underscores, and dashes. Can have a maximum length of 63
527
- # characters.
528
+ # characters. Deprecated: Please refer to type instead.
528
529
  # Corresponds to the JSON property `environment`
529
530
  # @return [String]
530
531
  attr_accessor :environment
@@ -603,7 +604,7 @@ module Google
603
604
  class FindUnregisteredServicesResponse
604
605
  include Google::Apis::Core::Hashable
605
606
 
606
- # List of discovered services.
607
+ # List of Discovered Services.
607
608
  # Corresponds to the JSON property `discoveredServices`
608
609
  # @return [Array<Google::Apis::ApphubV1alpha::DiscoveredService>]
609
610
  attr_accessor :discovered_services
@@ -634,7 +635,7 @@ module Google
634
635
  class FindUnregisteredWorkloadsResponse
635
636
  include Google::Apis::Core::Hashable
636
637
 
637
- # List of discovered workloads.
638
+ # List of Discovered Workloads.
638
639
  # Corresponds to the JSON property `discoveredWorkloads`
639
640
  # @return [Array<Google::Apis::ApphubV1alpha::DiscoveredWorkload>]
640
641
  attr_accessor :discovered_workloads
@@ -696,7 +697,7 @@ module Google
696
697
  class ListDiscoveredServicesResponse
697
698
  include Google::Apis::Core::Hashable
698
699
 
699
- # List of discovered services.
700
+ # List of Discovered Services.
700
701
  # Corresponds to the JSON property `discoveredServices`
701
702
  # @return [Array<Google::Apis::ApphubV1alpha::DiscoveredService>]
702
703
  attr_accessor :discovered_services
@@ -727,7 +728,7 @@ module Google
727
728
  class ListDiscoveredWorkloadsResponse
728
729
  include Google::Apis::Core::Hashable
729
730
 
730
- # List of discovered workloads.
731
+ # List of Discovered Workloads.
731
732
  # Corresponds to the JSON property `discoveredWorkloads`
732
733
  # @return [Array<Google::Apis::ApphubV1alpha::DiscoveredWorkload>]
733
734
  attr_accessor :discovered_workloads
@@ -944,6 +945,49 @@ module Google
944
945
  end
945
946
  end
946
947
 
948
+ # Response for LookupDiscoveredService.
949
+ class LookupDiscoveredServiceResponse
950
+ include Google::Apis::Core::Hashable
951
+
952
+ # DiscoveredService is a network/api interface that exposes some functionality
953
+ # to clients for consumption over the network. A discovered service can be
954
+ # registered to a App Hub service.
955
+ # Corresponds to the JSON property `discoveredService`
956
+ # @return [Google::Apis::ApphubV1alpha::DiscoveredService]
957
+ attr_accessor :discovered_service
958
+
959
+ def initialize(**args)
960
+ update!(**args)
961
+ end
962
+
963
+ # Update properties of this object
964
+ def update!(**args)
965
+ @discovered_service = args[:discovered_service] if args.key?(:discovered_service)
966
+ end
967
+ end
968
+
969
+ # Response for LookupDiscoveredWorkload.
970
+ class LookupDiscoveredWorkloadResponse
971
+ include Google::Apis::Core::Hashable
972
+
973
+ # DiscoveredWorkload is a binary deployment (such as managed instance groups (
974
+ # MIGs) and GKE deployments) that performs the smallest logical subset of
975
+ # business functionality. A discovered workload can be registered to an App Hub
976
+ # Workload.
977
+ # Corresponds to the JSON property `discoveredWorkload`
978
+ # @return [Google::Apis::ApphubV1alpha::DiscoveredWorkload]
979
+ attr_accessor :discovered_workload
980
+
981
+ def initialize(**args)
982
+ update!(**args)
983
+ end
984
+
985
+ # Update properties of this object
986
+ def update!(**args)
987
+ @discovered_workload = args[:discovered_workload] if args.key?(:discovered_workload)
988
+ end
989
+ end
990
+
947
991
  # Response for LookupServiceProjectAttachment.
948
992
  class LookupServiceProjectAttachmentResponse
949
993
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ApphubV1alpha
18
18
  # Version of the google-apis-apphub_v1alpha gem
19
- GEM_VERSION = "0.5.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.13.1"
22
+ GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240217"
25
+ REVISION = "20240328"
26
26
  end
27
27
  end
28
28
  end
@@ -184,6 +184,18 @@ module Google
184
184
  include Google::Apis::Core::JsonObjectSupport
185
185
  end
186
186
 
187
+ class LookupDiscoveredServiceResponse
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class LookupDiscoveredWorkloadResponse
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
187
199
  class LookupServiceProjectAttachmentResponse
188
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
201
 
@@ -539,6 +551,22 @@ module Google
539
551
  end
540
552
  end
541
553
 
554
+ class LookupDiscoveredServiceResponse
555
+ # @private
556
+ class Representation < Google::Apis::Core::JsonRepresentation
557
+ property :discovered_service, as: 'discoveredService', class: Google::Apis::ApphubV1alpha::DiscoveredService, decorator: Google::Apis::ApphubV1alpha::DiscoveredService::Representation
558
+
559
+ end
560
+ end
561
+
562
+ class LookupDiscoveredWorkloadResponse
563
+ # @private
564
+ class Representation < Google::Apis::Core::JsonRepresentation
565
+ property :discovered_workload, as: 'discoveredWorkload', class: Google::Apis::ApphubV1alpha::DiscoveredWorkload, decorator: Google::Apis::ApphubV1alpha::DiscoveredWorkload::Representation
566
+
567
+ end
568
+ end
569
+
542
570
  class LookupServiceProjectAttachmentResponse
543
571
  # @private
544
572
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -51,10 +51,13 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
- # Detaches a service project from a host project. You can call this API from
55
- # either a host or service project.
54
+ # Detaches a service project from a host project. You can call this API from any
55
+ # service project without needing access to the host project that it is attached
56
+ # to.
56
57
  # @param [String] name
57
- # Required. Value for name.
58
+ # Required. Service project id and location to detach from a host project. Only
59
+ # global location is supported. Expected format: `projects/`project`/locations/`
60
+ # location``.
58
61
  # @param [Google::Apis::ApphubV1alpha::DetachServiceProjectAttachmentRequest] detach_service_project_attachment_request_object
59
62
  # @param [String] fields
60
63
  # Selector specifying which fields to include in a partial response.
@@ -158,10 +161,12 @@ module Google
158
161
  execute_or_queue_command(command, &block)
159
162
  end
160
163
 
161
- # Looks up a service project attachment. You can call this API from either a
162
- # host or service project.
164
+ # Lists a service project attachment for a given service project. You can call
165
+ # this API from any project to find if it is attached to a host project.
163
166
  # @param [String] name
164
- # Required. Value for name.
167
+ # Required. Service project ID and location to lookup service project attachment
168
+ # for. Only global location is supported. Expected format: `projects/`project`/
169
+ # locations/`location``.
165
170
  # @param [String] fields
166
171
  # Selector specifying which fields to include in a partial response.
167
172
  # @param [String] quota_user
@@ -191,7 +196,8 @@ module Google
191
196
 
192
197
  # Creates an Application in a host project and location.
193
198
  # @param [String] parent
194
- # Required. Value for parent.
199
+ # Required. Project and location to create Application in. Expected format: `
200
+ # projects/`project`/locations/`location``.
195
201
  # @param [Google::Apis::ApphubV1alpha::Application] application_object
196
202
  # @param [String] application_id
197
203
  # Required. The Application identifier. Must contain only lowercase letters,
@@ -241,7 +247,8 @@ module Google
241
247
 
242
248
  # Deletes an Application in a host project and location.
243
249
  # @param [String] name
244
- # Required. Value for name.
250
+ # Required. Fully qualified name of the Application to delete. Expected format: `
251
+ # projects/`project`/locations/`location`/applications/`application``.
245
252
  # @param [String] request_id
246
253
  # Optional. An optional request ID to identify requests. Specify a unique
247
254
  # request ID so that if you must retry your request, the server will know to
@@ -283,7 +290,8 @@ module Google
283
290
 
284
291
  # Gets an Application in a host project and location.
285
292
  # @param [String] name
286
- # Required. Value for name.
293
+ # Required. Fully qualified name of the Application to fetch. Expected format: `
294
+ # projects/`project`/locations/`location`/applications/`application``.
287
295
  # @param [String] fields
288
296
  # Selector specifying which fields to include in a partial response.
289
297
  # @param [String] quota_user
@@ -358,11 +366,12 @@ module Google
358
366
 
359
367
  # Lists Applications in a host project and location.
360
368
  # @param [String] parent
361
- # Required. Value for parent.
369
+ # Required. Project and location to list Applications on. Expected format: `
370
+ # projects/`project`/locations/`location``.
362
371
  # @param [String] filter
363
- # Optional. Filtering results
372
+ # Optional. Filtering results.
364
373
  # @param [String] order_by
365
- # Optional. Hint for how to order the results
374
+ # Optional. Hint for how to order the results.
366
375
  # @param [Fixnum] page_size
367
376
  # Optional. Requested page size. Server may return fewer items than requested.
368
377
  # If unspecified, server will pick an appropriate default.
@@ -532,7 +541,9 @@ module Google
532
541
 
533
542
  # Creates a Service in an Application.
534
543
  # @param [String] parent
535
- # Required. Value for parent.
544
+ # Required. Fully qualified name of the parent Application to create the Service
545
+ # in. Expected format: `projects/`project`/locations/`location`/applications/`
546
+ # application``.
536
547
  # @param [Google::Apis::ApphubV1alpha::Service] service_object
537
548
  # @param [String] request_id
538
549
  # Optional. An optional request ID to identify requests. Specify a unique
@@ -580,9 +591,11 @@ module Google
580
591
  execute_or_queue_command(command, &block)
581
592
  end
582
593
 
583
- # Deletes a Service in an Application.
594
+ # Deletes a Service from an Application.
584
595
  # @param [String] name
585
- # Required. Value for name.
596
+ # Required. Fully qualified name of the Service to delete from an Application.
597
+ # Expected format: `projects/`project`/locations/`location`/applications/`
598
+ # application`/services/`service``.
586
599
  # @param [String] request_id
587
600
  # Optional. An optional request ID to identify requests. Specify a unique
588
601
  # request ID so that if you must retry your request, the server will know to
@@ -624,7 +637,9 @@ module Google
624
637
 
625
638
  # Gets a Service in an Application.
626
639
  # @param [String] name
627
- # Required. Value for name.
640
+ # Required. Fully qualified name of the Service to fetch. Expected format: `
641
+ # projects/`project`/locations/`location`/applications/`application`/services/`
642
+ # service``.
628
643
  # @param [String] fields
629
644
  # Selector specifying which fields to include in a partial response.
630
645
  # @param [String] quota_user
@@ -652,9 +667,11 @@ module Google
652
667
  execute_or_queue_command(command, &block)
653
668
  end
654
669
 
655
- # List Services in an Application.
670
+ # Lists Services in an Application.
656
671
  # @param [String] parent
657
- # Required. Value for parent.
672
+ # Required. Fully qualified name of the parent Application to list Services for.
673
+ # Expected format: `projects/`project`/locations/`location`/applications/`
674
+ # application``.
658
675
  # @param [String] filter
659
676
  # Optional. Filtering results
660
677
  # @param [String] order_by
@@ -752,7 +769,9 @@ module Google
752
769
 
753
770
  # Creates a Workload in an Application.
754
771
  # @param [String] parent
755
- # Required. Value for parent.
772
+ # Required. Fully qualified name of the Application to create Workload in.
773
+ # Expected format: `projects/`project`/locations/`location`/applications/`
774
+ # application``.
756
775
  # @param [Google::Apis::ApphubV1alpha::Workload] workload_object
757
776
  # @param [String] request_id
758
777
  # Optional. An optional request ID to identify requests. Specify a unique
@@ -800,9 +819,11 @@ module Google
800
819
  execute_or_queue_command(command, &block)
801
820
  end
802
821
 
803
- # Deletes a Workload in an Application.
822
+ # Deletes a Workload from an Application.
804
823
  # @param [String] name
805
- # Required. Value for name.
824
+ # Required. Fully qualified name of the Workload to delete from an Application.
825
+ # Expected format: `projects/`project`/locations/`location`/applications/`
826
+ # application`/workloads/`workload``.
806
827
  # @param [String] request_id
807
828
  # Optional. An optional request ID to identify requests. Specify a unique
808
829
  # request ID so that if you must retry your request, the server will know to
@@ -844,7 +865,9 @@ module Google
844
865
 
845
866
  # Gets a Workload in an Application.
846
867
  # @param [String] name
847
- # Required. Value for name.
868
+ # Required. Fully qualified name of the Workload to fetch. Expected format: `
869
+ # projects/`project`/locations/`location`/applications/`application`/workloads/`
870
+ # workload``.
848
871
  # @param [String] fields
849
872
  # Selector specifying which fields to include in a partial response.
850
873
  # @param [String] quota_user
@@ -874,11 +897,13 @@ module Google
874
897
 
875
898
  # Lists Workloads in an Application.
876
899
  # @param [String] parent
877
- # Required. Value for parent.
900
+ # Required. Fully qualified name of the parent Application to list Workloads for.
901
+ # Expected format: `projects/`project`/locations/`location`/applications/`
902
+ # application``.
878
903
  # @param [String] filter
879
- # Optional. Filtering results
904
+ # Optional. Filtering results.
880
905
  # @param [String] order_by
881
- # Optional. Hint for how to order the results
906
+ # Optional. Hint for how to order the results.
882
907
  # @param [Fixnum] page_size
883
908
  # Optional. Requested page size. Server may return fewer items than requested.
884
909
  # If unspecified, server will pick an appropriate default.
@@ -972,11 +997,12 @@ module Google
972
997
 
973
998
  # Finds unregistered services in a host project and location.
974
999
  # @param [String] parent
975
- # Required. Value for parent.
1000
+ # Required. Project and location to find unregistered Discovered Services on.
1001
+ # Expected format: `projects/`project`/locations/`location``.
976
1002
  # @param [String] filter
977
- # Optional. Filtering results
1003
+ # Optional. Filtering results.
978
1004
  # @param [String] order_by
979
- # Optional. Hint for how to order the results
1005
+ # Optional. Hint for how to order the results.
980
1006
  # @param [Fixnum] page_size
981
1007
  # Optional. Requested page size. Server may return fewer items than requested.
982
1008
  # If unspecified, server will pick an appropriate default.
@@ -1013,9 +1039,11 @@ module Google
1013
1039
  execute_or_queue_command(command, &block)
1014
1040
  end
1015
1041
 
1016
- # Gets a discovered service in a host project and location.
1042
+ # Gets a Discovered Service in a host project and location.
1017
1043
  # @param [String] name
1018
- # Required. Value for name.
1044
+ # Required. Fully qualified name of the Discovered Service to fetch. Expected
1045
+ # format: `projects/`project`/locations/`location`/discoveredServices/`
1046
+ # discoveredService``.
1019
1047
  # @param [String] fields
1020
1048
  # Selector specifying which fields to include in a partial response.
1021
1049
  # @param [String] quota_user
@@ -1043,14 +1071,15 @@ module Google
1043
1071
  execute_or_queue_command(command, &block)
1044
1072
  end
1045
1073
 
1046
- # Lists discovered services that can be added to an application in a host
1074
+ # Lists Discovered Services that can be added to an Application in a host
1047
1075
  # project and location.
1048
1076
  # @param [String] parent
1049
- # Required. Value for parent.
1077
+ # Required. Project and location to list Discovered Services on. Expected format:
1078
+ # `projects/`project`/locations/`location``.
1050
1079
  # @param [String] filter
1051
- # Optional. Filtering results
1080
+ # Optional. Filtering results.
1052
1081
  # @param [String] order_by
1053
- # Optional. Hint for how to order the results
1082
+ # Optional. Hint for how to order the results.
1054
1083
  # @param [Fixnum] page_size
1055
1084
  # Optional. Requested page size. Server may return fewer items than requested.
1056
1085
  # If unspecified, server will pick an appropriate default.
@@ -1087,13 +1116,50 @@ module Google
1087
1116
  execute_or_queue_command(command, &block)
1088
1117
  end
1089
1118
 
1119
+ # Lists a Discovered Service in a host project and location, with a given
1120
+ # resource URI.
1121
+ # @param [String] parent
1122
+ # Required. Host project ID and location to lookup Discovered Service in.
1123
+ # Expected format: `projects/`project`/locations/`location``.
1124
+ # @param [String] uri
1125
+ # Required. Resource URI to find DiscoveredService for. Accepts both project
1126
+ # number and project ID and does translation when needed.
1127
+ # @param [String] fields
1128
+ # Selector specifying which fields to include in a partial response.
1129
+ # @param [String] quota_user
1130
+ # Available to use for quota purposes for server-side applications. Can be any
1131
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1132
+ # @param [Google::Apis::RequestOptions] options
1133
+ # Request-specific options
1134
+ #
1135
+ # @yield [result, err] Result & error if block supplied
1136
+ # @yieldparam result [Google::Apis::ApphubV1alpha::LookupDiscoveredServiceResponse] parsed result object
1137
+ # @yieldparam err [StandardError] error object if request failed
1138
+ #
1139
+ # @return [Google::Apis::ApphubV1alpha::LookupDiscoveredServiceResponse]
1140
+ #
1141
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1142
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1143
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1144
+ def lookup_project_location_discovered_service(parent, uri: nil, fields: nil, quota_user: nil, options: nil, &block)
1145
+ command = make_simple_command(:get, 'v1alpha/{+parent}/discoveredServices:lookup', options)
1146
+ command.response_representation = Google::Apis::ApphubV1alpha::LookupDiscoveredServiceResponse::Representation
1147
+ command.response_class = Google::Apis::ApphubV1alpha::LookupDiscoveredServiceResponse
1148
+ command.params['parent'] = parent unless parent.nil?
1149
+ command.query['uri'] = uri unless uri.nil?
1150
+ command.query['fields'] = fields unless fields.nil?
1151
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1152
+ execute_or_queue_command(command, &block)
1153
+ end
1154
+
1090
1155
  # Finds unregistered workloads in a host project and location.
1091
1156
  # @param [String] parent
1092
- # Required. Value for parent.
1157
+ # Required. Project and location to find unregistered Discovered Workloads on.
1158
+ # Expected format: `projects/`project`/locations/`location``.
1093
1159
  # @param [String] filter
1094
- # Optional. Filtering results
1160
+ # Optional. Filtering results.
1095
1161
  # @param [String] order_by
1096
- # Optional. Hint for how to order the results
1162
+ # Optional. Hint for how to order the results.
1097
1163
  # @param [Fixnum] page_size
1098
1164
  # Optional. Requested page size. Server may return fewer items than requested.
1099
1165
  # If unspecified, server will pick an appropriate default.
@@ -1130,9 +1196,11 @@ module Google
1130
1196
  execute_or_queue_command(command, &block)
1131
1197
  end
1132
1198
 
1133
- # Gets a discovered workload in a host project and location.
1199
+ # Gets a Discovered Workload in a host project and location.
1134
1200
  # @param [String] name
1135
- # Required. Value for name.
1201
+ # Required. Fully qualified name of the Discovered Workload to fetch. Expected
1202
+ # format: `projects/`project`/locations/`location`/discoveredWorkloads/`
1203
+ # discoveredWorkload``.
1136
1204
  # @param [String] fields
1137
1205
  # Selector specifying which fields to include in a partial response.
1138
1206
  # @param [String] quota_user
@@ -1160,14 +1228,15 @@ module Google
1160
1228
  execute_or_queue_command(command, &block)
1161
1229
  end
1162
1230
 
1163
- # Lists discovered workloads that can be added to an application in a host
1231
+ # Lists Discovered Workloads that can be added to an Application in a host
1164
1232
  # project and location.
1165
1233
  # @param [String] parent
1166
- # Required. Value for parent.
1234
+ # Required. Project and location to list Discovered Workloads on. Expected
1235
+ # format: `projects/`project`/locations/`location``.
1167
1236
  # @param [String] filter
1168
- # Optional. Filtering results
1237
+ # Optional. Filtering results.
1169
1238
  # @param [String] order_by
1170
- # Optional. Hint for how to order the results
1239
+ # Optional. Hint for how to order the results.
1171
1240
  # @param [Fixnum] page_size
1172
1241
  # Optional. Requested page size. Server may return fewer items than requested.
1173
1242
  # If unspecified, server will pick an appropriate default.
@@ -1204,6 +1273,42 @@ module Google
1204
1273
  execute_or_queue_command(command, &block)
1205
1274
  end
1206
1275
 
1276
+ # Lists a Discovered Workload in a host project and location, with a given
1277
+ # resource URI.
1278
+ # @param [String] parent
1279
+ # Required. Host project ID and location to lookup Discovered Workload in.
1280
+ # Expected format: `projects/`project`/locations/`location``.
1281
+ # @param [String] uri
1282
+ # Required. Resource URI to find Discovered Workload for. Accepts both project
1283
+ # number and project ID and does translation when needed.
1284
+ # @param [String] fields
1285
+ # Selector specifying which fields to include in a partial response.
1286
+ # @param [String] quota_user
1287
+ # Available to use for quota purposes for server-side applications. Can be any
1288
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1289
+ # @param [Google::Apis::RequestOptions] options
1290
+ # Request-specific options
1291
+ #
1292
+ # @yield [result, err] Result & error if block supplied
1293
+ # @yieldparam result [Google::Apis::ApphubV1alpha::LookupDiscoveredWorkloadResponse] parsed result object
1294
+ # @yieldparam err [StandardError] error object if request failed
1295
+ #
1296
+ # @return [Google::Apis::ApphubV1alpha::LookupDiscoveredWorkloadResponse]
1297
+ #
1298
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1299
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1300
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1301
+ def lookup_project_location_discovered_workload(parent, uri: nil, fields: nil, quota_user: nil, options: nil, &block)
1302
+ command = make_simple_command(:get, 'v1alpha/{+parent}/discoveredWorkloads:lookup', options)
1303
+ command.response_representation = Google::Apis::ApphubV1alpha::LookupDiscoveredWorkloadResponse::Representation
1304
+ command.response_class = Google::Apis::ApphubV1alpha::LookupDiscoveredWorkloadResponse
1305
+ command.params['parent'] = parent unless parent.nil?
1306
+ command.query['uri'] = uri unless uri.nil?
1307
+ command.query['fields'] = fields unless fields.nil?
1308
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1309
+ execute_or_queue_command(command, &block)
1310
+ end
1311
+
1207
1312
  # Starts asynchronous cancellation on a long-running operation. The server makes
1208
1313
  # a best effort to cancel the operation, but success is not guaranteed. If the
1209
1314
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -1350,7 +1455,9 @@ module Google
1350
1455
 
1351
1456
  # Attaches a service project to the host project.
1352
1457
  # @param [String] parent
1353
- # Required. Value for parent.
1458
+ # Required. Host project ID and location to which service project is being
1459
+ # attached. Only global location is supported. Expected format: `projects/`
1460
+ # project`/locations/`location``.
1354
1461
  # @param [Google::Apis::ApphubV1alpha::ServiceProjectAttachment] service_project_attachment_object
1355
1462
  # @param [String] request_id
1356
1463
  # Optional. An optional request ID to identify requests. Specify a unique
@@ -1364,9 +1471,9 @@ module Google
1364
1471
  # duplicate commitments. The request ID must be a valid UUID with the exception
1365
1472
  # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1366
1473
  # @param [String] service_project_attachment_id
1367
- # Required. The service project attachment identifier must contain the
1368
- # project_id of the service project specified in the service_project_attachment.
1369
- # service_project field. Hint: "projects/`project_id`"
1474
+ # Required. The service project attachment identifier must contain the project
1475
+ # id of the service project specified in the service_project_attachment.
1476
+ # service_project field.
1370
1477
  # @param [String] fields
1371
1478
  # Selector specifying which fields to include in a partial response.
1372
1479
  # @param [String] quota_user
@@ -1398,9 +1505,11 @@ module Google
1398
1505
  execute_or_queue_command(command, &block)
1399
1506
  end
1400
1507
 
1401
- # Deletes a service project attached to the host project.
1508
+ # Deletes a service project attachment.
1402
1509
  # @param [String] name
1403
- # Required. Value for name.
1510
+ # Required. Fully qualified name of the service project attachment to delete.
1511
+ # Expected format: `projects/`project`/locations/`location`/
1512
+ # serviceProjectAttachments/`serviceProjectAttachment``.
1404
1513
  # @param [String] request_id
1405
1514
  # Optional. An optional request ID to identify requests. Specify a unique
1406
1515
  # request ID so that if you must retry your request, the server will know to
@@ -1440,9 +1549,11 @@ module Google
1440
1549
  execute_or_queue_command(command, &block)
1441
1550
  end
1442
1551
 
1443
- # Gets a service project attached to the host project.
1552
+ # Gets a service project attachment.
1444
1553
  # @param [String] name
1445
- # Required. Value for name.
1554
+ # Required. Fully qualified name of the service project attachment to retrieve.
1555
+ # Expected format: `projects/`project`/locations/`location`/
1556
+ # serviceProjectAttachments/`serviceProjectAttachment``.
1446
1557
  # @param [String] fields
1447
1558
  # Selector specifying which fields to include in a partial response.
1448
1559
  # @param [String] quota_user
@@ -1470,13 +1581,15 @@ module Google
1470
1581
  execute_or_queue_command(command, &block)
1471
1582
  end
1472
1583
 
1473
- # List service projects attached to the host project.
1584
+ # Lists service projects attached to the host project.
1474
1585
  # @param [String] parent
1475
- # Required. Value for parent.
1586
+ # Required. Host project ID and location to list service project attachments.
1587
+ # Only global location is supported. Expected format: `projects/`project`/
1588
+ # locations/`location``.
1476
1589
  # @param [String] filter
1477
- # Optional. Filtering results
1590
+ # Optional. Filtering results.
1478
1591
  # @param [String] order_by
1479
- # Optional. Hint for how to order the results
1592
+ # Optional. Hint for how to order the results.
1480
1593
  # @param [Fixnum] page_size
1481
1594
  # Optional. Requested page size. Server may return fewer items than requested.
1482
1595
  # If unspecified, server will pick an appropriate default.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-apphub_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.7.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: 2024-02-25 00:00:00.000000000 Z
11
+ date: 2024-03-31 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-apphub_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-apphub_v1alpha/v0.5.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-apphub_v1alpha/v0.7.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-apphub_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []