/
classes.rb
6675 lines (5549 loc) · 266 KB
/
classes.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module ApigeeV1
# Message that represents an arbitrary HTTP body. It should only be used for
# payload formats that can't be represented as JSON, such as raw binary or an
# HTML page. This message can be used both in streaming and non-streaming API
# methods in the request as well as the response. It can be used as a top-level
# request field, which is convenient if one wants to extract parameters from
# either the URL or HTTP template into the request fields and also want access
# to the raw HTTP body. Example: message GetResourceRequest ` // A unique
# request id. string request_id = 1; // The raw HTTP body is bound to this field.
# google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
# GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
# UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
# with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
# api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
# google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
# only changes how the request and response bodies are handled, all other
# features will continue to work unchanged.
class GoogleApiHttpBody
include Google::Apis::Core::Hashable
# The HTTP Content-Type header value specifying the content type of the body.
# Corresponds to the JSON property `contentType`
# @return [String]
attr_accessor :content_type
# The HTTP request/response body as raw binary.
# Corresponds to the JSON property `data`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :data
# Application specific response metadata. Must be set in the first response for
# streaming APIs.
# Corresponds to the JSON property `extensions`
# @return [Array<Hash<String,Object>>]
attr_accessor :extensions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@content_type = args[:content_type] if args.key?(:content_type)
@data = args[:data] if args.key?(:data)
@extensions = args[:extensions] if args.key?(:extensions)
end
end
#
class GoogleCloudApigeeV1Access
include Google::Apis::Core::Hashable
# Get action. For example, "Get" : ` "name" : "target.name", "value" : "default"
# `
# Corresponds to the JSON property `Get`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1AccessGet]
attr_accessor :get
# Remove action. For example, "Remove" : ` "name" : "target.name", "success" :
# true `
# Corresponds to the JSON property `Remove`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1AccessRemove]
attr_accessor :remove
# Set action. For example, "Set" : ` "name" : "target.name", "success" : true, "
# value" : "default" `
# Corresponds to the JSON property `Set`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1AccessSet]
attr_accessor :set
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@get = args[:get] if args.key?(:get)
@remove = args[:remove] if args.key?(:remove)
@set = args[:set] if args.key?(:set)
end
end
# Get action. For example, "Get" : ` "name" : "target.name", "value" : "default"
# `
class GoogleCloudApigeeV1AccessGet
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
#
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@value = args[:value] if args.key?(:value)
end
end
# Remove action. For example, "Remove" : ` "name" : "target.name", "success" :
# true `
class GoogleCloudApigeeV1AccessRemove
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
#
# Corresponds to the JSON property `success`
# @return [Boolean]
attr_accessor :success
alias_method :success?, :success
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@success = args[:success] if args.key?(:success)
end
end
# Set action. For example, "Set" : ` "name" : "target.name", "success" : true, "
# value" : "default" `
class GoogleCloudApigeeV1AccessSet
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
#
# Corresponds to the JSON property `success`
# @return [Boolean]
attr_accessor :success
alias_method :success?, :success
#
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@success = args[:success] if args.key?(:success)
@value = args[:value] if args.key?(:value)
end
end
# A reference to a certificate or key, certificate pair.
class GoogleCloudApigeeV1Alias
include Google::Apis::Core::Hashable
# The resource ID for this alias. Values must match regular expression `[^/]`1,
# 255``.
# Corresponds to the JSON property `alias`
# @return [String]
attr_accessor :alias
# The chain of certificates under this alias.
# Corresponds to the JSON property `certsInfo`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Certificate]
attr_accessor :certs_info
# The type of alias.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@alias = args[:alias] if args.key?(:alias)
@certs_info = args[:certs_info] if args.key?(:certs_info)
@type = args[:type] if args.key?(:type)
end
end
#
class GoogleCloudApigeeV1AliasRevisionConfig
include Google::Apis::Core::Hashable
# Location of the alias file. For example, a Google Cloud Storage URI.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# Name of the alias revision included in the keystore in the following format: `
# organizations/`org`/environments/`env`/keystores/`keystore`/aliases/`alias`/
# revisions/`rev``
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
#
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@location = args[:location] if args.key?(:location)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
end
end
# the Api category resource wrapped with response status, error_code etc.
class GoogleCloudApigeeV1ApiCategory
include Google::Apis::Core::Hashable
# the Api category resource.
# Corresponds to the JSON property `data`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData]
attr_accessor :data
# ID that can be used to find errors in the log files.
# Corresponds to the JSON property `errorCode`
# @return [String]
attr_accessor :error_code
# Description of the operation.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
# ID that can be used to find request details in the log files.
# Corresponds to the JSON property `requestId`
# @return [String]
attr_accessor :request_id
# Status of the operation.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@data = args[:data] if args.key?(:data)
@error_code = args[:error_code] if args.key?(:error_code)
@message = args[:message] if args.key?(:message)
@request_id = args[:request_id] if args.key?(:request_id)
@status = args[:status] if args.key?(:status)
end
end
# the Api category resource.
class GoogleCloudApigeeV1ApiCategoryData
include Google::Apis::Core::Hashable
# ID of the category (a UUID).
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Name of the category.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Name of the portal.
# Corresponds to the JSON property `siteId`
# @return [String]
attr_accessor :site_id
# Time the category was last modified in milliseconds since epoch.
# Corresponds to the JSON property `updateTime`
# @return [Fixnum]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@name = args[:name] if args.key?(:name)
@site_id = args[:site_id] if args.key?(:site_id)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
#
class GoogleCloudApigeeV1ApiProduct
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `apiResources`
# @return [Array<String>]
attr_accessor :api_resources
# Flag that specifies how API keys are approved to access the APIs defined by
# the API product. If set to `manual`, the consumer key is generated and
# returned in "pending" state. In this case, the API keys won't work until they
# have been explicitly approved. If set to `auto`, the consumer key is generated
# and returned in "approved" state and can be used immediately. **Note:**
# Typically, `auto` is used to provide access to free or trial API products that
# provide limited quota or capabilities.
# Corresponds to the JSON property `approvalType`
# @return [String]
attr_accessor :approval_type
# Array of attributes that may be used to extend the default API product profile
# with customer-specific metadata. You can specify a maximum of 18 attributes.
# Use this property to specify the access level of the API product as either `
# public`, `private`, or `internal`. Only products marked `public` are available
# to developers in the Apigee developer portal. For example, you can set a
# product to `internal` while it is in development and then change access to `
# public` when it is ready to release on the portal. API products marked as `
# private` do not appear on the portal, but can be accessed by external
# developers.
# Corresponds to the JSON property `attributes`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Attribute>]
attr_accessor :attributes
# Response only. Creation time of this environment as milliseconds since epoch.
# Corresponds to the JSON property `createdAt`
# @return [Fixnum]
attr_accessor :created_at
# Description of the API product. Include key information about the API product
# that is not captured by other fields. Comma-separated list of API resources to
# be bundled in the API product. By default, the resource paths are mapped from
# the `proxy.pathsuffix` variable. The proxy path suffix is defined as the URI
# fragment following the ProxyEndpoint base path. For example, if the `
# apiResources` element is defined to be `/forecastrss` and the base path
# defined for the API proxy is `/weather`, then only requests to `/weather/
# forecastrss` are permitted by the API product. You can select a specific path,
# or you can select all subpaths with the following wildcard: - `/**`: Indicates
# that all sub-URIs are included. - `/*` : Indicates that only URIs one level
# down are included. By default, / supports the same resources as /** as well as
# the base path defined by the API proxy. For example, if the base path of the
# API proxy is `/v1/weatherapikey`, then the API product supports requests to `/
# v1/weatherapikey` and to any sub-URIs, such as `/v1/weatherapikey/forecastrss`,
# `/v1/weatherapikey/region/CA`, and so on. For more information, see Managing
# API products.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Name displayed in the UI or developer portal to developers registering for API
# access.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Comma-separated list of environment names to which the API product is bound.
# Requests to environments that are not listed are rejected. By specifying one
# or more environments, you can bind the resources listed in the API product to
# a specific environment, preventing developers from accessing those resources
# through API proxies deployed in another environment. This setting is used, for
# example, to prevent resources associated with API proxies in `prod` from being
# accessed by API proxies deployed in `test`.
# Corresponds to the JSON property `environments`
# @return [Array<String>]
attr_accessor :environments
# Response only. Modified time of this environment as milliseconds since epoch.
# Corresponds to the JSON property `lastModifiedAt`
# @return [Fixnum]
attr_accessor :last_modified_at
# Internal name of the API product. Characters you can use in the name are
# restricted to: `A-Z0-9._\-$ %`. **Note:** The internal name cannot be edited
# when updating the API product.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# List of operation configuration details associated with Apigee API proxies or
# remote services. Remote services are non-Apigee proxies, such as Istio-Envoy.
# Corresponds to the JSON property `operationGroup`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationGroup]
attr_accessor :operation_group
# Comma-separated list of API proxy names to which this API product is bound. By
# specifying API proxies, you can associate resources in the API product with
# specific API proxies, preventing developers from accessing those resources
# through other API proxies. Apigee rejects requests to API proxies that are not
# listed. **Note:** The API proxy names must already exist in the specified
# environment as they will be validated upon creation.
# Corresponds to the JSON property `proxies`
# @return [Array<String>]
attr_accessor :proxies
# Number of request messages permitted per app by this API product for the
# specified `quotaInterval` and `quotaTimeUnit`. For example, a `quota` of 50,
# for a `quotaInterval` of 12 and a `quotaTimeUnit` of hours means 50 requests
# are allowed every 12 hours.
# Corresponds to the JSON property `quota`
# @return [String]
attr_accessor :quota
# Time interval over which the number of request messages is calculated.
# Corresponds to the JSON property `quotaInterval`
# @return [String]
attr_accessor :quota_interval
# Time unit defined for the `quotaInterval`. Valid values include `minute`, `
# hour`, `day`, or `month`.
# Corresponds to the JSON property `quotaTimeUnit`
# @return [String]
attr_accessor :quota_time_unit
# Comma-separated list of OAuth scopes that are validated at runtime. Apigee
# validates that the scopes in any access token presented match the scopes
# defined in the OAuth policy associated with the API product.
# Corresponds to the JSON property `scopes`
# @return [Array<String>]
attr_accessor :scopes
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@api_resources = args[:api_resources] if args.key?(:api_resources)
@approval_type = args[:approval_type] if args.key?(:approval_type)
@attributes = args[:attributes] if args.key?(:attributes)
@created_at = args[:created_at] if args.key?(:created_at)
@description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name)
@environments = args[:environments] if args.key?(:environments)
@last_modified_at = args[:last_modified_at] if args.key?(:last_modified_at)
@name = args[:name] if args.key?(:name)
@operation_group = args[:operation_group] if args.key?(:operation_group)
@proxies = args[:proxies] if args.key?(:proxies)
@quota = args[:quota] if args.key?(:quota)
@quota_interval = args[:quota_interval] if args.key?(:quota_interval)
@quota_time_unit = args[:quota_time_unit] if args.key?(:quota_time_unit)
@scopes = args[:scopes] if args.key?(:scopes)
end
end
#
class GoogleCloudApigeeV1ApiProductRef
include Google::Apis::Core::Hashable
# Name of the API product.
# Corresponds to the JSON property `apiproduct`
# @return [String]
attr_accessor :apiproduct
# Status of the API product.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@apiproduct = args[:apiproduct] if args.key?(:apiproduct)
@status = args[:status] if args.key?(:status)
end
end
# Metadata describing the API proxy
class GoogleCloudApigeeV1ApiProxy
include Google::Apis::Core::Hashable
# The id of the most recently created revision for this api proxy.
# Corresponds to the JSON property `latestRevisionId`
# @return [String]
attr_accessor :latest_revision_id
# Metadata common to many entities in this API.
# Corresponds to the JSON property `metaData`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1EntityMetadata]
attr_accessor :meta_data
# Name of the API proxy.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# List of revisons defined for the API proxy.
# Corresponds to the JSON property `revision`
# @return [Array<String>]
attr_accessor :revision
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@latest_revision_id = args[:latest_revision_id] if args.key?(:latest_revision_id)
@meta_data = args[:meta_data] if args.key?(:meta_data)
@name = args[:name] if args.key?(:name)
@revision = args[:revision] if args.key?(:revision)
end
end
# API proxy revision.
class GoogleCloudApigeeV1ApiProxyRevision
include Google::Apis::Core::Hashable
# Base URL of the API proxy.
# Corresponds to the JSON property `basepaths`
# @return [Array<String>]
attr_accessor :basepaths
# Version of the API proxy configuration schema. Currently, only 4.0 is
# supported.
# Corresponds to the JSON property `configurationVersion`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ConfigVersion]
attr_accessor :configuration_version
# Revision number, app name, and organization for the API proxy.
# Corresponds to the JSON property `contextInfo`
# @return [String]
attr_accessor :context_info
# Time that the API proxy revision was created in milliseconds since epoch.
# Corresponds to the JSON property `createdAt`
# @return [Fixnum]
attr_accessor :created_at
# Description of the API proxy revision.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Human-readable name of the API proxy.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Metadata describing the API proxy revision as a key-value map.
# Corresponds to the JSON property `entityMetaDataAsProperties`
# @return [Hash<String,String>]
attr_accessor :entity_meta_data_as_properties
# Time that the API proxy revision was last modified in milliseconds since epoch.
# Corresponds to the JSON property `lastModifiedAt`
# @return [Fixnum]
attr_accessor :last_modified_at
# Name of the API proxy.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# List of policy names included in the API proxy revision..
# Corresponds to the JSON property `policies`
# @return [Array<String>]
attr_accessor :policies
# List of proxy names included in the API proxy revision.
# Corresponds to the JSON property `proxies`
# @return [Array<String>]
attr_accessor :proxies
# List of ProxyEndpoints in the `/proxies` directory of the API proxy. Typically,
# this element is included only when the API proxy was created using the Edge
# UI. This is a 'manifest' setting designed to provide visibility into the
# contents of the API proxy.
# Corresponds to the JSON property `proxyEndpoints`
# @return [Array<String>]
attr_accessor :proxy_endpoints
# List of resource files.
# Corresponds to the JSON property `resourceFiles`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ResourceFiles]
attr_accessor :resource_files
# List of the resources included in the API proxy revision formatted as "`type`:/
# /`name`".
# Corresponds to the JSON property `resources`
# @return [Array<String>]
attr_accessor :resources
# API proxy revision.
# Corresponds to the JSON property `revision`
# @return [String]
attr_accessor :revision
# List of the shared flows included in the API proxy revision.
# Corresponds to the JSON property `sharedFlows`
# @return [Array<String>]
attr_accessor :shared_flows
# OpenAPI Specification that is associated with the API proxy. The value is set
# to a URL or to a path in the specification store.
# Corresponds to the JSON property `spec`
# @return [String]
attr_accessor :spec
# List of TargetEndpoints in the `/targets` directory of the API proxy.
# Typically, this element is included only when the API proxy was created using
# the Edge UI. This is a 'manifest' setting designed to provide visibility into
# the contents of the API proxy.
# Corresponds to the JSON property `targetEndpoints`
# @return [Array<String>]
attr_accessor :target_endpoints
# List of TargetServers referenced in any TargetEndpoint in the API proxy.
# Typically, you will see this element only when the API proxy was created using
# the Edge UI. This is a 'manifest' setting designed to provide visibility into
# the contents of the API proxy.
# Corresponds to the JSON property `targetServers`
# @return [Array<String>]
attr_accessor :target_servers
# List of the targets included in the API proxy revision.
# Corresponds to the JSON property `targets`
# @return [Array<String>]
attr_accessor :targets
# List of the teams included in the API proxy revision.
# Corresponds to the JSON property `teams`
# @return [Array<String>]
attr_accessor :teams
# Type. Set to `Application`. Maintained for compatibility with the Apigee Edge
# API.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@basepaths = args[:basepaths] if args.key?(:basepaths)
@configuration_version = args[:configuration_version] if args.key?(:configuration_version)
@context_info = args[:context_info] if args.key?(:context_info)
@created_at = args[:created_at] if args.key?(:created_at)
@description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name)
@entity_meta_data_as_properties = args[:entity_meta_data_as_properties] if args.key?(:entity_meta_data_as_properties)
@last_modified_at = args[:last_modified_at] if args.key?(:last_modified_at)
@name = args[:name] if args.key?(:name)
@policies = args[:policies] if args.key?(:policies)
@proxies = args[:proxies] if args.key?(:proxies)
@proxy_endpoints = args[:proxy_endpoints] if args.key?(:proxy_endpoints)
@resource_files = args[:resource_files] if args.key?(:resource_files)
@resources = args[:resources] if args.key?(:resources)
@revision = args[:revision] if args.key?(:revision)
@shared_flows = args[:shared_flows] if args.key?(:shared_flows)
@spec = args[:spec] if args.key?(:spec)
@target_endpoints = args[:target_endpoints] if args.key?(:target_endpoints)
@target_servers = args[:target_servers] if args.key?(:target_servers)
@targets = args[:targets] if args.key?(:targets)
@teams = args[:teams] if args.key?(:teams)
@type = args[:type] if args.key?(:type)
end
end
#
class GoogleCloudApigeeV1ApiResponseWrapper
include Google::Apis::Core::Hashable
# ID that can be used to find errors in the log files.
# Corresponds to the JSON property `errorCode`
# @return [String]
attr_accessor :error_code
# Description of the operation.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
# ID that can be used to find request details in the log files.
# Corresponds to the JSON property `requestId`
# @return [String]
attr_accessor :request_id
# Status of the operation.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error_code = args[:error_code] if args.key?(:error_code)
@message = args[:message] if args.key?(:message)
@request_id = args[:request_id] if args.key?(:request_id)
@status = args[:status] if args.key?(:status)
end
end
#
class GoogleCloudApigeeV1App
include Google::Apis::Core::Hashable
# List of API products associated with the app.
# Corresponds to the JSON property `apiProducts`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiProductRef>]
attr_accessor :api_products
# ID of the app.
# Corresponds to the JSON property `appId`
# @return [String]
attr_accessor :app_id
# List of attributes.
# Corresponds to the JSON property `attributes`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Attribute>]
attr_accessor :attributes
# Callback URL used by OAuth 2.0 authorization servers to communicate
# authorization codes back to apps.
# Corresponds to the JSON property `callbackUrl`
# @return [String]
attr_accessor :callback_url
# Name of the company that owns the app.
# Corresponds to the JSON property `companyName`
# @return [String]
attr_accessor :company_name
# Output only. Unix time when the app was created.
# Corresponds to the JSON property `createdAt`
# @return [Fixnum]
attr_accessor :created_at
# Output only. Set of credentials for the app. Credentials are API key/secret
# pairs associated with API products.
# Corresponds to the JSON property `credentials`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Credential>]
attr_accessor :credentials
# ID of the developer.
# Corresponds to the JSON property `developerId`
# @return [String]
attr_accessor :developer_id
# Duration, in milliseconds, of the consumer key that will be generated for the
# app. The default value, -1, indicates an infinite validity period. Once set,
# the expiration can't be updated. json key: keyExpiresIn
# Corresponds to the JSON property `keyExpiresIn`
# @return [Fixnum]
attr_accessor :key_expires_in
# Output only. Last modified time as milliseconds since epoch.
# Corresponds to the JSON property `lastModifiedAt`
# @return [Fixnum]
attr_accessor :last_modified_at
# Name of the app.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Scopes to apply to the app. The specified scope names must already exist on
# the API product that you associate with the app.
# Corresponds to the JSON property `scopes`
# @return [Array<String>]
attr_accessor :scopes
# Status of the credential.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@api_products = args[:api_products] if args.key?(:api_products)
@app_id = args[:app_id] if args.key?(:app_id)
@attributes = args[:attributes] if args.key?(:attributes)
@callback_url = args[:callback_url] if args.key?(:callback_url)
@company_name = args[:company_name] if args.key?(:company_name)
@created_at = args[:created_at] if args.key?(:created_at)
@credentials = args[:credentials] if args.key?(:credentials)
@developer_id = args[:developer_id] if args.key?(:developer_id)
@key_expires_in = args[:key_expires_in] if args.key?(:key_expires_in)
@last_modified_at = args[:last_modified_at] if args.key?(:last_modified_at)
@name = args[:name] if args.key?(:name)
@scopes = args[:scopes] if args.key?(:scopes)
@status = args[:status] if args.key?(:status)
end
end
#
class GoogleCloudApigeeV1AsyncQuery
include Google::Apis::Core::Hashable
# Creation time of the query.
# Corresponds to the JSON property `created`
# @return [String]
attr_accessor :created
# Hostname is available only when query is executed at host level.
# Corresponds to the JSON property `envgroupHostname`
# @return [String]
attr_accessor :envgroup_hostname
# Error is set when query fails.
# Corresponds to the JSON property `error`
# @return [String]
attr_accessor :error
# ExecutionTime is available only after the query is completed.
# Corresponds to the JSON property `executionTime`
# @return [String]
attr_accessor :execution_time
# Asynchronous Query Name.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Contains information like metrics, dimenstions etc of the AsyncQuery.
# Corresponds to the JSON property `queryParams`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1QueryMetadata]
attr_accessor :query_params
# Asynchronous Report ID.
# Corresponds to the JSON property `reportDefinitionId`
# @return [String]
attr_accessor :report_definition_id
# Result is available only after the query is completed.
# Corresponds to the JSON property `result`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1AsyncQueryResult]
attr_accessor :result
# ResultFileSize is available only after the query is completed.
# Corresponds to the JSON property `resultFileSize`
# @return [String]
attr_accessor :result_file_size
# ResultRows is available only after the query is completed.
# Corresponds to the JSON property `resultRows`
# @return [Fixnum]
attr_accessor :result_rows
# Self link of the query. Example: `/organizations/myorg/environments/myenv/
# queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd` or following format if query is
# running at host level: `/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-
# ae6f-318d0cb961bd`
# Corresponds to the JSON property `self`
# @return [String]
attr_accessor :self
# Query state could be "enqueued", "running", "completed", "failed".
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Last updated timestamp for the query.
# Corresponds to the JSON property `updated`
# @return [String]
attr_accessor :updated
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@created = args[:created] if args.key?(:created)
@envgroup_hostname = args[:envgroup_hostname] if args.key?(:envgroup_hostname)
@error = args[:error] if args.key?(:error)
@execution_time = args[:execution_time] if args.key?(:execution_time)
@name = args[:name] if args.key?(:name)
@query_params = args[:query_params] if args.key?(:query_params)
@report_definition_id = args[:report_definition_id] if args.key?(:report_definition_id)
@result = args[:result] if args.key?(:result)
@result_file_size = args[:result_file_size] if args.key?(:result_file_size)
@result_rows = args[:result_rows] if args.key?(:result_rows)
@self = args[:self] if args.key?(:self)
@state = args[:state] if args.key?(:state)
@updated = args[:updated] if args.key?(:updated)
end
end
#
class GoogleCloudApigeeV1AsyncQueryResult
include Google::Apis::Core::Hashable
# Query result will be unaccessable after this time.
# Corresponds to the JSON property `expires`
# @return [String]
attr_accessor :expires
# Self link of the query results. Example: `/organizations/myorg/environments/
# myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result` or following format
# if query is running at host level: `/organizations/myorg/hostQueries/9cfc0d85-
# 0f30-46d6-ae6f-318d0cb961bd/result`
# Corresponds to the JSON property `self`
# @return [String]
attr_accessor :self
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@expires = args[:expires] if args.key?(:expires)
@self = args[:self] if args.key?(:self)
end
end
#
class GoogleCloudApigeeV1AsyncQueryResultView
include Google::Apis::Core::Hashable
# Error code when there is a failure.
# Corresponds to the JSON property `code`
# @return [Fixnum]
attr_accessor :code
# Error message when there is a failure.
# Corresponds to the JSON property `error`
# @return [String]
attr_accessor :error
# Metadata contains information like metrics, dimenstions etc of the AsyncQuery.
# Corresponds to the JSON property `metadata`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1QueryMetadata]
attr_accessor :metadata
# Rows of query result. Each row is a JSON object. Example: `sum(message_count):
# 1, developer_app: "(not set)",…`
# Corresponds to the JSON property `rows`
# @return [Array<Object>]
attr_accessor :rows
# State of retrieving ResultView.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object