@@ -132,9 +132,9 @@ class Analysis
132132 include Google ::Apis ::Core ::Hashable
133133
134134 # An analysis result including blockers and warnings.
135- # Corresponds to the JSON property `analysis `
135+ # Corresponds to the JSON property `analysisResult `
136136 # @return [Google::Apis::ServiceusageV1beta1::AnalysisResult]
137- attr_accessor :analysis
137+ attr_accessor :analysis_result
138138
139139 # Output only. The type of analysis.
140140 # Corresponds to the JSON property `analysisType`
@@ -159,7 +159,7 @@ def initialize(**args)
159159
160160 # Update properties of this object
161161 def update! ( **args )
162- @analysis = args [ :analysis ] if args . key? ( :analysis )
162+ @analysis_result = args [ :analysis_result ] if args . key? ( :analysis_result )
163163 @analysis_type = args [ :analysis_type ] if args . key? ( :analysis_type )
164164 @display_name = args [ :display_name ] if args . key? ( :display_name )
165165 @service = args [ :service ] if args . key? ( :service )
@@ -1110,15 +1110,14 @@ def update!(**args)
11101110 class ConsumerPolicy
11111111 include Google ::Apis ::Core ::Hashable
11121112
1113- # Optional. Annotations is an unstructured key-value map stored with a policy
1114- # that may be set by external tools to store and retrieve arbitrary metadata.
1115- # They are not queryable and should be preserved when modifying objects. [AIP-
1116- # 128](https://google.aip.dev/128#annotations)
1117- # Corresponds to the JSON property `annotations`
1118- # @return [Hash<String,String>]
1119- attr_accessor :annotations
1113+ # Output only. The time the policy was created. For singleton policies, this is
1114+ # the first touch of the policy.
1115+ # Corresponds to the JSON property `createTime`
1116+ # @return [String]
1117+ attr_accessor :create_time
11201118
1121- # Enable rules define usable services and service groups.
1119+ # Enable rules define usable services and groups. There can currently be at most
1120+ # one `EnableRule`. This restriction will be lifted in later releases.
11221121 # Corresponds to the JSON property `enableRules`
11231122 # @return [Array<Google::Apis::ServiceusageV1beta1::EnableRule>]
11241123 attr_accessor :enable_rules
@@ -1129,15 +1128,14 @@ class ConsumerPolicy
11291128 # @return [String]
11301129 attr_accessor :etag
11311130
1132- # Output only. The resource name of the policy. We only allow consumer policy
1133- # name as `default` for now: `projects/12345/consumerPolicies/default`, `folders/
1134- # 12345/consumerPolicies/default`, `organizations/12345/consumerPolicies/default`
1135- # .
1131+ # Output only. The resource name of the policy. Only the `default` policy is
1132+ # supported: `projects/12345/consumerPolicies/default`, `folders/12345/
1133+ # consumerPolicies/default`, `organizations/12345/consumerPolicies/default`.
11361134 # Corresponds to the JSON property `name`
11371135 # @return [String]
11381136 attr_accessor :name
11391137
1140- # The last-modified time .
1138+ # Output only. The time the policy was last updated .
11411139 # Corresponds to the JSON property `updateTime`
11421140 # @return [String]
11431141 attr_accessor :update_time
@@ -1148,7 +1146,7 @@ def initialize(**args)
11481146
11491147 # Update properties of this object
11501148 def update! ( **args )
1151- @annotations = args [ :annotations ] if args . key? ( :annotations )
1149+ @create_time = args [ :create_time ] if args . key? ( :create_time )
11521150 @enable_rules = args [ :enable_rules ] if args . key? ( :enable_rules )
11531151 @etag = args [ :etag ] if args . key? ( :etag )
11541152 @name = args [ :name ] if args . key? ( :name )
@@ -1871,7 +1869,7 @@ def update!(**args)
18711869 end
18721870 end
18731871
1874- # The consumer policy rule that defines usable services and service groups.
1872+ # The consumer policy rule that defines enabled services and groups.
18751873 class EnableRule
18761874 include Google ::Apis ::Core ::Hashable
18771875
@@ -1880,15 +1878,8 @@ class EnableRule
18801878 # @return [String]
18811879 attr_accessor :enable_type
18821880
1883- # DEPRECATED: Please use field `values`. Service group should have prefix `
1884- # groups/`. The names of the service groups that are enabled (Not Implemented).
1885- # Example: `groups/googleServices`.
1886- # Corresponds to the JSON property `groups`
1887- # @return [Array<String>]
1888- attr_accessor :groups
1889-
1890- # DEPRECATED: Please use field `values`. Service should have prefix `services/`.
1891- # The names of the services that are enabled. Example: `storage.googleapis.com`.
1881+ # The names of the services that are enabled. Example: `services/storage.
1882+ # googleapis.com`.
18921883 # Corresponds to the JSON property `services`
18931884 # @return [Array<String>]
18941885 attr_accessor :services
@@ -1907,7 +1898,6 @@ def initialize(**args)
19071898 # Update properties of this object
19081899 def update! ( **args )
19091900 @enable_type = args [ :enable_type ] if args . key? ( :enable_type )
1910- @groups = args [ :groups ] if args . key? ( :groups )
19111901 @services = args [ :services ] if args . key? ( :services )
19121902 @values = args [ :values ] if args . key? ( :values )
19131903 end
@@ -2929,6 +2919,106 @@ def update!(**args)
29292919 end
29302920 end
29312921
2922+ # A message to group the analysis information.
2923+ class GoogleApiServiceusageV2alphaAnalysis
2924+ include Google ::Apis ::Core ::Hashable
2925+
2926+ # An analysis result including blockers and warnings.
2927+ # Corresponds to the JSON property `analysisResult`
2928+ # @return [Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaAnalysisResult]
2929+ attr_accessor :analysis_result
2930+
2931+ # Output only. The type of analysis.
2932+ # Corresponds to the JSON property `analysisType`
2933+ # @return [String]
2934+ attr_accessor :analysis_type
2935+
2936+ # Output only. The user friendly display name of the analysis type. E.g. service
2937+ # dependency analysis, service resource usage analysis, etc.
2938+ # Corresponds to the JSON property `displayName`
2939+ # @return [String]
2940+ attr_accessor :display_name
2941+
2942+ # The names of the service that has analysis result of warnings or blockers.
2943+ # Example: `services/storage.googleapis.com`.
2944+ # Corresponds to the JSON property `service`
2945+ # @return [String]
2946+ attr_accessor :service
2947+
2948+ def initialize ( **args )
2949+ update! ( **args )
2950+ end
2951+
2952+ # Update properties of this object
2953+ def update! ( **args )
2954+ @analysis_result = args [ :analysis_result ] if args . key? ( :analysis_result )
2955+ @analysis_type = args [ :analysis_type ] if args . key? ( :analysis_type )
2956+ @display_name = args [ :display_name ] if args . key? ( :display_name )
2957+ @service = args [ :service ] if args . key? ( :service )
2958+ end
2959+ end
2960+
2961+ # An analysis result including blockers and warnings.
2962+ class GoogleApiServiceusageV2alphaAnalysisResult
2963+ include Google ::Apis ::Core ::Hashable
2964+
2965+ # Blocking information that would prevent the policy changes at runtime.
2966+ # Corresponds to the JSON property `blockers`
2967+ # @return [Array<Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaImpact>]
2968+ attr_accessor :blockers
2969+
2970+ # Warning information indicating that the policy changes might be unsafe, but
2971+ # will not block the changes at runtime.
2972+ # Corresponds to the JSON property `warnings`
2973+ # @return [Array<Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaImpact>]
2974+ attr_accessor :warnings
2975+
2976+ def initialize ( **args )
2977+ update! ( **args )
2978+ end
2979+
2980+ # Update properties of this object
2981+ def update! ( **args )
2982+ @blockers = args [ :blockers ] if args . key? ( :blockers )
2983+ @warnings = args [ :warnings ] if args . key? ( :warnings )
2984+ end
2985+ end
2986+
2987+ # Metadata for the `AnalyzeConsumerPolicy` method.
2988+ class GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata
2989+ include Google ::Apis ::Core ::Hashable
2990+
2991+ def initialize ( **args )
2992+ update! ( **args )
2993+ end
2994+
2995+ # Update properties of this object
2996+ def update! ( **args )
2997+ end
2998+ end
2999+
3000+ # The response of analyzing a consumer policy update.
3001+ class GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse
3002+ include Google ::Apis ::Core ::Hashable
3003+
3004+ # The list of analyses returned from performing the intended policy update
3005+ # analysis. The analysis is grouped by service name and different analysis types.
3006+ # The empty analysis list means that the consumer policy can be updated without
3007+ # any warnings or blockers.
3008+ # Corresponds to the JSON property `analysis`
3009+ # @return [Array<Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaAnalysis>]
3010+ attr_accessor :analysis
3011+
3012+ def initialize ( **args )
3013+ update! ( **args )
3014+ end
3015+
3016+ # Update properties of this object
3017+ def update! ( **args )
3018+ @analysis = args [ :analysis ] if args . key? ( :analysis )
3019+ end
3020+ end
3021+
29323022 # Consumer Policy is a set of rules that define what services or service groups
29333023 # can be used for a cloud resource hierarchy.
29343024 class GoogleApiServiceusageV2alphaConsumerPolicy
@@ -3008,6 +3098,44 @@ def update!(**args)
30083098 end
30093099 end
30103100
3101+ # A message to group impacts of updating a policy.
3102+ class GoogleApiServiceusageV2alphaImpact
3103+ include Google ::Apis ::Core ::Hashable
3104+
3105+ # Output only. User friendly impact detail in a free form message.
3106+ # Corresponds to the JSON property `detail`
3107+ # @return [String]
3108+ attr_accessor :detail
3109+
3110+ # Output only. The type of impact.
3111+ # Corresponds to the JSON property `impactType`
3112+ # @return [String]
3113+ attr_accessor :impact_type
3114+
3115+ # The parent resource that the analysis is based on and the service name that
3116+ # the analysis is for. Example: `projects/100/services/compute.googleapis.com`,
3117+ # folders/101/services/compute.googleapis.com` and `organizations/102/services/
3118+ # compute.googleapis.com`. Usually, the parent resource here is same as the
3119+ # parent resource of the analyzed policy. However, for some analysis types, the
3120+ # parent can be different. For example, for resource existence analysis, if the
3121+ # parent resource of the analyzed policy is a folder or an organization, the
3122+ # parent resource here can still be the project that contains the resources.
3123+ # Corresponds to the JSON property `parent`
3124+ # @return [String]
3125+ attr_accessor :parent
3126+
3127+ def initialize ( **args )
3128+ update! ( **args )
3129+ end
3130+
3131+ # Update properties of this object
3132+ def update! ( **args )
3133+ @detail = args [ :detail ] if args . key? ( :detail )
3134+ @impact_type = args [ :impact_type ] if args . key? ( :impact_type )
3135+ @parent = args [ :parent ] if args . key? ( :parent )
3136+ end
3137+ end
3138+
30113139 # Metadata for the `UpdateConsumerPolicy` method.
30123140 class GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata
30133141 include Google ::Apis ::Core ::Hashable
@@ -3594,17 +3722,13 @@ class Impact
35943722 # @return [String]
35953723 attr_accessor :impact_type
35963724
3597- # The parent resource that the analysis is based on and the service name that
3598- # the analysis is for. Example: `projects/100/services/compute.googleapis.com`,
3599- # folders/101/services/compute.googleapis.com` and `organizations/102/services/
3600- # compute.googleapis.com`. Usually, the parent resource here is same as the
3601- # parent resource of the analyzed policy. However, for some analysis types, the
3602- # parent can be different. For example, for resource existence analysis, if the
3603- # parent resource of the analyzed policy is a folder or an organization, the
3604- # parent resource here can still be the project that contains the resources.
3605- # Corresponds to the JSON property `parent`
3725+ # Output only. This field will be populated only for the `
3726+ # DEPENDENCY_MISSING_DEPENDENCIES` impact type. Example: `services/compute.
3727+ # googleapis.com`. Impact.detail will be in format : `missing service dependency:
3728+ # `missing_dependency`.`
3729+ # Corresponds to the JSON property `missingDependency`
36063730 # @return [String]
3607- attr_accessor :parent
3731+ attr_accessor :missing_dependency
36083732
36093733 def initialize ( **args )
36103734 update! ( **args )
@@ -3614,7 +3738,7 @@ def initialize(**args)
36143738 def update! ( **args )
36153739 @detail = args [ :detail ] if args . key? ( :detail )
36163740 @impact_type = args [ :impact_type ] if args . key? ( :impact_type )
3617- @parent = args [ :parent ] if args . key? ( :parent )
3741+ @missing_dependency = args [ :missing_dependency ] if args . key? ( :missing_dependency )
36183742 end
36193743 end
36203744
0 commit comments